PB Dead on Linux Mint Rosa

Linux specific forum
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

PB Dead on Linux Mint Rosa

Post by chris319 »

I tried v 5.41 64 bits on Linux Mint Rosa. The following program ran successfully:

Code: Select all

Debug "hello"
but I was unable to open a window. None of the proposed solutions of installing gtk or X11 worked.

I tried running v 5.11 32 bits. Now nothing compiles on any version of PB. The compiler crashes with the following message:
The compiler appears to have crashed or quit unexpectedly.
It will be restarted.

Please report the conditions that caused this as a bug.
Toggling the compiler options for threadsafe and unicode executables made no difference.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: PB Dead on Linux Mint Rosa

Post by ts-soft »

No problems with Linux Mint Rosa, Cinnamon, 64-Bit! All examples run without any error.

Only 32-Bit programs doesn't compile, but this is normal on a 64-Bit environment!
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
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: PB Dead on Linux Mint Rosa

Post by chris319 »

Now nothing compiles on any version of PB
This include 32- and 64-bit versions.
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: PB Dead on Linux Mint Rosa

Post by Shardik »

I can't confirm these problems. I even just have installed a freshly downloaded Linux Mint 17.3 Rosa x86 with Cinnamon (version with codecs). After running the following command in the terminal

Code: Select all

sudo apt-get install g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libxxf86vm-dev
checkinstall.sh reported
checkinstall.sh wrote:Everything seems correctly setup for PureBasic !
Opening a window with PB 5.41 x86

Code: Select all

OpenWindow(0, 100, 100, 200, 170, "Demo window")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
worked without any problems...

I also tested several other different Linux distributions with PB 5.41 without any problems:
- ElementaryOS 0.2 x86 with Pantheon
- Fedora 23 x86 Workstation with Gnome 3
- Kubuntu 14.04 x86 with KDE
- Linux Mint 14.04 x86 Qiana with Cinnamon
- Lubuntu 14.04 x86 with LXDE
- Ubuntu 14.04 x64 with KDE, Unity and Enlightenment E17
- Ubuntu 15.10 x86 with Unity
- Xubuntu 14.04 x86 with Xfce
chris319 wrote:I tried v 5.41 64 bits on Linux Mint Rosa.
Did you install the 64 bit version of Linux Mint Rosa? On a x64 version of Linux you are only able to run the x64 version of PureBasic. For running the 32 bit PB compiler you would have to install additionally a bunch of 32 bit compatibility libs...
chris319 wrote:I tried running v 5.11 32 bits. Now nothing compiles on any version of PB.
If you are using a 64 bit Linux Mint Rosa, PB 5.11 x86 won't work unless you have installed the necessary 32 bit compatibility libs...

You should also consider that PB 5.4x uses Gtk3 as default (you may change this by entering "gtk2" in Compiler/Compiler Options.../Library subsystem) while PB 5.3x and older use Gtk2 as default (you may change this by entering "gtk3" as subsystem).

What is your result when setting the subsystem in PB 5.41 to "gtk2"? To test this you have to additionally install libgtk2.0-dev:

Code: Select all

sudo apt-get install libgtk2.0-dev
I did all my tests with natively installed Linux distributions on real hardware. Is your Linux Mint Rosa running as a virtual machine or running natively on real hardware?
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: PB Dead on Linux Mint Rosa

Post by chris319 »

Here is what I had to do to make PB work on Linux Mint:

Due to previous problems with Mint and PB, I reinstalled Mint 17.2. Mint 17.3 failed to install from DVD on my machine. That is a Linux Mint problem, not PB.

Then:

Install libssl-dev.

Code: Select all

sudo apt-get install g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libxxf86vm-dev
Thanks to everyone for your help. So far it works on 17.2. I have yet to install the upgrade to 17.3 on the new installation.

The how-to's and tutorials in the OS-Specific - Linux section of this board have gathered quite a bit of dust in the 9 years since 2007.
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PB Dead on Linux Mint Rosa

Post by Keya »

hey chris great detective work, glad you found the solution and thanks for sharing! i havent had any problems with Mint so far (i think im on Cinnamon) but havent upgraded for a few months
chris319 wrote:The how-to's and tutorials in the OS-Specific - Linux section of this board have gathered quite a bit of dust in the 9 years since 2007.
Agreed. I struggled with installing PB on Mac and Linux earlier this year (most issues were Linux though), and I'm sure some others in my place would've simply given up but i was determined - the helpfile sections for both seemed several years out of date and I was only able to get up and running with the help of several forum searches and reading through the struggles of others! It would be great if the Installing PB sections got a revision from the ground up ("You've just installed a fresh Linux, here's how to install PB"), mainly because it's not just PB that's changed but the OS and libs! :)
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: PB Dead on Linux Mint Rosa

Post by chris319 »

Keya wrote:hey chris great detective work, glad you found the solution and thanks for sharing!
Really it's Shardik and Charly who deserve the credit. They posted the solutions.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: PB Dead on Linux Mint Rosa

Post by chris319 »

It shouldn't be a struggle to get PB running on Linux. Please have a look at my notes on Linux here:

http://www.purebasic.fr/english/viewtop ... 96#p479495

and here:

http://www.purebasic.fr/english/viewtop ... 96#p479496

I have used many Linux distros over many years and they either self destruct after a while or I abandon them in frustration. I am trying to get away from Windows to the extent possible, out of disgust with Micro$oft and Windows 10 which makes me :twisted:
Linux Mint is very popular according to distrowatch. So far it has proven itself quite functional and I am reasonably pleased with it.
Post Reply