Jump to content

Compile errors on OSX [PPC]


Guest Proffles

Recommended Posts

Guest Proffles

Hi Guys,

 

I'm attempting to compile on my old mac - progress so far:

 

./configure works with no complaints (I've satisfied all it's dependecies)

 

Had to add "-I/Library/Frameworks/OpenAL.framework/Versions/A/Headers/" to the makefiles (I should have passed it to configure, but didn't!) to get the OpenAL header files found.

 

Had to edit ACMImp.h, AmbientMgrAL.h, mve_play.cpp to stop looking in AL/ (since there is no AL parent directory to the header files, like on WIN32)

 

During compilation, libtool kept complaining about:

libtool: link: warning: `/usr/local/lib/libvorbis.la' seems to be moved

and

libtool: link: warning: `/usr/local/lib/libvorbisfile.la' seems to be moved

 

quick ls -l shows:

:)

ls -l /usr/local/lib/libvorbisfile.la

-rwxr-xr-x 1 root wheel 932 Jun 16 20:50 /usr/local/lib/libvorbisfile.la

:)

ls -l /usr/local/lib/libvorbis.la

-rwxr-xr-x 1 root wheel 876 Jun 16 20:50 /usr/local/lib/libvorbis.la

:)

 

But heck, they're just warnings...

 

But compilation proceeds to

g++ -g -O2 -I/usr/local/include/SDL -D_THREAD_SAFE -Werror -Wall -W -Wpointer-arith -Wcast-align -ansi -pedantic -Wno-format-y2k -Wno-long-long -fno-strict-aliasing -o .libs/gemrb GemRB.o -Wl,-bind_at_load -L/usr/lib ./plugins/Core/.libs/libgemrb_core.dylib -ldl -lpthread -lpng -L/opt/local/lib /opt/local/lib/libpng12.dylib -lz /opt/local/lib/libvorbisfile.dylib /opt/local/lib/libvorbis.dylib /opt/local/lib/libogg.dylib -lm

/usr/bin/ld: Undefined symbols:

_main

collect2: ld returned 1 exit status

make[3]: *** [gemrb] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

:(

 

Not finding _main is odd - could this be related to my vorbis libs (and the warnings) or something else?

 

Thanks for your help.

Link to comment
Guest proffles

Blast,

 

(Please excuse the bad form of replying to my opwn post)

Forgot to say compiling 0.2.9 from tarball on sourceforge download page.

 

Regards,

 

Proffles

Link to comment
Guest Proffles

OK, a bit more info for you:

 

The libtool warnings are a red herring.

 

_Main missing is the old SDL issue - had to edit the Makefile to properly make sure "-lSDLmain -lSDL -framework Cocoa" is added to the gemrb bit

 

SUCCESSFUL COMPILATION

 

Unfortunately I only have the Mac version of IWD, so I can't test it!

Link to comment
Guest Guest
SUCCESSFUL COMPILATION

 

Unfortunately I only have the Mac version of IWD, so I can't test it!

 

I gave it a go anyway - tries to read the Chitin.key file and fails - I'm not surprised that it's a different format from the windows version (endian issues, if nothing else)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...