BlitzMax Linux on Ubuntu 10.04 installation

BlitzMax Forums/BlitzMax Beginners Area/BlitzMax Linux on Ubuntu 10.04 installation

golomp(Posted 2012) [#1]
I am newbie in Linux. I tried to install BlitzMax Linux v1.45 on a Ubuntu 10.04.

I copied the archive BlitzMax145_linuxx86.tar.gz and installed it in my desktop folder.

I install the library list found in several topics and also in an installation script. (some with Ubuntu Software Center
and some directly with "sudo apt-get install <library_name>")

I also made update and upgrade :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Launching MAXIDE, Rebuild All module : Process complete.
i don't have error.

If i try to compile this :

Framework brl.standardio
Print "hello"


it run fine.

But when i try to compile a program (for example breakout)
i have this error message :

Building breakout
Compiling:breakout.bmx
flat assembler version 1.68 (32768 kilobytes memory)
4 passes, 34131 bytes.
Linking:breakout.debug
/usr/bin/ld: cannot find -lGL

collect2: ld returned 1 exit status
Build Error: Failed to link /home/desktop/BlitzMax/samples/breakout/breakout.debug
Process complete

I think the error "/usr/bin/ld: cannot find -lGL" come from OpenGL but i am not sure.
Maybe i missed a library ? some post are outdate
and i am not sure my library list is complete.

I have also a doubt about symbolic link but as i say i am newbie in Linux.

Any Idea to fix this ?

Thank by advance for the community.

Message for BlitzMax programmers : In place of error show, should it be possible the compiler
verify library existence and prompt a message like "please install <library_name>" ? I am sure it's possible to have library list in Linux.
It would be easyer for users... Thank you.

Last edited 2012


golomp(Posted 2012) [#2]
I have installed 1 more library :

sudo apt-get install freeglut3

apparently it solve the first error message but i have another one :

Building breakout
Compiling:breakout.bmx
flat assembler version 1.68 (32768 kilobytes memory)
4 passes, 34131 bytes.
Linking:breakout.debug
Executing:breakout.debug
Xlib: extension "XFree86-VidModeExtension" missing on display ":2000.0".

Process complete

My graphic Card is a Intel 82865G/PE/P

There are a lot of Xfree86 library references, i think the solution
is in one of them, but i don't know wich one.


Last edited 2012


golomp(Posted 2012) [#3]
My god !

While trying to install some mesa library, the last error message came back:

Building breakout
Compiling:breakout.bmx
flat assembler version 1.68 (32768 kilobytes memory)
4 passes, 34131 bytes.
Linking:breakout.debug
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
Build Error: Failed to link /home/desktop/BlitzMax/samples/breakout/breakout.debug
Process complete

The Freeglut3 was probably not a good solution...

Any idea ?

Last edited 2012


golomp(Posted 2012) [#4]
I am in a loop.

I re-install these library : (with sudo apt-get install <library_name>)
gcc
g++
libxxf86vm-dev
libglu1-mesa-dev
x11proto-core-dev
x11proto-gl-dev
x11proto-kb-dev
libasound2-dev
build-essential
libidn11-dev
libxft-dev
x11proto-xext-dev
libxpm-dev

and now the second error came back :

Building breakout
Compiling:breakout.bmx
flat assembler version 1.68 (32768 kilobytes memory)
4 passes, 34131 bytes.
Linking:breakout.debug
Executing:breakout.debug
Xlib: extension "XFree86-VidModeExtension" missing on display ":2000.0".

Process complete

I searched on web informations about "XFree86-VidModeExtension"
i found information about a file named Xorg.conf or xorg.conf
located in directory /etc/X11/xorg.conf
i went to this directory /etc/X11 but i didn't see the xorg.conf file
with the ls command. (nor with vi). I don't know if it's the problem.

What's wrong ? What could i try ? :-(

Last edited 2012


boomboom(Posted 2012) [#5]
I can solve your problem for £70...

... http://www.amazon.co.uk/Microsoft-OEM-software-intended-builders/dp/B004Q0PT3I/ref=sr_1_2?ie=UTF8&qid=1330463798&sr=8-2


:) Seriously though, when you factor in all the hours and time it takes to solve these types of problems, that could be spent on developing your game/app, 'free' doesn't seem so cheap.

Or maybe I am just not clever enough to use Linux these days.

P.S. This is meant as a little bit of fun, no one wants this to turn into a Linux VS Windows ramble

Last edited 2012


Raven67854(Posted 2012) [#6]
Have you installed multilib? You need that as well.


SLotman(Posted 2012) [#7]
See if this could help you:

http://www.linuxquestions.org/questions/linux-software-2/ubuntu-cant-build-i-get-cannot-find-lgl-error-627341/

I think it might :)

BTW: I also gave up on Linux... to much bugs, to little support, to much of a hassle.

Last edited 2012


golomp(Posted 2012) [#8]
<boomboom>
I understand, Linux is sometime very hard to deal with. But i need it to port several games i have done and i would like to manage game server. Windows server are very expensive compared to Linux server. (about 20x). So i am going to continue to try running BlitzMax on Linux.
I think i just have a problem of screen driver. Compilation works fine.

<Raven67854>
i tried :
sudo apt-get install multilib
but it failed.
i had this error message :
E: Couldn't find package multilib
maybe it's not a valid name of lib.

<SLotman>
My graphic card is not an nvidia, it's a Intel 82865G
Precisely, the Linux command:
lspci -nn | egrep "VGA|Display"

result is :
00:02.0 VGA compatible controller [0300]: Intel Corporation 82865G Integrated Graphics Controller [8086:2572] (rev 02)


Thanks you all for your help.

I tried to install intel graphics driver with :
sudo add-apt-repository ppa:glasen/intel-driver 
sudo apt-get update
sudo apt-get upgrade

After that I restart the computer to update system, i try again to make run breakout but i still have error:

Xlib: extension "XFree86-VidModeExtension" missing on display ":2000.0".

I dont have the file /etc/X11/xorg.conf and i really have a doubt on this fact.
But my graphic interface works, and all application works (even with graphics...) and also games...

Last edited 2012


golomp(Posted 2012) [#9]
I have installed the packet gcc-multilib with these command :
sudo apt-get install gcc-multilib
But i still have the same error message.

I also try in different screen resolution
1024x768, 800x600, 640x480 hoping there will be
a different treatment but no, i have the same error message...
i turn back in my usual 1024x768 screen resolution.

I search in ubuntu software center the "XFree86" reference.
I took all package one by one, testing running breakout with MaxIde.
Nothing new, i still have the same error message.

I am still searching on the web for information concerning:
XFree86
XFree86-VidModeExtension
display ":2000.0"

If you have any idea, i take !

Last edited 2012


Jesse(Posted 2012) [#10]
did you try this:
http://packages.ubuntu.com/hardy/libxxf86vm-dev


golomp(Posted 2012) [#11]
<Jesse>
According to your idea i try these command :
sudo apt-get install libxxf86vm-dev
sudo apt-get install x11-common
sudo apt-get install libx11-dev
sudo apt-get install libxxf86vm1
sudo apt-get install x11proto-xf86vidmode-dev
but it install nothing because i have already the last version for these library.

meanwhile, thanks for your idea Jesse.

It is certainly a problem of video library, but wich one is missing?

The error message is still there, hiding in a shadow, waiting for my run command... Help !!!
:)


SLotman(Posted 2012) [#12]
Just because you have an intel card doesn't mean you don't need the glx dev environment...


golomp(Posted 2012) [#13]
<SLotman>
You are right SLotman, i focus to much on my graphic card and omiting the nvidia package. I agree with you.

I try these command but it return errors :
sudo apt-get install nvidia-glx-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nvidia-glx-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package nvidia-glx-dev has no installation candidate

sudo apt-get install nvidia-glx-new
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package nvidia-glx-new

sudo apt-get install nvidia-glx-new-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package nvidia-glx-new-dev

As i couldn't find these library, i searched with the Ubuntu Software Center.
In the searchbox i type "nvidia-glx".
I found 3 drivers (96,173 and 185 versions).
I took them all and i try to run a blitzmax program but the error is still there.

Xlib: extension "XFree86-VidModeExtension" missing on display ":2000.0".


Ole JR(Posted 2012) [#14]
Everything nvidia-something is for nvidia gfx card, so forget that.

On the Xlib error, I found some suggestions to try turning off Compiz.

Have you btw tried to run glxgears?
(Might need to install mesa-utils for that)

Last edited 2012


Mahan(Posted 2012) [#15]
Why Ubuntu 10.04? I realize that it's the current LTS but if you wanna start something that depends on sound and gfx libs in the system (like a BMX usual program) you're probably gonna get hurt by the dependency hell in the package managers combined with old versions of the libs.

Have you tried to get it running on 11.04 or 11.10?

I've got BMX running on both latest Ubuntu's (and Lubuntu, Kubuntu etc.) several times during the last 6 months. If you use the search function there should be several threads in this forum that can point you to a list of apt-packages that should be installed for BMX to run.


golomp(Posted 2012) [#16]
<Ole JR>
about Compiz :
I have been in System/Preferences/Appearance
I choose pannel Visual Effects, it was already selected on None.
Do you think i should uninstall Compiz ? I don't use it
and maybe one of it's library is a source of problem ?

about glxgears :
i think glxgears is a part of mesa-utils
and i have already installed mesa-utils

<Mahan>
about Ubuntu 10.04
You give the answer : LTS

about other version test
I have not the possibility to make such test, my server turn 24h/24h
and i cant take the risk to suspend it's activity nor to loose
application for a compatibility problem.
Full installation/uninstallation/parameters/restoring clients data/validation tests
and so on would take several days without activity, i can't do that.

about list of apt-packages
I put at message 4 with the list of package i install.
i did obtain it by searching in BlitzMax forum,
if you see one missing, tell me, i will install it...

Thank you all for your help.


Mahan(Posted 2012) [#17]
So maybe I'm a bit tired today so I don't get it, but what is the app you want running?

Is it a console type server app written in BMX that you want running in linux? Is it head-less (i.e. no GUI)? Does it rely only on TTY (console) output and on files/network-sockets, i.e. nothing graphical and/or with sound?

You mention games you want ported to Linux, so are that normal executables that you hope to send to your users?

Most applications shipped as binaries on linux specify which distro(s) they work on and which version.

Also if it's something you will ship, my guess is that most users of Linux on the desktop are running one the latest versions (i.e. Like ubuntu 11.10 or 11.04)


golomp(Posted 2012) [#18]
<Mahan>
I want to use BlitzMax Linux to compile BlitzMax windows app
as standalone and as game server with GUI / (eventually as AI with GUI)
everything with graphics and sound.
Client software will be in Blitzmax Windows and Blitzmax Linux
Server software will be in Blitzmax Linux

No, actually all games i've done are Blitz3D app.
I must modify them for BlitzMax windows.
After i have to make them run on Linux.
After i will create net games. I already made
some test on windows, it works but
one computer must be used as server.

To the Linux users i would like to send them tar.gz file
like a zip file in Windows and a install procedure.

Yes, i will precise on wich Linux it's available.

Actually no shipping about kid's games but my app are
compatible with all Windows version (windows 98 and more recent)


Mahan(Posted 2012) [#19]
Ok lets split the problem and talk about the client and the server separately:

Server:

This server you are talking about: Will you be distributing it also to your users, or will you be running it yourself and have the users connect to it (through internet)?

Many game servers are written as console/TTY apps. A nice way to add an GUI/Admin/Control Panel to such an app is to make web interface and a small web app where you can control/monitor it. (Much like you probably do with your router at home)

Such a server would probably be easier to write in Node.js or Python/Django or similar language/environment and they work very well in Ubuntu10.04 LTS.



Client:

As i wrote: My hunch is that most linux users on the desktop are using quite recent versions of distros. BlitzMax games are not especially hard to get running on modern distros as long as there is GL support in linux on their computer.

Edit:
Unless the user will get the server software to run at home, i don't see any reason at all why there should be an Ubuntu10.04LTS (desktop) requirement on the client.

Last edited 2012


*(Posted 2012) [#20]
follow this http://www.blitzbasic.com/Community/posts.php?topic=95679

I have it working on Ubuntu 11.10 perfectly by following that, had to reinstall some stuff as it didnt do it first time BUT it works :D


golomp(Posted 2012) [#21]
<Mahan>
All my excuse, i am not clear.
When i am talking about a "Server" (word alone) i mean : a computer
connected 24h/24h on internet and running program to propose
services for client. (games, database, email management, file management, ...)
When i am talking about a "Server software" i mean a software wich can
manage net game connection.
When i am talking about a "Client software" i mean a software used
by player to be connected on a server.
But i also do "Client/Server software" i mean a software wich can be used as
- standalone (play against an AI for example)
- server to create net game (play against 1 or more players)
- client (a player wich want to be connected to play against other players).

I can do all this with Windows, i only search to do it with Linux
and i have only one error to solve...This one :

Xlib: extension "XFree86-VidModeExtension" missing on display ":2000.0".

<EdzUp[GD]>
i follow the link.
all these library are already installed and newest.
the only one i could'nt install is ia32-libs because it's not foundable.

sudo apt-get install ia32-libs

failed

Thank you all for your help.


skidracer(Posted 2012) [#22]
Your cheapest solution will be to install an nvidia graphics card, anyone will do.


golomp(Posted 2012) [#23]
<skidracer>
it's an option :) but i think a cheapest one is to find the missing library.

all the other applications works fine, even games... so why BlitzMax doesnt on my Linux system ?

BlitzMax works fine on Windows. Other peoples arrive to use BlitzMax on Linux.

I must have a problem of missing library or package in my system.

Any ideas ?

Last edited 2012


skidracer(Posted 2012) [#24]
Even games?

Fullscreen games?

Are you using a single monitor?


golomp(Posted 2012) [#25]
<skidracer>
yes, games, card games, mahjong, rpg, action, strategy...

yes full screen or windowed, twice works.

yes, with a graphic card 82865G (Intel)


golomp(Posted 2012) [#26]
i still have only one error to solve...This one :

Xlib: extension "XFree86-VidModeExtension" missing on display ":2000.0".

This error message appear when i want to launch BlitzMax program
windowed (like SpinText) or full screen (like Breakout)

If you have any idea, give it.


Jesse(Posted 2012) [#27]
I searched that problem in Google and it seems that it's a common problem even in Fedora. I have Linux installed but never had that problem. It seems that some people were able to solve it by re-installing the OS. I couldn't see a solution for Linux otherwise.


golomp(Posted 2012) [#28]
Thank you Jesse but it's not possible for me to re-install all my server.

As i said before (up to this reply) :
my server turn 24h/24h and i cant take the risk to suspend it's activity nor to loose application for a compatibility problem.

Full installation/uninstallation/parameters/restoring clients data/validation tests and so on would take several days without activity, i can't do that.

I really think i am close to solve it.

If only i could know wich library is missing...


golomp(Posted 2012) [#29]
I give up
:(