The Cathedral of Attnam ()
-   Trouble Shooting and Bugs (/forums/2/Trouble_Shooting_and_Bugs)
-   -   problems compling (/topics/236/problems_compling)

Fryguy5134

Mar 17, 2008, 11:37 pm
Hello. I am trying to compile IVAN in Ubuntu, and I ran into a bit of difficulties. I put the output up at pastebin, here is the link.

http://pastebin.com/m5462a6c2

Thanks in advance for the help.

Dumb Shit

Mar 18, 2008, 12:44 am
You're going to run into a lot more than that using the latest non-CVS. Use the CVS version and Z's diff patch.

Fryguy5134

Mar 18, 2008, 1:02 am
Thanks for the quick reply. Where might I get the latest CVS and that patch?

Dumb Shit

Mar 18, 2008, 2:29 am
Off the IVAN sourceforge CVS and the Downloads, respectively.

Fryguy5134

Mar 18, 2008, 3:32 am
Downloading a single file at a time off the CVS tree doesn't appeal to me. Is there an easier way to download it off of there?

Dumb Shit

Mar 18, 2008, 3:57 am
There are all sorts of CVS managers for Linux.

Fryguy5134

Mar 19, 2008, 12:35 am
Thank you for your help. For anyone else who is trying to compile from CVS all you have to do in the console is:

cvs -dserver:anonymous@ivan.cvs.sourceforge.net:/cvsroot/ivan login

when prompted for the password just hit enter then type:

cvs -z3 -dserver:anonymous@ivan.cvs.sourceforge.net:/cvsroot/ivan co -P ivan/

there ya go! Ivan will be downloaded to your home directory in a folder named ivan.

Fryguy5134

Mar 19, 2008, 1:20 am
whoops, I spoke too soon, now I'm getting a different error:

http://pastebin.com/m6a5ce09e

Dumb Shit

Mar 19, 2008, 1:22 am
In the future post the whole compile log.

You don't have SDL_Mixer, which for some ungodly reason Z decided needed to be added to IVAN.

Fryguy5134

Mar 19, 2008, 1:39 am
after ensuring that SDL_mixer was installed, I still get the same error.

http://pastebin.com/m144adbe6

the complete output of make.

Dumb Shit

Mar 19, 2008, 1:42 am
Huhn. I really have no clue, then. Make sure your SDL's fine, too. Compiling the test stuff will help.

Fryguy5134

Mar 19, 2008, 1:43 am
test stuff?

Z

Mar 19, 2008, 5:45 pm
That's because I only changed the MinGW makefile (ivanmgw.mak), not the Linux one. IVAN 3D uses some libraries that IVAN does not use, and you have to tell the compliler about it.

Find your Makefile, there you should have "-lSDL"; replace it with "-lSDL -lSDL_mixer -lpcre". (This should be fixed in automake, not in Makefile, but I don't know enough about automake.)

Fryguy5134

Mar 19, 2008, 6:00 pm
Wonderful! I don't know squat about automake either...so until I find how to do that I'm not going to be able to compile. Thanks for the help guys, and now my quest to figure out how to fix that with automake!

Fryguy5134

Mar 19, 2008, 6:58 pm
I went into Makefile just for kicks and fixed that line. I then tried to compile again, and it stopped at a different point:

http://pastebin.com/m2298c87b

This is getting tiresome, but I won't stop until I have IVAN on my new EEE PC!!!

Ighalli

Mar 19, 2008, 7:37 pm
To get through the autoconfigure/automake stuff, try this:


Code

aclocal
autoconf
automake
./configure
make
sudo make install



After ./configure, you'll have the Makefile which may need changed. When I did it, there were 2 errors involving scope operators. When I changed them, it compiled. My version is based on the CVS (only) and seg faulted when I left the village, so there is still more to be done...

Fryguy5134

Mar 19, 2008, 7:57 pm
I've done all of that already, I'm now trying to get it to compile successfully. I have no clue what to change in the makefile except what was mentioned earlier. Thanks anyways, but I need to know what to change.

Z

Mar 19, 2008, 9:08 pm
You have to install the C library "pcre", which my patch uses to assign sounds to events.

Fryguy5134

Mar 19, 2008, 10:25 pm
Alrighty, that took it a bit farther. Yet another error comes up though, and I've ensured to get all the dev packages for libpcre.

pastebin rocks....
http://pastebin.com/m45bb22e9


I want to thank you guys for helping me out on this. Words cannot express how much I love IVAN...and after this compiles successfully, I'm going to play the heck out of it!

Just for confirmation, this is the line I altered in my Makefile:

SDL_LIBS = -L/usr/lib -lSDL -lSDL_mixer -lpcre

which I altered from

SDL_LIBS = -L/usr/lib -lSDL

Z

Mar 19, 2008, 10:54 pm
In line 35 of your pastebin, you still have only -lSDL. I think you did something wrong with adding -lSDL_mixer -lpcre. Maybe there is some other place with -lSDL?

Fryguy5134

Mar 19, 2008, 11:26 pm
That did it! It compiled successfully! Thanks a ton!

Lol..segmentation fault.