Howto: Ubuntu 6.06 LTS

Archives Forums/Linux Discussion/Howto: Ubuntu 6.06 LTS

Wellmt(Posted 2006) [#1]
Here is how to install Blitzmax under Ubuntu Linux 6.06 LTS (aka Dapper Drake). It's not much different from 5.10 but here you go:

[EDIT: This guide also works for Ubuntu 6.10 Edgy Eft]

1. Extract Blitzmax tarball to home directory so you have a directory called Blitzmax in it (makes patching easier)

2. Install the required packages.

Open a terminal and type the following command:

sudo apt-get install g++-3.3 libglu1-mesa-dev x11proto-core-dev x11proto-gl-dev x11proto-kb-dev libxxf86vm-dev libasound2-dev

This will install the packages required plus any additional packages. Alternatively you can install the above packages through Synaptic.

For your information:

g++-3.3 also installs:
binutils cpp-3.3 gcc-3.3 libc6-dev libstdc++5-3.3-dev linux-kernel-headers

libglu1-mesa-dev also installs:
libgl1-mesa-dev mesa-common-dev

libxxf86vm-dev also installs:
libx11-dev libxau-dev libxdmcp-dev x11proto-input-dev x11proto-xf86vidmode-dev

Note #1: Additional packages may be required for specific graphics cards (e.g. nvidia-glx). Please see the Ubuntu forums or Wiki for help with installing these.

Note #2: You cannot run compiz or xgl. If you do have these installed then Blitmax is unable to change the screen resolution so you'll get an error message when you try to compile and run a program (at least with Blitzmax 1.18)

Added 19-Nov-2006: Building GTK applications
If you want to build GTK programs using Bruceys GTK mods then you'll also need to install a couple more packages. Use:

sudo apt-get install libglib2.0-dev libgtk2.0-dev

This will install a load of libraries required to build GTK applications.


Steffenk(Posted 2006) [#2]
Works well with Kubuntu 6.10 Edgy Eft Release Candidate, too.


Wellmt(Posted 2006) [#3]
Good good. Thanks for that info.

I am/was going to post a Edgy Eft post but it doesn't support my hardware yet. Should do by release time though.


BlitzSupport(Posted 2006) [#4]
Nice! It worked first time for 6.06, which was great, but on a fresh install of 6.10 (Edgy Eft) it initially failed (this was after installing the Nvidia drivers via Automatix).

I ran (title bar menu) System -> Administration -> Synaptic Package Manager and made sure Settings -> Repositories had everything checked in the first tab (it did already, presumably because of Automatix), and it worked the next time I ran the installation line below (from top post), even though nothing was changed! Not sure why it failed the first time...

sudo apt-get install g++-3.3 libglu1-mesa-dev x11proto-core-dev x11proto-gl-dev x11proto-kb-dev libxxf86vm-dev libasound2-dev


Just documenting my experience with 6.10... thanks Tim!


Paul "Taiphoz"(Posted 2006) [#5]
I'm getting an error.

/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 142 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Serial number of failed request: 19
Current serial number in output stream: 20


Any ideas.


Wellmt(Posted 2006) [#6]
I'll try and take a look when I get a Ubuntu CD burnt that I can boot!

Blitzsupport: My guess is that the Automatix changed the repository cache and it needed refreshing. I think there is some kind of refresh/update function in Synaptic IIRC if that ever happens again, but otherwise use:

apt-get update

at the command line and that should do the trick.

Yavin - not seen that before. Have you got an ATI card by chance? Also are you running Compiz or XGL to enable fancy desktop effects?


Paul "Taiphoz"(Posted 2006) [#7]
Its an sis card... on board.


Wellmt(Posted 2006) [#8]
Hmm..I suspect that SIS does not support OpenGL under Linux. I found this:

Q: Tuxracer is terribly slow on my SiS 315/550/650/651/330/661/741/760/761/340/XGI Vx
A: DRI and hardware accelerated OpenGL/3D is not supported on these chipsets.

Don't know if that will help or not or whether it's a)true anymore or b)valid for your chipset.

Have you tried any other OpenGL applications?


Uber-nerd(Posted 2006) [#9]
Ok I'm trying to install on 6.06... and it isn't fun. None of the commands from the first post work :( however I can start up blitzmax but when I try to build my code it says "build error: failed to link /home/bob/blitzmax/test"

and on the line above that it says "sh: g++-3.3: command not found".

I've tried a fair bit of that crazy commandline stuff in terminal, but no luck so far. So apparently I'm missing that "g++-3.3" package. I've tried "sudo apt-get install g++-3.3" but it says that it can't find that package.

In the package manager there no such package as g++-3.3 but there is "g++" and "g++-4.0" - both of which have boxes ticked.

Suggestions please?


skidracer(Posted 2006) [#10]
is your machine online?


Uber-nerd(Posted 2006) [#11]
... Oh crap I need internet first? I'm getting a hardware modem for my b-day on the 13th December. Otherwise its only my 98 that I have online.


skidracer(Posted 2006) [#12]
Did you check to see if ubuntu recognized your winmodem? It's suppose to have a pretty good hit rate compared to other distros for such things.


Uber-nerd(Posted 2006) [#13]
Uhh... its an intel one, it has drivers for suse and other distros but I think thats because the distro makers write them. What options do I have for work arounds? I can't just tell it to "connect"... it needs its own ubuntu drivers right? Should I bother to read the chip set thingy on the modem or get any details?


skidracer(Posted 2006) [#14]
It probably won't be supported but it won't hurt to try, go to the Networking section of System => Administration which will let you set up the ppp connection in a graphical interface and I assume tell you if ubuntu found your modem and dev/modem is actually all setup and ready to go.

Probably not worth the bother but you could look here also, lots to learn...

https://help.ubuntu.com/community/DialupModemHowto


Uber-nerd(Posted 2006) [#15]
Yeah I've read that "dialupmodemhowto" thing. I'll just get a hardware modem. Even if it can detect the modem, I don't know the password :(

No worries, I'll argue with my step-dad when he gets back to have lunch and tell him not to use his clear.net.nz account for his emails so that I can get the internet pw without being able to read his emails. I don't know why people use the email address from their isp, some guy at school said his parents wouldn't change from xtra because they needed their email account. Dumbest thing I've ever heard.

Anyway I'm confident I'll get it sorted in the next month or so.