Page 1 of 1

Exult latest snapshot built MAC OSX

Posted: Wed Jun 20, 2007 1:18 pm
by robbo007
Evening all,

Has anyone built the latest Exult snapshot from the sources under OSX?

Mine is erroring with on the ./configure:

./configure: line 24350: syntax error near unexpected token `$SDL_VERSION,'
./configure: line 24350: `AM_PATH_SDL($SDL_VERSION,'

I'm guessing its the SDL libs?? I have copied the SDL 1.2.11 framework folder to my /Library/Framework folder

Anyone got the binary built and can email or "yousendit.com" to me?

Thanks,

Rob

Re: Exult latest snapshot built MAC OSX

Posted: Thu Jun 21, 2007 6:42 am
by robbo007
Any ideas on my building problem under OSX?

MACBOOK-ROB:~/Desktop/exult rcraig$ ./autogen.sh
configure.ac:167: warning: underquoted definition of AC_CHECK_ALPHA_LINUX_CXX
configure.ac:167: run info '(automake)Extending aclocal'
configure.ac:167: or see http://sources.redhat.com/automake/auto ... ng-aclocal
./autogen.sh: line 67: libtoolize: command not found
configure.ac:19: installing `./config.sub'
configure.ac:22: installing `./missing'
configure.ac:22: installing `./install-sh'
configure.ac:19: installing `./config.guess'
audio/Makefile.am: installing `./depcomp'
configure.ac: installing `./ylwrap'
configure.ac:159: required file `./ltmain.sh' not found
You are now ready to run ./configure


MACBOOK-ROB:~/Desktop/exult rcraig$ ./configure
checking build system type... i386-apple-darwin8.9.1
checking host system type... i386-apple-darwin8.9.1
checking target system type... i386-apple-darwin8.9.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking "windowing system"... Mac OS X
checking for gawk... (cached) awk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.9.1 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for int*... yes
checking size of int*... 4
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking for Alpha/Linux with DEC CXX... no
checking hash_map usability... no
checking hash_map presence... no
checking for hash_map... no
checking hash_set usability... no
checking hash_set presence... no
checking for hash_set... no
checking ext/hash_map usability... yes
checking ext/hash_map presence... yes
checking for ext/hash_map... yes
checking ext/hash_set usability... yes
checking ext/hash_set presence... yes
checking for ext/hash_set... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working memcmp... yes
checking for atexit... yes
checking for dup2... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for pow... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for getaddrinfo()... yes
checking for mkstemp()... yes
checking for snprintf()... yes
checking for special X11 libraries... no
checking for sdl-config... /opt/local/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for Mix_QuickLoad_RAW in -lSDL_mixer... yes
checking if we want to use timidity midi... yes
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking if we want to use ALSA midi... no; libasound not found
checking fluidsynth.h usability... no
checking fluidsynth.h presence... no
checking for fluidsynth.h... no
checking if we want to use fluidsynth midi... no; fluidsynth.h not found
checking if we should build mt32emu... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for zipped savegame support... yes
checking for OpenGL rendering support... no
checking whether to enable support for Exult Studio... no
checking whether to enable debugging mode... no
checking whether to do an optimized debug build... no
checking if we should disable the SDL parachute... no
checking warning level... normal
checking if we should disable long-long warnings... yes
checking whether to build only the main program... no
checking whether to build the usecode compiler... yes
checking whether to build the data files... yes
checking for pkg-config... ./configure: line 1: pkg-config: command not found
no pkg-config
checking for freetype-config... /usr/X11R6/bin/freetype-config
checking whether to build Exult Studio... no
checking whether to build the GIMP plugin... no
configure: creating ./config.status
config.status: creating exult.spec
config.status: creating Info.plist
config.status: error: cannot find input file: Makefile.in
MACBOOK-ROB:~/Desktop/exult rcraig$

Re: Exult latest snapshot built MAC OSX

Posted: Tue Jun 26, 2007 8:05 am
by Mar
Sup, I can successfully make on OS X, but I can't give you the binary b/c the way it creates the binary on OS X is a little flakey...it creates hardlinks, so it won't work on other people's computers.

some questions before I can help you though:
(1) Are you compiling on an Intel computer or a PPC computer? (i.e. is your computer running the new DualCore chip or the old PPC chip?)

(2) Did you use fink to install the sdl packages? According to the readme, you need to install 4 packages. If you install them manually, then you need to be sure that you're installing ALL 4 packages. If you have fink installed on your computer already, you only need to run the following 4 commands:
fink install sdl
fink install sdl-mixer
fink install automake1.9
fink install libtool14

(3) If you look closely at your output, you notice that the error is that there is no "Makefile.in" file being created. I believe this is supposed to be created when you run .autogen.sh As a result, I'm guessing that you don't have automake1.9 installed. But that's a complete and total guess without more information from you as to what exactly you did in order to prepare for this installation.


Mar

Re: Exult latest snapshot built MAC OSX

Posted: Wed Jun 27, 2007 5:43 am
by robbo007
Thanks for the reply Andrew.

Yep I'm running Intel processor. I orignally used the darwin ports to install the packages but it look like fink is a load easier. Just installed via fink the packages that you say. Seemed to install fine no errors.

I can now configure and when I run the make I get to this part:

Making all in docs
make[2]: Nothing to be done for `all'.
/bin/sh ./libtool --mode=link g++ -O2 -Wno-long-long -I/sw/include/SDL -D_THREAD_SAFE -o exult actions.o actorio.o actors.o args.o browser.o cheat.o cheat_screen.o combat.o delobjs.o dir.o drag.o effects.o exult.o exultmenu.o game.o gameclk.o gamedat.o gamemap.o gamerend.o gamewin.o istring.o keys.o keyactions.o menulist.o monsters.o mouse.o npcnear.o npctime.o palette.o party.o paths.o readnpcs.o schedule.o segfile.o shapeid.o tqueue.o txtscroll.o version.o xdrag.o pathfinder/libpathfinder.la audio/libaudio.la audio/midi_drivers/libmididrv.la audio/midi_drivers/timidity/libtimidity.la audio/midi_drivers/mt32emu/libmt32emu.la flic/libflic.la conf/libconf.la imagewin/libimagewin.la server/libserver.la usecode/libusecode.la shapes/libshapes.la objs/libobjs.la gumps/libgumps.la files/libu7file.la files/zip/libminizip.la gamemgr/libgamemgr.la -L/sw/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL -lSDL_mixer -framework AudioUnit -framework CoreMIDI -lz
libtool: link: cannot find the library `/sw/lib/libvorbisfile.la'
make[2]: *** [exult] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Is that something to do with the libtools?

Rob

Re: Exult latest snapshot built MAC OSX

Posted: Wed Jun 27, 2007 5:58 am
by Lanica
Rob,

Looks like it wanting "libvorbis" ... I know little to nothing about Macs...but that much is clear. So...find the "Ogg Vorbis" library and you should be set.

Re: Exult latest snapshot built MAC OSX

Posted: Wed Jun 27, 2007 9:20 am
by robbo007
niceone.

Got it compiled. Wohoo!

Not sure why it was asking for all the libraries seperatly? I installed the pacakges that were in the readme. Strange anyhow its compiled.

Last question. To make the "user friendly" finder launchable file. OSX binary.

Readme says:

"This will give you a "exult" binary in the current directory. If you want
a nice Exult.app (double clickable from the Finder and all), enter this
command:
make Exult_app

I get:

MACBOOK-ROB:/Users/rcraig/Desktop/exult root# make Exult_app
make: *** No rule to make target `Exult_app'. Stop.

Thanks,

Rob

Re: Exult latest snapshot built MAC OSX

Posted: Wed Jun 27, 2007 9:47 am
by Lanica
Glad you got it compiled!

Hmm...I don't see the Exult_app target off hand...guess you'll have to wait for Someone Who Knows(tm) to show up :)

Re: Exult latest snapshot built MAC OSX

Posted: Thu Jun 28, 2007 1:22 pm
by Mar
Hey Rob,
Awesome! Doesn't it feel great to get a problem solved after so much trial? Unfortunately, the docs are wrong. You don't type "make Exult_app" you're supposed to type "make bundle." I created a bug-report on this issue, but apparently they haven't fixed the documentation yet.

Also, if you want to run mods, you will probably have to edit the Configuration.cc file the way I described in the bug tracker discussion below.

http://sourceforge.net/tracker/index.ph ... tid=102335

Remember, if you use mods then the directory "mods" MUST be in lower-case.

Have fun!

Mar

Re: Exult latest snapshot built MAC OSX

Posted: Thu Jun 28, 2007 1:25 pm
by Mar
Oh yeah, almost forgot, the Configuration.cc file is found in the /conf directory where your exult CVS files are installed.

Don't edit the Configuration.cc file unless you have to. I only had to do it because I kept getting the error:
Description missing!
WRONG EXULT VERSION

But I'm running Exult on a PPC Macintosh. The error might not occur on an Intel Mac.

Re: Exult latest snapshot built MAC OSX

Posted: Fri Jun 29, 2007 3:32 am
by Lanica
Mar,

I see the "bundle" target. I've updated the MacOSX readme to reflect that change. I'll make a comment on the bug if I can find it on sourceforge :) I don't think I have the power to close it though.

Thanks!

Re: Exult latest snapshot built MAC OSX

Posted: Fri Jun 29, 2007 3:38 am
by Lanica
Mar,

I can't seem to find the documentation bug report ... can you provide a link?

Thanks!

Re: Exult latest snapshot built MAC OSX

Posted: Fri Jun 29, 2007 6:36 am
by Mar
The documentation bug report? Sorry, I just lumped all my grievances into one report. Sorry, I probably should have separated them.

http://sourceforge.net/tracker/index.ph ... tid=102335

I just included a paragraph at the bottom saying:
"Oh, on a side issue, the README.MacOSX should be changed to tell the user
to "make bundle" instead of "make Exult_app." Also, it should probably
give instructions that to install the specific fink packages, you need to
use the terminology "fink install " Took me a bit of time to
figure that stuff out."

Re: Exult latest snapshot built MAC OSX

Posted: Fri Jun 29, 2007 6:47 am
by Lanica
Ahh ok. I added a comment. I'm not comfortable with inserting code / making changes on a platform that I cannot test on, otherwise I'd fix that bug myself.