Page 1 of 1

Open Window Error

Posted: Wed Dec 30, 2015 11:11 am
by chris319
Using PureBasic 5.41 LTS (Linux - x64) on Linux Mint Rosa; it runs OK but attempting to open a window generates the following error:

Code: Select all

/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
What's the fix?

Installing lxde didn't work.

Thank you.

Re: Open Window Error

Posted: Mon Jan 04, 2016 9:38 am
by chris319
77 message views and no one knows how to open a window under Linux?

Re: Open Window Error

Posted: Mon Jan 04, 2016 11:06 am
by Oma
Hello chris,

i don't know the exact answer, but it seems that the x11-dev is missing (or not found).

- Did you try the 'checkinstall.sh' script?
- You could search the x11-development-package e.g. with 'locate x11-dev' in a shell (or someone know a better method?).
I don't know which package includes the x11-dev but you could give this a try ...
- 'sudo apt-get install libx11-dev'

Good luck, Charly

Re: Open Window Error

Posted: Mon Jan 04, 2016 11:11 am
by Shardik
Sorry, but I can't confirm your error while working with PB 5.41 and having opened a window on these Linux x86 and x64 distributions:
- Linux Mint 17 Qiana x86 with Cinnamon
- Lubuntu 14.04 x86 with LXDE
- Ubuntu 14.04 x64 with KDE, Unity and Enlightenment
- Xubuntu 14.04 x86 with Xfce

Have you run checkinstall.sh and verified that all necessary libs are installed (especially libxxf86vm-dev)?
What desktop manager did your Linux Mint 17 Rosa initially use before installing LXDE?

Re: Open Window Error

Posted: Mon Jan 04, 2016 9:08 pm
by chris319
Thank you for the suggestions, but all of the above-mentioned packages are installed and no joy.

I'm going to download the 32-bit version and see if it is successful.

The desktop manager was and still is Cinnamon.

Re: Open Window Error

Posted: Mon Jan 04, 2016 9:13 pm
by chris319
The 32-bit version fails completely. It won't even compile

Code: Select all

Debug "hello"
There is nothing exotic about my installation. It is a pretty vanilla installation of Linux Mint Rosa with no modification.

Re: Open Window Error

Posted: Mon Jan 04, 2016 9:33 pm
by chris319
I tried running v 5.11 64 and 32 bits. Now nothing compiles in any version of PB. The compiler just crashes with an error message. Not even Debug "hello" works.
The compiler appears to have crashed or quit unexpectedly.
It will be restarted.

Please report the conditions that caused this as a bug.
PB is hosed on Linux, at least on the Mint distro.