Main forum > FAQ

Getting a Linux GLBasic program up and running

(1/6) > >>

There have been a few requests for information on what to do to get a Linux program up and running on, well, Linux.  Hence the reason for this post.

To start with

Compile your GLBasic program for Linux, and make sure it is available for running or copying elsewhere.

In Linux

After that, you need to boot up Linux, and get it running.  If you find that double-clicking on the program opens a dialog window asking for a program to run the application, this means that the file isn't being treated as an executable.  To do so, right-click over the correct .linux file, and left-click on Properties.  Go into the Permissions tab and select Permissions.

Make sure Owners, Group and Other are set to Read And Write Access, and more importantly, make sure the 'Is Executable' button is active.

Okay that, and try again.

But It Still Doesn't Work

Then it would appear that the packages needed by the program aren't installed.  The Linux GLBasic executable needs the following (or equivalent) installed in order to run - and are usually done via a Packet Manager.

You need to install the following :

* libSDL_mixer-1.2
And that should get everything up and running.

Terminal based installation would be something like :

--- Code: (glbasic) ---sudo apt-get install libsdl-mixer1.2-dev libstdc++5
--- End code ---

If you can't find SDL_Mixer in the Package Manager list, you'll need to install it from the SDL website ( and

Update :

It appears that since version 6.197, extra libraries are needed.  Thanks to Gregory in sorting this out.  These files cant seem to be installed using the normal packaging system, and thus need to be installed slightly differently :

* Install getlibs from
* Open Terminal and type :  getlibs -l
* Enter your admin password and press Y to install all dependancies
I had found that running a GLBasic linux executable in Ubuntu 8.04 (with VMWare) had running problems.  These all seem to have gone in 8.10 (just wish it would shut down properly :) ).  Speed is pretty good (at least on my iMac), although of course, not as fast as a proper installation.

I have found that mouse wheels in a VM environment aren't detected.

It is always best to get the computers graphics drivers installed of course, for optimum speed.

You'll have no problem running in Ubuntu, Kubuntu or Xubuntu.  Other distros should be fine too.

Great tutorial! Just what I wished I had earlier :-)

Glad you like it!

I have found that, with the exception of the Ubuntu family, GLBasic programs wont run under VMWare - it says a GL context couldn't be created.

Hopefully they would on a proper machine.

Ah thanks, I was about to post that. I also have troubles with Mandriva latest version but Ubuntu works fine.

--- Quote ---Init GFX
Set Vidmode
INIT: Unable to create 24 BPP -> trying 16.
Couldn't set GL mode: Couldn't find matching GLX visual
Segmentation fault

--- End quote ---

Its an odd problem - as you can probably can guess, it can't create a 24-bit X window (nor probably a 16 bit one).  I get this problem on CentOS 5 and Mandriva, but no real idea why - Ubuntu uses a 32bpp screen, and according to glxinfo, 32-bit modes are available for the other systems as well.

glxgears works fine, by the way!


[0] Message Index

[#] Next page

Go to full version