Open Window Error

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

Open Window Error

Post 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.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Open Window Error

Post by chris319 »

77 message views and no one knows how to open a window under Linux?
Oma
Enthusiast
Enthusiast
Posts: 312
Joined: Thu Jun 26, 2014 9:17 am
Location: Germany

Re: Open Window Error

Post 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
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
User avatar
Shardik
Addict
Addict
Posts: 2066
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Open Window Error

Post 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?
Last edited by Shardik on Tue Jan 05, 2016 9:05 am, edited 1 time in total.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Open Window Error

Post 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.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Open Window Error

Post 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.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Open Window Error

Post 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.
Post Reply