PB 6 B1 Raspberry Pi linker error

Raspberry PI specific forum
TassyJim
Enthusiast
Enthusiast
Posts: 151
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

PB 6 B1 Raspberry Pi linker error

Post by TassyJim »

New install of latest Raspberry OS
PB IDE runs OK
but trying to compile CanvacGadget.pb example gives a compiler error:

/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PB 6 B1 Raspberry Pi linker error

Post by User_Russian »

This is Linux.
Need to install packages.

Code: Select all

sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libxine2-dev libxxf86vm-dev libwebkit2gtk-4.0-dev libssl-dev libqt5webkit5-dev qtmultimedia5-dev libqt5svg5-dev
Rinzwind
Enthusiast
Enthusiast
Posts: 636
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: PB 6 B1 Raspberry Pi linker error

Post by Rinzwind »

Is that mentioned in the manual? Why it is not done during installation? What about distribution?

Just saying,end- users want some guidance and be sure they do the right steps.
User avatar
jacdelad
Addict
Addict
Posts: 1432
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: PB 6 B1 Raspberry Pi linker error

Post by jacdelad »

It's still in beta and Raspi support is brand new, so give it a chance to grow into the final 6.00.
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
TassyJim
Enthusiast
Enthusiast
Posts: 151
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: PB 6 B1 Raspberry Pi linker error

Post by TassyJim »

User_Russian wrote: Mon Nov 29, 2021 11:44 pm This is Linux.
Need to install packages.

Code: Select all

sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libxine2-dev libxxf86vm-dev libwebkit2gtk-4.0-dev libssl-dev libqt5webkit5-dev qtmultimedia5-dev libqt5svg5-dev
Thank you, that did the trick.
Much better than the suggested packages in the checkinstall.sh

Jim
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB 6 B1 Raspberry Pi linker error

Post by mk-soft »

As an end user, you do not need to install the developer libraries.

This may be necessary, for example, if you want to run GTK2 programs under Ubuntu 20.04.

Then you only have to install libgtk2.0.

See Simple install of Purebasic ...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply