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
PB 6 B1 Raspberry Pi linker error
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PB 6 B1 Raspberry Pi linker error
This is Linux.
Need to install packages.
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
Re: PB 6 B1 Raspberry Pi linker error
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.
Just saying,end- users want some guidance and be sure they do the right steps.
Re: PB 6 B1 Raspberry Pi linker error
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
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
Re: PB 6 B1 Raspberry Pi linker error
Thank you, that did the trick.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
Much better than the suggested packages in the checkinstall.sh
Jim
Re: PB 6 B1 Raspberry Pi linker error
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 ...
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive