Page 1 of 1

How do you build Exult on Mac OS X?

Posted: Tue Aug 19, 2003 6:06 pm
by Sean Gies
Are there instructions for building Exult on Mac OS X? I tried opening the Exult.pbproj in Project Builder, but it is not valid (all its files are not checked in). Thanks, Sean.

Re: How do you build Exult on Mac OS X?

Posted: Wed Aug 20, 2003 8:13 am
by wjp
I'm fairly sure it's simply

./configure
make

Re: How do you build Exult on Mac OS X?

Posted: Wed Aug 20, 2003 3:06 pm
by Anonymous
Err, I assume you need to install Fink first, and use it to get libsdl and libsdl_mixer?

Re: How do you build Exult on Mac OS X?

Posted: Thu Aug 21, 2003 2:40 am
by wjp
Well, you need to install SDL and SDL_mixer in such a way that configure will find them, yes. Fink is one way to do that.

Re: How do you build Exult on Mac OS X?

Posted: Thu Aug 21, 2003 12:01 pm
by seangies
Ok, so this was a little harder than I expected. But I'm still stumped.

I already had Fink, so I just installed SDL and SDL_mixer. My first attempt at installing the SDL developer frameworks availble directly from libsdl.org did not work. They do not contain libsdl.m4, just headers and binaries, and the Exult build process is hard-coded to look for the Fink-installed version.

I also had to do this:
sudo ln -s /sw/lib/libsmpeg..dylib /sw/lib/libsmpeg.dylib

Using the 1.1b2 source snapshot, I was finally able to run
./configure
make

It built fine, but would not run. It would crash with some malloc error when the Black Gate game menu was supposed to be displayed:
malloc_zone_something() invalid size: -6

So... Trying the latest directly from CVS:
I could not get the configure script built properly. First I had to use Fink to upgrade automake & autoconf to the latest versions in order to run the autogen.sh script.

Then, it gave me warnings that I should add the contents of libtool.m4 to aclocal.m4. Ignore, moving on... The configure script built, but would not produce a valid Makefile: There was some buisiness about @OBJCDEPMODE@ and it being unable to auto-detect the Objective-C compiler.

At this point, I gave up and went back to playing the game. :) I would really appreciate it if someone who knows what they're doing could fix the build process on OSX, or at least update the INSTALL file to include more detailed instructions. Better yet--check in a good version of the Project Builder and Interface Builder files.

Thanks.

(Let me know if I should post more accurate error messages to help debug this stuff. I'm on a different system right now.)

Re: How do you build Exult on Mac OS X?

Posted: Thu Aug 21, 2003 1:36 pm
by Dominus
Are you running the latest version of OSX? There was some serious bug that prevented you from actually playing exult.

See http://exult.info/forum/viewtopic.php?p=14803#p14803

Re: How do you build Exult on Mac OS X?

Posted: Thu Aug 21, 2003 2:54 pm
by seangies
It works! Thanks.

These were my steps to make it happen. They should probably be documented somewhere in the INSTALL or README.MacOSX:

Install these from Apple:
December 2002 Mac OS X Developer Tools
Dec 2002 gcc Updater (gcc 3.3)

Install these packages with Fink:
sdl
sdl-mixer
automake1.7
libtool14

Create these symbolic links:
sudo ln -s /sw/lib/libsmpeg-0.4.0.dylib /sw/lib/libsmpeg.dylib
sudo ln -s /sw/lib/libvorbisfile.3.dylib /sw/lib/libvorbisfile.dylib
sudo ln -s /sw/lib/libvorbis.0.dylib /sw/lib/libvorbis.dylib
sudo ln -s /sw/lib/libogg.0.dylib /sw/lib/libogg.dylib

Compile Exult:
./autogen.sh
./configure
make

Re: How do you build Exult on Mac OS X?

Posted: Thu Aug 21, 2003 2:56 pm
by seangies
Oops! Forgot a step:

Activate gcc 3.3 (from Apple's updater):
sudo gcc_select 3.3

Re: How do you build Exult on Mac OS X?

Posted: Fri Aug 22, 2003 12:39 am
by Dominus
noted! You need latest OSX, too, right?

Re: How do you build Exult on Mac OS X?

Posted: Fri Aug 22, 2003 7:27 am
by seangies
I'm not sure about the version of OS X required. Personally, I always keep my systems up-to-date. I'm running 10.2.6 (Jaguar with all the software updates).

I'm going to notify the Fink maintainers about those symbolic links. I believe they should be set up when SDL is installed.

If I were proficient with shell scripts, I'd do this myself, but...

It would be nice if Exult's configure script checked for gcc 3.3 or later. Currently, on OSX, it's typical to switch back and forth between 3.1 and 3.3 because of the significant differences between the two. (They are both buggy)

It would also be nice if the autogen script checked for the versions of automake, autoconf and libtool. (I didn't list autoconf in my steps because automake pulls it in as a dependency.)

Re: How do you build Exult on Mac OS X?

Posted: Fri Aug 22, 2003 7:56 am
by Dominus
he he, fink maintainer and Exult OS X port maintainer are the same Person :-) At least one of them!

Re: How do you build Exult on Mac OS X?

Posted: Tue Aug 26, 2003 8:03 pm
by Anonymous
wjp said:

> Well, you need to install SDL and SDL_mixer in such a way that
> configure will find them, yes. Fink is one way to do that.

Can you tell me what other ways there are to get SDL etc. without using Fink? Are you referring to the Frameworks? I'd like to be able to get ".a" versions of these libraries without having to use fink.