The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: BenCollver on June 11, 2007, 12:05:43 am



Title: OS X build fails
Post by: BenCollver on June 11, 2007, 12:05:43 am
I downloaded the source code from the sourceforge project page, uqm-0.6.2-source.tgz.
I am using macports, and have libsdl-framework-1.2.9 and libsdl_image-framework-1.2.4 installed.
I ran the following commands.
build.sh uqm configure
build.sh uqm depend
build.sh uqm

I get the following error, but I am not sure what to do about it.  Can anyone give me advice?

...

  CC       obj/debug/src/sc2code/libs/graphics/sdl/3do_blt.c.o
In file included from src/sc2code/libs/graphics/sdl/sdl_common.h:25,
                 from src/sc2code/libs/graphics/sdl/3do_blt.c:21:
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:30:17: error: SDL.h: No such file or directory
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:31:25: error: SDL_version.h: No such file or directory
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:32:24: error: begin_code.h: No such file or directory
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:114:24:In file included from src/sc2code/libs/graphics/sdl/sdl_common.h:25,
                 from src/sc2code/libs/graphics/sdl/3do_blt.c:21:
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:30:17: error: SDL.h: No such file or directory
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:31:25: error: SDL_version.h: No such file or directory
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:32:24: error: begin_code.h: No such file or directory
/Library/Frameworks/SDL_image.framework/Headers/SDL_image.h:114:24: error: close_code.h: No such file or directory
 error: close_code.h: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//ccIvPXR9.out
make: *** [obj/debug/src/sc2code/libs/graphics/sdl/3do_blt.c.o] Error 1


Title: Re: OS X build fails
Post by: 0xDEC0DE on June 11, 2007, 04:00:10 am
I recall the "official" distributions of SDL and SDL_image not doing #includes in the manner prescribed by Apple.  If the top of your SDL_image.h file does not look like this:

Code:
#include <SDL/SDL.h>
#include <SDL/SDL_version.h>
#include <SDL/begin_code.h>

...then your frameworks do not use the nifty Apple magic for locating headers in other frameworks.  See your gcc and cpp manpages for more detailed information, but you'll have to muck with your headers a bit to get the preprocessor+compiler to look for everything in the right places.

Worst-case scenario, you can download the binary distribution, pull the frameworks out of it, and diff them for anything obvious.