Help to compile... (5)

962 Name: xonox : 2010-03-06 13:48 [Del]

Today i decided it would be fun to poke around schism tracker some more. I got the source package from the schism tracker page. The mercurial snapshot.

I tried to run the ./configure thingie. It's not part of the package. I am too amateur to find out what to do next by myself.

I thought i could grab a new version before builds are made. I also thought i could check out if some bugs remain in the latest code.

I'm under mac os x. I compiled / installed SDL and all went well.

963 Name: Damien Baldwin : 2010-03-06 14:05 [Del]

autoreconf -i will spit out a configure script. Shouldn't be much different on OS X than Linux once you have SDL installed, as long as you have sdl-config in your path. (Getting that might be a minor challenge – I don't remember how SDL works on OS X but I think it's kind of weird somehow)

964 Name: xonox : 2010-03-08 14:46 [Del]

Thank you, it helped.
I have another error message which is probably related to the sdl-config path.

I'll look into it by myself before asking other questions.

968 Name: Quintin Elisha French : 2010-04-08 20:32 [Del]

the SDL framework .dmg from libsdl.org does not install an sdl-config script. however, it's not difficult to roll your own. just write a shell script that accepts the same arguments as the usual sdl-config script does and produces the appropriate output, and chuck it somewhere that's in your $PATH.

for example, here's a basic sdl-config i put together recently for my own system. note use of the apple-gcc-specific -F and -framework options: this script assumes that your SDL.framework is in one of the usual spots (/Library/Frameworks, /System/Library/Frameworks, etc)


$cat ~/bin/sdl-config
#!/bin/sh

for param in $@; do

if [ "$param" = "--cflags" ]; then
echo -DTHREAD_SAFE -FSDL
else
if [ "$param" = "--libs" ]; then
echo -framework SDL -framework Cocoa
else
if [ "$param" = "--version" ]; then
echo 1.2.14
fi
fi
fi

done


obviously this is a pretty simple script that doesn't bother implementing a bunch of the options a "normal" sdl-config script does – purely because i haven't needed them yet. if i ever do, i'll worry about it then.

969 Name: Storlek !desu/4y/Xg : 2010-04-10 10:16 [Del]

You might be able to get some use out of the one I made for the OS X cross-build that I use (see here), with fixes as necessary to the prefix and target variables, and I suppose also the version. I think it originated from the Linux sdl-config.

Name: Link:
Spam trap (don't touch):
File: