problems compling

Mar 17, 2008, 6:37 pm
#1
Joined: Mar 17, 2008
Posts: 14
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.
-- -jd
Mar 17, 2008, 7:44 pm
#2
Joined: Mar 14, 2008
Posts: 62
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.
Mar 17, 2008, 8:02 pm
#3
Joined: Mar 17, 2008
Posts: 14
Thanks for the quick reply. Where might I get the latest CVS and that patch?
-- -jd
Mar 17, 2008, 9:29 pm
#4
Joined: Mar 14, 2008
Posts: 62
Off the IVAN sourceforge CVS and the Downloads, respectively.
Mar 17, 2008, 10:32 pm
#5
Joined: Mar 17, 2008
Posts: 14
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?
-- -jd
Mar 17, 2008, 10:57 pm
#6
Joined: Mar 14, 2008
Posts: 62
There are all sorts of CVS managers for Linux.
Mar 18, 2008, 7:35 pm
#7
Joined: Mar 17, 2008
Posts: 14
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.
-- -jd
Mar 18, 2008, 8:20 pm
#8
Joined: Mar 17, 2008
Posts: 14
whoops, I spoke too soon, now I'm getting a different error:

http://pastebin.com/m6a5ce09e

-- -jd
Mar 18, 2008, 8:22 pm
#9
Joined: Mar 14, 2008
Posts: 62
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.
Mar 18, 2008, 8:39 pm
#10
Joined: Mar 17, 2008
Posts: 14
after ensuring that SDL_mixer was installed, I still get the same error.

http://pastebin.com/m144adbe6

the complete output of make.
-- -jd
Mar 18, 2008, 8:42 pm
#11
Joined: Mar 14, 2008
Posts: 62
Huhn. I really have no clue, then. Make sure your SDL's fine, too. Compiling the test stuff will help.
Mar 18, 2008, 8:43 pm
#12
Joined: Mar 17, 2008
Posts: 14
test stuff?
-- -jd
Mar 19, 2008, 12:45 pm
#13
Joined: Dec 2, 2007
Occupation: archmage
Location: Attnam
Interests: roguelikes
Posts: 375
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.)
Mar 19, 2008, 1:00 pm
#14
Joined: Mar 17, 2008
Posts: 14
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!
-- -jd
Mar 19, 2008, 1:58 pm
#15
Joined: Mar 17, 2008
Posts: 14
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!!!
-- -jd
Mar 19, 2008, 2:37 pm
#16
Joined: Mar 17, 2008
Occupation: Software developer
Location: Ohio
Interests: Physics
Posts: 67
To get through the autoconfigure/automake stuff, try this:

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...
Mar 19, 2008, 2:57 pm
#17
Joined: Mar 17, 2008
Posts: 14
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.
-- -jd
Mar 19, 2008, 4:08 pm
#18
Joined: Dec 2, 2007
Occupation: archmage
Location: Attnam
Interests: roguelikes
Posts: 375
You have to install the C library "pcre", which my patch uses to assign sounds to events.
Mar 19, 2008, 5:25 pm
#19
Joined: Mar 17, 2008
Posts: 14
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
-- -jd
Mar 19, 2008, 5:54 pm
#20
Joined: Dec 2, 2007
Occupation: archmage
Location: Attnam
Interests: roguelikes
Posts: 375
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?
Mar 19, 2008, 6:26 pm
#21
Joined: Mar 17, 2008
Posts: 14
That did it! It compiled successfully! Thanks a ton!

Lol..segmentation fault.
-- -jd
Jump to