Install PB on Linux...

Linux specific forum
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Install PB on Linux...

Post by Polo »

Well, I see Linux hasn't changed since last time I tried it (in 2000...)
Does anyone have some one click thing to install the required packages to run PB (64bits and 32 bits if possible)?
I've got Ubuntu.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Install PB on Linux...

Post by ts-soft »

sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libgnomeprintui2.2-dev libxine-dev libsdl1.2-dev libiodbc2-dev libxxf86vm-dev libwebkitgtk-dev
32 and 64 bit (Crosscompiling) is not possible with actuell ubuntu versions.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Install PB on Linux...

Post by Polo »

ts-soft wrote:
sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libgnomeprintui2.2-dev libxine-dev libsdl1.2-dev libiodbc2-dev libxxf86vm-dev libwebkitgtk-dev
32 and 64 bit (Crosscompiling) is not possible with actuell ubuntu versions.
Thanks!
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

Installed PB on linux mint.

Ran the sudo lines above and pb works all the way until compilr time when it fails.

Ran the checkinstall.sh file and it tells me libstdc++ not found

Any Help?
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Install PB on Linux...

Post by ts-soft »

Code: Select all

sudo apt-get install libstdc++6
Greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

Thanks

Just done that and checkinstall still says not detected!

???

when compiling

debug "Test"

This appears in a wimdow

/usr/bin/ld: cannot find crt1.o:
No such file or directory
/usr/bin/ld:
cannot find crti.o:
No such file or directory
/usr/bin/ld:
cannot find -lpthread
/usr/bin/ld:
cannot find -lc
/usr/bin/ld:
cannot find -lpthread
/usr/bin/ld:
cannot find -lm
/usr/bin/ld:
cannot find -ldl
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

Further to the tale.

Moved back to ubuntu 16 and pb6.5

All working hurrah compiles Debug "Test" now.

Ran checkinstall and got this message though

his script try to detect if all developments packages are correctly installed. If you are using a Debian or Ubuntu like distribution, you can use the following line to install all needed packages:

$ sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev

Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found

Just a little more help please
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

Ok managed to do some apt get things and PB now compiles with just 1 linker error it is the webkit gtk.

I have downloaded the webkit.tar but now what do i do?
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Install PB on Linux...

Post by mk-soft »

Her my installation information for PB Development and PB User machines.

My test machine for PB-Application without developer-packets is a Linux Ubuntu 18.10.
For MacOS Parallels Tools and Purebasic
---------------------------------------
sudo apt-get install build-essential gcc g++


Purebasic
---------
sudo apt-get install libxxf86vm-dev libxine2-dev unixodbc-dev libsdl1.2-dev libsdl2-dev

sudo apt-get install libgtk2.0-dev libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libwebkit2gtk-4.0-dev


Subsystem qt
------------
sudo apt-get install qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5-plugins


Ubuntu Gnome 18.04
------------------
sudo apt install libcanberra-gtk-module

Obsoleted
---------
;sudo apt-get install libgnome2-dev
;sudo apt-get install libgnomeprintui2.2-dev libxine-dev


Ubuntu missing default libs (Without developer packets)
-------------------------------------------------------
gtk2
- sudo apt-get install libgtk2.0
gtk3
- sudo apt-get install libwebkitgtk-3.0
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
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

BRILLIANT

Compiles no bother maybe a little quicker!

The webgadget now displays the purebasic webpage ok but will not display http://worldcollector.eu/ (My webpage). The programme crashes saying ended by external library??

So close I can taste it.

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Install PB on Linux...

Post by mk-soft »

Invalid Link on Linux (Firefox and WebGadget) : http://worldcollector.eu/

Ubuntu 18.10
Unable to load page

Problem occurred while loading the URL http://worldcollector.eu/

Fehler beim Auflösen von worldcollector.eu: Temporärer Fehler bei der Namensauflöung
P.S. Now work...
Update from Ubuntu was not ready...
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
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

Ok

Just loaded PB5.71 and it does not compile. Gives me the following.

/home/davemach/Applications/purebasic/purelibraries/linux/libraries/libpbsqlite3.a(sqlite3.o): In function `backupOnePage.isra.517':
sqlite3.c:(.text+0x42a0a): undefined reference to `__divmoddi4'
collect2: error: ld returned 1 exit status

Any Ideas?
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
useful
Enthusiast
Enthusiast
Posts: 366
Joined: Fri Jul 19, 2013 7:36 am

Re: Install PB on Linux...

Post by useful »

UseSQLiteDatabase("/usr/lib/i386-linux-gnu/libsqlite3.so")

"/usr/lib/i386-linux-gnu/libsqlite3.so" for mint 18.3x86

Replace with path your distribution

p.s. i.e. the situation can be qualified as an error, but thanks to the new parameter in UseSQLiteDatabase it can be bypassed

p.p.s.
I, uh, met this problem, only on mint 18.3 x86.
I checked mint 18.3 x64(ubuntu16) and ubuntu 18.04 x64 - everything works well
Last edited by useful on Thu Sep 05, 2019 3:10 pm, edited 1 time in total.
Dawn will come inevitably.
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Install PB on Linux...

Post by Bitblazer »

You might want to wait for another 48 hours, because im just working on something that should ultimately help this problem a lot.
webpage - discord chat links -> purebasic GPT4All
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Install PB on Linux...

Post by collectordave »

Any further forward on this?
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Post Reply