Howto: Ubuntu 5.10

Archives Forums/Linux Discussion/Howto: Ubuntu 5.10

Wellmt(Posted 2005) [#1]
Here is the list of packages you'll need to install to get BlitzMax working on Ubuntu 5.10 (Breezy Badger).

A) To get the IDE running:

Extract blitzmax tarball to your home directory

Install the following package (+ = will be auto installed as a result of dependency)
----------------------------------------------------
Libstdc++5
+gcc-3.3-base


B) To compile programs

Install the following packages (+ = will be auto installed as a result of dependency)
----------------------------------------------------
g++-3.3
+binutils
+cpp-3.3
+gcc-3.3
+libc6-dev
+libstdc++5.3.3-dev (may want 6)
+linux-headers

libasound2-dev

libglu1-mesa-dev
+libgl1-mesa-dev
+libx11-dev

x11proto-core-dev
x11proto-gl-dev
x11proto-kb-dev

libxxf86vm-dev
+x11proto-xf86vidmode-dev


You will also need to get your Nvidia or ATI card working with hardware acceleration for best results. I'd recommend the Ubuntu site for more info on this

Hope it helps


Kernle 32DLL_2(Posted 2006) [#2]
hey, wow works fine. no warnings. Thx

Fr3eMaN


VP(Posted 2006) [#3]
On a fresh installation of Ubuntu 5.10, libXxf86vm package cannot be found.

I did a "sudo apt-get install libxxf86vm-dev" though and managed to then compile the following without trouble:

Graphics 800,600

DrawText ("Hello, World!",50,50)
Flip
WaitKey

I'm running under VMWare 5.5, so I'm anticipating any number of OpenGL related problems.

I do get:

Building untitled1
Compiling:untitled1.bmx
flat assembler version 1.64
3 passes, 2975 bytes.
Linking:untitled1.debug
Executing:untitled1.debug
/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5

Process complete

When compiling, should I just ignore this warning?


Wellmt(Posted 2006) [#4]
Hmm looks like I made a mistake with the package name. Having checked I think you are correct. Sorry about that.

Fixing it now.

Yes you just have to ignore the warning. Doesn't seem cause any problems that I've seen.

I've also tried BMax running under VMWare Ubuntu and to be honest the experience wasn't good IIRC.


Wiebo(Posted 2006) [#5]
phew, i'm so glad i use windows. :) oop, did i sound like a troll ? nm me :)


VP(Posted 2006) [#6]
Ah, right :)

Just to let everyone know, BMax+Ubuntu+VMWare works until you try anything OpenGL'ish.

Bog-standard stuff works fine, but quite what use this would be to anyone I couldn't begine to imagine.

Now I'm left trying to figure out how to dual-boot without munging my current (non-standard Windows installed to E:) config.


Wellmt(Posted 2006) [#7]
It's easiest if you just add another hard drive to your PC and install Ubuntu on that. There might be something that helps you in my post here:

http://www.ubuntuforums.org/showthread.php?t=98706&page=3


ragtag(Posted 2006) [#8]
Could someone please make this thread sticky! :-)


Followed the instructions, but can't get BlitzMax 1.18 to run. If I dobble click MaxIDE nothing happens. And if I do ./MaxIDE in the console I get.

./MaxIDE: error while loading shared libraries: libXxf86vm.so.l: cannot open shared object file: No such file or directory

Anyone know what that is. I'm new to linux so have no idea.

Ragnar


VP(Posted 2006) [#9]
I found a spare 20GB drive and have installed Ubuntu onto that. Seems to be running nicely. Got Opera installed (with java and flash working) and nvidia drivers seem to be working.

Will try installing bmax...

**EDIT** Absolutely spot-on. Works beautifully :) Now to find a decent IDE...


Wellmt(Posted 2006) [#10]
Yes the IDE under Linux is sadly lacking especially the help. It'd be great if it was a GTK2 app.

I wish I could make this thread sticky but I have no idea how to.

RagTag, are you sure that you've installed libxxf86vm-dev? Use Synaptic to check.


WedgeBob(Posted 2006) [#11]
I'm about to get Ubuntu in the mail today sometime, so I'll be installing that sometime either late tonight, or early tomorrow. What I need to do is remove Xandros from my desktop, and replace it with Ubuntu. Xandros is something I got from the library anyway, so when my book gets returned, so does the CD, so I'm probably gonna go with more of a permanent Linux distro in Ubuntu or SUSE 10. I got those coming my way, so I'll be sure to try those two out.


Matt McFarland(Posted 2006) [#12]
Interesting enough, when I ported over Ace of Bases to linux I found that MoveMouse was moving the cursor to the lower right corner no matter what (I could put MoveMouse(1,1) for that matter)

I wonder if it has something to do with the following warning (everyone says its harmless in this post though!! Are they wrong?!?!)

/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5

Everyone saying its harmless here, but what if that's the cause. has anyone tested MoveMouse with ubuntu and this warning?


Matt McFarland(Posted 2006) [#13]
any answers? ideas?


WendellM(Posted 2006) [#14]
Thanks for the instructions, Wellmt, they did the trick.

You will also need to get your Nvidia or ATI card working with hardware acceleration for best results.

This is what stopped me in my tracks when I tried Ubuntu about a year ago. I was able to get unaccelerated video fine on my ATI Radeon 9600, but couldn't ever get it going with accelerated drivers.

I just installed 5.10 and tried the instructions in the Ubuntu Wiki (link below) and they worked. So, my Radeon now has hardware acceleration. In case other ATI owners have this problem, I used the "Install Instructions for Ubuntu 5.04 (Hoary Hedgehog) and later" from here:

https://wiki.ubuntu.com/BinaryDriverHowto/ATI


Robert Cummings(Posted 2006) [#15]
This has convinced me not to bother supporting linux.


Wellmt(Posted 2006) [#16]
eh I don't understand One Eyed Jack? Why has this convicinced you not to bother supporting Linux?


Robert Cummings(Posted 2006) [#17]
It seems like a nightmare to me. I've installed several linuxes these past few days and they either won't install or they screw up the display or some other thing happens. It wears you down after a while. And all this specialist knowledge you need.

In windows or mac, you run blitzmax and you're done, so you can see how I'm really put off this. When my games done, I'll take just one weekend to port to linux. If it can't be done in a weekend, I'm not doing it.


skidracer(Posted 2006) [#18]
If you're too proud to ask for help maybe you should be posting in a more appropriate thread.


Robert Cummings(Posted 2006) [#19]
I've never been too proud to ask for help - see my various threads littered about asking for help, humbly too I might add.

I just fear linux totally..!


WedgeBob(Posted 2006) [#20]
Well, Ubuntu didn't do the trick for me, but after installing SuSE 10, that works fairly much perfectly for my PC's configuration. Of course, Novell's products are rather easy anyway...


WendellM(Posted 2006) [#21]
Skid,

I was in Jack's shoes until a few days/months ago (depending on how you define "was"), so please forgive this posting here (or email me if you want it nuked and I'll gladly replace it with the familiar "." - this is presumably better than nuking the whole (otherwise useful) thread - which I hope is still useful given info like that below <g>.


One Eyed Jack,

I'd email you if you had one listed, but in lieu of that:

Around a year ago, I'd have heartily agreed with you (really: big arm-lifting toasts of ale to your health and everything <g>). I tried installing Linux (first Red Hat, and later Fedora Core, then Ubuntu 5.04). And while I could get the basic stuff installed, it didn't do me much good, because I wanted to do BlitzMax.

Ubuntu 5.04 seemed the best, since I could install the needed libraries (or whatever they're called). Yeah, I know that having to drop to a CLI terminal and hammer out commands is so 1980's, but that's just part of Linux. I don't defend it (it seems kind of retarded, to be honest), and I don't embrace it (though it's kind of a throwback to the fondly-remembered, CLI-based DOS that I grew up on in the 1980s).

Whatever. It is what it IS. What bugged me about 8-12 months ago was that there was no way to get accelerated 2D-in-3D graphics for BMax as I could with Windows XP and OSX 10.3. I tried every graphic way, but no go - and each unsuccessful try crashed my Linux desktop and requiring a reinstall - and I ended up HATING LINUX!!! So, I DO know what you mean. I gave up on Linux then.

But then I tried Ubuntu 5.10 a couple of days ago along with the Wiki Radeon instructions above. And through a fusion of those docs and my own computer knowledge (plus a little guesswork), I was able to get Ubuntu 5.10 running with decent 2D-in-3D graphics (for BlitzMax 1.20). I admit that it was nowhere as easy as was Windows/MacOS, but I could puzzle my way through it with trial-and-error: expect mistakes and retries.

Now, I'm not a converted Linux-head. I still can't believe how complex it is to get a "simple" distro like Ubuntu running compared to WinXP/OSX. But I can say that Ubuntu 5.10 is the easiest Linux that I've tried, including accelerated graphics (which work with BlitzMax for the first time).

So, if you're still interested, please just take that limited info with the big grain of salt that it (unfortunately) still requires. If you still find Linux to be too much trouble, I certainly won't argue: I found it too much trouble in the past, so I can certainly understand. I just happened to find Ubuntu 5.10 to finally match my clarity needs for installing (and perhaps get lucky there).


Sub_Zero(Posted 2006) [#22]
Linux is easy if you know what you are doing, it takes more than a couple of days to learn, but when you ge the picture of it, then it's really simple built up.

I would guess that alot of the problems people are having is because they can't get 3d acceleration to work, and blitzmax depends on it alot.
Hell alot of people that don't even know what blitzmax is, is having trouble getting 3d acceleration in linux. They can't get their games (like enemy territory, quake4, ut2005, etc) to run properly.

Also, you don't know for certain without testing that you actually have 3d acceleration in linux, cause glxinfo might report that direct rendering is enabled, but if there is a wrong kernel module or not properly built kernel module for your graphics card installed, then you don't have 3d acceleration at all, even if (using the nvidia drivers) the manufacturing logo appears at startup.

A good way to check this is to run a "heavy" 3d screensaver (do NOT test with glxgears, it is old and will run smoothly on a standard "nowaday" computer because of the processor speeds, even without 3d accell.

I have seen that a lot of Ati cards and certain nvidia cards have been a pain in the ass to install the drivers for, but always managed it in the end, with a lot of tuning ofcourse, sometimes without knowing how I did it. That was in mandrake linux. All in all it's best to use the distro's own driver packages if possible, and enable 3d acceleration allready when installing the distro, if possible, not later, that will give you a better chance of it to work.

Downloading and installing drivers from the manufacturer's page might give you problems you don't want, if you don't know what you are doing or what is required to install the drivers. So in general it is suggested that if you feel you don't have the knowledge to, and allready have 3d acceleration, don't install any newer driver if you have a working one.


skidracer(Posted 2006) [#23]
Wow, I just read that ATI howto and have to agree with One Eyed Jack. Nvidia users have got it sweet it seems.


WendellM(Posted 2006) [#24]
^ Yeah - I couldn't get my poor ATI card to work as accelerated no matter what I tried back months ago: everything was a pain and nothing (AFAIK) worked, while it seemed (and still seems) so easy for nVidia cards to be accelerated under Linux.

That's why I was so glad to find the newer instructions that I link above (the relatively simple Ubuntu ones, not the more-complex, ati.com ones). Complex as they might seem, the Ubuntu ones are (relatively) simpler than earlier ones and, more importantly, they ACTUALLY WORK (for my Radeon 9600 anyway). I use Digesteroids as the test: when non-accelerated the ship explosion brings the framerate down to around 2-3 FPS, but once I followed the instructions it explodes as smoothly as in Win XP, which indicates that hardware acceleration is working.

It seems better for ATI Radeon cards under Ubuntu now (5.10): only about as complex to run accelerated under it as getting BlitzMax itself to run under it, so that's a big step forward (though certainly not ideal/as simple as in Windows/OSX).


Robert Cummings(Posted 2006) [#25]
I think linux has a lot of evolving to do before anyone can claim it is a productive os for "everyone". I understand it has a perfect place for business though. I am heartened by your comments and will give it another try. Definately using SDL and hopefully with hardware acceleration but its likely to be a bit of a scary thing.


Sub_Zero(Posted 2006) [#26]
Who said it's for everyone?

Anyway, if you get things to work in linux, it will work and work and work and work.

Besides, linux is evolving right under your feet. :)


Wellmt(Posted 2006) [#27]
Yes it does evolve at an alarming (and good) rate.

The problem is usually vendor support. I only ever get NVidia graphics cards because Nvidia stuff generally works fine under Linux and Nvidia provide accelerated Linux drivers. They might not be open source but at least they are providing support for their hardware.


Wiebo(Posted 2006) [#28]
The only thing I get when I try to install Blitzmax is the comment that I haven't selected a valid installation folder. Can anyone help me with that?


Wiebo(Posted 2006) [#29]
nm, i forgot to install before i ran the update =]


WendellM(Posted 2006) [#30]
After installing Ubuntu 6.06, I followed the instructions at the top of this thread and they got BlitzMax running in it. Libstdc++5 was already installed, and libxxf86vm-dev auto-installed a few other dependencies, but those are mere details. :)

I do get a warning after compilation, but I got a different one with 5.10 which the common wisdom was to ignore, so I don't worry about this one too much <g>:

/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5
*********************************WARN_ONCE*********************************
File r300_state.c function r300Enable line 456
TODO - double side stencil !
***************************************************************************
No ctx->FragmentProgram._Current!!



computercoder(Posted 2006) [#31]
I too installed Ubuntu 6.06, and it went rather smoothly. I also get the same warning. At least with this distro, EVERYTHING works without having some weird work-around. Linspire was too painful, even if I did finally get everything to work.


Wiebo(Posted 2006) [#32]
compiling works now but installing nvidia drivers is an absolute nightmare, and doesn't work yet... I wanted to see how things work on linux but now i don't know.


Wellmt(Posted 2006) [#33]
I'll be setting up Ubuntu 6.06 on a new box with Nvidia hardware in the next week or so. Should be interesting. I'll post anything I find out. One way or anther I'll get it working.


Wiebo(Posted 2006) [#34]
You have my blessing, I gave up. Stuff is running now, but I doubt it is using the correct driver as it's very slow... How can I check which driver it is using? Well, keep up posted =]


WedgeBob(Posted 2006) [#35]
Well, I'm looking around for installation instructions for the new Dapper Drake 6.06 installation packages, have those been compiled yet? Also, I have an ATI Mobility X300, which was supported for the xorg-driver-fglrx package. However, I dunno if that card has 3D acceleration or not (knowing Dell's graphics cards, I think I'm sorta dead ended for upgrading to a better mobility card). Wish I knew more about how well BMax would support 6.06 LTE at all.


LAB[au](Posted 2007) [#36]
In case anybody would like to install Ubuntu...

Did an installation of Ubuntu 6.10 following these instructions, it worked, all listed packages are still available.


Tachyon(Posted 2007) [#37]
This is a complete noob question (I'm just starting with Ubunut myself for the first time)...

What is the proper way to install BlitzMax on Ubunu? (I'm using 7.04) I downloaded the 1.18 Linux installer and it's not really an "installer", just the needed files in a folder. Where do I extract this folder to? There are many directories on the hard drive, most of which I don't have permission to write to. I can unzip it in my \home directory, but that doesn't seem right.

Also, when I did put it there (and patch it up to the latest version and sync'd it) I get an error while compiling that says: "realpath failed for resources/variables.bmx". It ends where I try to include the variables.bmx file in the main game.bmx file. This path works fine on Win32 and MacOS, so I am thinking it has something to do with how I am installing BMax on Ubuntu.


Brucey(Posted 2007) [#38]
Nothing wrong with having it in your home dir, tbh.
If you are the only user on the box or the only one using BlitzMax on it, installing it in your home dir is the least-hassle place for it.

I have mine installed in /home/brucey/programming
so extracting here the root folder becomes : /home/brucey/programming/BlitzMax

Then get yourself the latest (1.24) update, extract it, and run the executable, which will ask you for the location of the BlitzMax folder.

That's it really, as far as installing goes.
From there you can either
1) from the command line :
cd to the BlitzMax folder.
type,  ./MaxIDE

or 2) from Nautilus (the explorer-type file browser)
open the BlitzMax folder
double-click on MaxIDE


Assuming you have all the required developer stuff installed, you should be now up-and-running.

;-)


Brucey(Posted 2007) [#39]
Remember that Linux is Case Sensitive, Windows isn't, and Mac can be (it depends what time of day it is)...

I always use lower-case for all my Max filenames - can't go wrong then.


Tachyon(Posted 2007) [#40]
That was it Brucey- I was using a capital letter in the path. Thanks, man! Also thanks for the install tips! =D


WedgeBob(Posted 2007) [#41]
Were there any updates to the Feisty Fawn installations that you can post about?

I mean, come on, hardly anyone uses Breezy Badger anymore, heck, maybe even Dapper Drake LTS users seem to be moving on already.


doswelk(Posted 2007) [#42]
Well the instructions worked for me on KUBUNTU 7.04 (using the terminal), and this is from a linux newbie....


Otus(Posted 2008) [#43]
Just thought I'd tell that the instructions here also work for Debian 4.0 "etch". Didn't have to use the command line once - Synaptic took care of the needed packages.


slenkar(Posted 2008) [#44]
/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5

I get this warning and but it compiles


Brucey(Posted 2008) [#45]
It's because you are building with gcc 3.3, while most of the system is built with gcc 4.x. The warning indicates that libGLU is built with a newer gcc than you are using.

You can generally ignore the warning. Although if strange things start to happen, it might be the first place you would look at.


Repentless(Posted 2008) [#46]
Okay, I installed all those packages, and when I run it I get this error:

"Unable to determine BlitzMax version.

Please reinstall BlitzMax to repair this problem."

I reinstalled it and it still doesn't work.

I'm running Ubuntu Hardy Heron.

Any help?


Armitage 1982(Posted 2009) [#47]
Would it be possible to actualise installation guide for the last Ubuntu ?
I think it's 8.10 The Intrepid Ibex

I install everything with the last know version but I keep having this Linking error :

/usr/bin/ld: Cannot find -lfreetype
Collect2: ld a retourn
Build Error: Failed to link ...

I try to install any freetype 1&2 related package but it doesn't help.
Modules build correctly through...

Also I'm trying Ubuntu on Windows XP - Sun xVM VirtualBox Because I always get bad experiences while using dual boot.


Brucey(Posted 2009) [#48]
For linking, you always need the "dev" packages.

So, if it complains about -lfreetype, then you'll need to install the freetype-dev package (or whatever its real name is).

btw, freetype 2 is the current version.


Armitage 1982(Posted 2009) [#49]
I thought I knew that but think is there is no freetype 2 in my Synaptic installer...
Only a freetype2-demos :(
HOHO I did a search and found this : http://packages.ubuntu.com/fr/source/intrepid/freetype
remove freetype2-demos and install libfreetype6-dev and now working like a charm :)

Ho ! And as you are there too Brucey, CEGUI mod can't build because :

Compiling:CEGUIEditbox.cpp
/home/armitage1982/BlitzMax/mod/bah.mod/cegui.mod/cegui/src/elements/CEGUIEditbox.cpp:34:18: error: pcre.h: Aucun fichier ou dossier de ce type



Armitage 1982(Posted 2009) [#50]
Hum Ok I install another packages called libpcre++-dev and now it's ok.
But what a mess to simply run BlitzMax...


Brucey(Posted 2009) [#51]
You have BaH.Regex installed?


Armitage 1982(Posted 2009) [#52]
Oh yes !
It's just that I add every subversion in one step and CEGUI was building before Regex.
Just hope having libpcre++-dev installed now won't interfere somewhere with Regex !
I feel sorry that Linux is so experimental to me.

If I successfully link my game work under xVM VirtualBox, I will probably consider installing Ubuntu for real on another disk and hope grub won't mess anything this time (Wubi seem to be a good solution too).
Could be great having release for both platform :)
Wondering about Mac too...

EDIT

Ok so I'm Ubuntu 9.04
Really this time not via LiveCD or virtualized machine. And as this linux come with all the pre-requisite, blitzMax working fine :)
I use Wubi to install this new version and things are going very well (for the moment) not even a slow down as expected !.