Error compiling SDL and BZFlag on Mac OS X.5

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

Error compiling SDL and BZFlag on Mac OS X.5

Post by the panda next door »

I'm running Mac OS 10.5 and I have Xcode 3.0.

When I try to compile SDL 1.2.10 and 1.2.13 with the following commands:

Code: Select all

cd SDL-1.2.10
./configure --prefix=/Users/<myname>/local 
make
make install
tar xzf XCode.tar.gz 
cd XCode/SDL
xcodebuild
ditto build/Default/SDL.framework /Library/Frameworks


I get tons of errors. Starting on 'make.'
These commands work fine on my 10.4 mac.

Is there a different way to compile SDL on leopard?


]I also get many errors when trying to compile bzfs.
This also worked on my 10.4 mac.

Is there anything I'm missing?
What is the problem?

If there is a breakthrough, please tell me.
User avatar
blast
General
General
Posts: 4805
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

You know, we can't read minds. What errors are you getting? A pastebin would be a good place to put them, and then place a link back here.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

Post by the panda next door »

The errors for make are on this page:

http://pastebin.bzflag.bz/f11bdcf2a
User avatar
macsforme
General
General
Posts: 2036
Joined: Wed Mar 01, 2006 5:43 am

Post by macsforme »

You don't need to compile SDL. Download the framework, install it in your system frameworks directory, and try compiling again.
User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

Post by the panda next door »

You don't need to compile SDL. Download the framework, install it in your system frameworks directory, and try compiling again.
Do I install SDL.framework in ~/Frameworks, /System/Library/Frameworks, or /Library/Frameworks?:arrow:


I've tried putting SDL.Framework ( the one I downloaded ) in /Library/Frameworks, but when I run configure, it says it cannot find the sdl-config script.:cry:

When I download SDL, is there a way to set the SDL prefix? On my 10.4 computer where I compiled SDL, I set the prefix to ~/local, and I found a script in ~/local/bin called sdl-config.
:book:
Last edited by the panda next door on Mon Mar 17, 2008 4:39 pm, edited 1 time in total.
ts
Dev Monkey
Dev Monkey
Posts: 970
Joined: Fri Jan 14, 2005 6:26 pm

Post by ts »

It doesn't belong to /System/Library/Frameworks for sure.

I've put mine in /Library/Frameworks but ~/Frameworks is perhaps (I am not sure) also ok.
GU league: http://www.guleague.org/
An introduction to TCP: http://www.lafkon.net/tc/
ts
Dev Monkey
Dev Monkey
Posts: 970
Joined: Fri Jan 14, 2005 6:26 pm

Post by ts »

broken tank over there wrote:I've tried putting SDL.Framework ( the one I downloaded ) in /Library/Frameworks, but when I run configure, it says it cannot find the sdl-config script.:cry:
broken tank over there wrote:When I download SDL, is there a way to set the SDL prefix? On my 10.4 computer where I compiled SDL, I set the prefix to ~/local, and I found a script in ~/local/bin called sdl-config.
:book:
sdl-config is not part of the framework - I got that script with installing SDL through macports.

As you seem to have already sdl-config you need to append it to your PATH environment variable. How to do that depends on your shell. For bash you could execute "export PATH=${PATH}:~/local/bin". If you want to store it permanent make a file called ".profile" in ~/ and write it inside, then it's set up every time you will start bash again but doesn't change the current bash session.

If you do it right then you can call sdl-config also from the command line, e.g.

Code: Select all

Morpheus:~ ts$ sdl-config --version
1.2.13
GU league: http://www.guleague.org/
An introduction to TCP: http://www.lafkon.net/tc/
Post Reply