PureBasic newbie

Everything else that doesn't fall into one of the other PB categories.
Gary Stout
New User
New User
Posts: 5
Joined: Mon Feb 03, 2014 12:13 am
Location: Springfield, IL

PureBasic newbie

Post by Gary Stout »

Hello,

I just downloaded the demo version of PB for Linux. I extracted the archive into my home folder and created a shortcut to it. All good so far. I tried loading some of the demo programs and when I try to compile and run any of them, I am getting a linker error and message box that says cannot find -lGL, cannot find -lGLU, cannot find -lXxf86vm, cannot find -lz, collect2: error: ld returned 1 exit status.

Can someone point me in the right direction?

Thanks,
Gary
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic newbie

Post by luis »

Did you check the requirements ?

INSTALL file -> README file -> this :
- GTK+ 2.0 devel (and optionally GTK+ 1.2 devel for old application support)
- SDL 1.2 devel
- libstdc++ devel
- iodbc and iodbc-devel to be able to use the Database commands (see http://www.iodbc.org)
- libwebkit.so shoud be installed to have the WebGadget() working
- xine and xine-devel for the Movie commands
- libgnomeprintui2.2 and libgnomeprintui2.2-devel for the print commands

Note: a script which validate if all the development libraries are correctly installed is available
in the main purebasic directory. To execute it, type:

./checkinstall.sh
If you are using a debian based distribution you can do this to install the libs needed:

Code: Select all

sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk2.0-dev libgnomeprint2.2-dev unixodbc-dev libgnome2-dev libxine-dev libgnomeprintui2.2-dev libxxf86vm-dev
"Have you tried turning it off and on again ?"
A little PureBasic review
Gary Stout
New User
New User
Posts: 5
Joined: Mon Feb 03, 2014 12:13 am
Location: Springfield, IL

Re: PureBasic newbie

Post by Gary Stout »

Very much Thanks!

I am using Mint Linux 16 and the sudo code did the trick.

Looking forward to test driving PureBasic.

Thanks again,
Gary
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: PureBasic newbie

Post by Kuron »

Welcome Gary, very glad to see a familiar face popping up over here.
Best wishes to the PB community. Thank you for the memories. ♥️
Gary Stout
New User
New User
Posts: 5
Joined: Mon Feb 03, 2014 12:13 am
Location: Springfield, IL

Re: PureBasic newbie

Post by Gary Stout »

Thanks Kuron!
mestnyi
Addict
Addict
Posts: 995
Joined: Mon Nov 25, 2013 6:41 am

Re: PureBasic newbie

Post by mestnyi »

If you are using a debian based distribution you can do this to install the libs needed:
ubuntu 14.04
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
E: Could not find package libgnomeprint2.2-dev
E: Could not find package by regular expression «libgnomeprint2.2-dev»
E: Could not find package libgnomeprintui2.2-dev
E: Could not find package by regular expression «libgnomeprintui2.2-dev»
as @ as-AO722: ~ $
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic newbie

Post by luis »

mestnyi wrote: E: Could not find package libgnomeprint2.2-dev
E: Could not find package libgnomeprintui2.2-dev

Go to system settings -> software & updates -> other software

1) click add

2) in the APT line field type: "deb http://us.archive.ubuntu.com/ubuntu precise main universe"

3) confirm the refresh request

reissue the original command I posted and it should work in Ubuntu 14.04
"Have you tried turning it off and on again ?"
A little PureBasic review
EggNogPB
New User
New User
Posts: 4
Joined: Sun Mar 31, 2013 1:13 pm
Location: UK

purebasic_linux_5_31_x64 on LXLE 14.04.2 x64

Post by EggNogPB »

Hi
luis's 'ATP Line' tip above was needed - Installed OK now - Thanks luis :-)

In summary:

1 - use luis's 'ATP Line... ' (Start > Updates (Software and Updates) >Settings> other Software > Add)
in the APT line field type: "deb http://us.archive.ubuntu.com/ubuntu precise main universe"
confirm the refresh request

2 - use the commented out 'sudo apt-get' found inside checkinstall.sh
3 - Run checkinstall.sh
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: PureBasic newbie

Post by heartbone »

luis wrote:
mestnyi wrote: E: Could not find package libgnomeprint2.2-dev
E: Could not find package libgnomeprintui2.2-dev
Go to system settings -> software & updates -> other software

1) click add

2) in the APT line field type: "deb http://us.archive.ubuntu.com/ubuntu precise main universe"

3) confirm the refresh request

reissue the original command I posted and it should work in Ubuntu 14.04
Thank you very, very much luis for the big help.
I would be lost without you.
Keep it BASIC.
Post Reply