| View previous topic :: View next topic |
| Author |
Message |
Dref le Ladi giant mushroom
Joined: 30 Jan 2006 Posts: 5
|
Posted: Mon Jan 30, 2006 2:36 am Post subject: Compiling with GCC 4.0 (e.g. Ubuntu Breezy Badger) |
|
|
Hello dear IVAN fans
It's been a while since I wanted to play IVAN under my breezy but the problem is : the code of 0.50 isn't gcc 4.0 compatible. Yes, it is said to be fixed in the CVS but I didn't managed to retrieve the source.
So I tried my best to build a workaround:
1) install the packages libsdl1.2-dev, gcc-3.4, g++-3.4 and their dependencies.
2) get the sources on the IVAN site http://prdownloads.sourceforge.net/ivan/ivan-0.50.tar.gz
3) get a console and go in the folder where the sources are
4) do a "gunzip ivan-0.50.tar.gz"
5) do a "tar -xvf ivan-0.50.tar"
6) do a "cd ivan-0.50"
7) do a "export CC=/usr/bin/gcc-3.4"
8) do a "export CXX=/usr/bin/g++-3.4"
9) do a "./configure"
10) do a "make"
11) do a "sudo make install" and type the administration password
12) do a "ivan" and pray Loricatus
I think this will work on a "standard" breezy. But i'm an AMD64 breezy and I get the error:
*** glibc detected *** free(): invalid pointer: 0x00000000009c45dc ***
Abandon
when I launch the game. Can any "standard" breezy tell me if this works?
I think it is close...
----
Dref le Ladi
http://fdemesmay.dyndns.org |
|
| Back to top |
|
 |
Basilisk
Joined: 09 Feb 2006 Posts: 1
|
Posted: Thu Feb 09, 2006 6:41 am Post subject: |
|
|
I too have found that the code of ivan 0.50 is incompatible with gcc 4.0.
In particular, gcc 4.0 doesnt like the "script" code.
It is my understanding that the "script" and "metascript" calls were created
to modify how IVAN is compiled, but I am not a guru and it seems weird to me.
Unfortunately I have not used AMD64 processors.
Other things compile on this system right? |
|
| Back to top |
|
 |
Dref le Ladi giant mushroom
Joined: 30 Jan 2006 Posts: 5
|
Posted: Thu Feb 09, 2006 9:39 am Post subject: |
|
|
of course, some things compile vey well.
Actually, my whole system compiles very well. It's an error in the IVAN code for sure
----
Dref le Ladi
http://fdemesmay.dyndns.org |
|
| Back to top |
|
 |
Dref le Ladi giant mushroom
Joined: 30 Jan 2006 Posts: 5
|
Posted: Fri Feb 10, 2006 8:52 pm Post subject: |
|
|
GOT IT!
The method I explained over there should work on any distribution bundled with GCC 4.0 .
Following is the method to make ivan work on an AMD64 architecture running with a 64bits kernel.
well, I hope you really wanna play, but if you do : here we go.
Actually IVAN is Neither GCC 4.0 compatible NOR AMD64 compatible.
GCC 4.0 fix is just explained over there.
The AMD64 fix could be simple : do not compile with amd64 specific instructions since your processor can handle both 32 bits and 64 bits instruction set. But actually, there is a problem : all libraries that uses ivan should be 32 bits too!
So let's set up a false 32 bits system to run 32 bits executables.
to do that, follow those steps:
http://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id272095
but do NOT install a sid because Debian sid is an unstable version. Prefer a Debian stable or an Ubuntu Breezy Badger.
Then, if you choosed a GCC 4.0 distribution, apply the steps of the previous fix.
And it has other benefits too : you will be able to install Macromedia Flash and mplayer with the w32codecs.
it works by me!
good luck!
----
Dref le Ladi
http://fdemesmay.dyndns.org |
|
| Back to top |
|
 |
ventricule
Joined: 03 Apr 2009 Posts: 1
|
Posted: Fri Apr 03, 2009 8:15 pm Post subject: |
|
|
| Thanks a lot Dref, it works like a charm on my Ubuntu(I wonder why, your name sounds familiar to me...) |
|
| Back to top |
|
 |
|