The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
November 04, 2024, 08:40:35 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  OS X build fails
« previous next »
Pages: [1] Print
Author Topic: OS X build fails  (Read 2469 times)
BenCollver
Zebranky food
*
Offline Offline

Posts: 1



View Profile
OS X build fails
« 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
Logged
0xDEC0DE
*Many bubbles*
***
Offline Offline

Posts: 175



View Profile WWW
Re: OS X build fails
« Reply #1 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.
Logged

"I’m not a robot like you. I don’t like having disks crammed into me… unless they’re Oreos, and then only in the mouth."  --Fry
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!