[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Enigma-devel] Compile probs under Mac OS X
From: |
Johannes Fortmann |
Subject: |
Re: [Enigma-devel] Compile probs under Mac OS X |
Date: |
Sat, 4 Jan 2003 21:58:25 +0100 |
Am Freitag, 03.01.03 um 19:50 Uhr schrieb MetalSnake:
Hi
I wanted to compile Enigma under Mac OS X. I installed SDL, SDL_image
and SDL_mixer.
I changed to the Enigma sources folder in Terminal and typed
./configure, it starts to check some stuff and end with:
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
checking for SDL_image.h... no
configure: error: SDL_image is required to compile Enigma
As I saied I installed SDL_image! What to do now?
Snake
PS: Sorry for my english.
The current Mac OS X build process is pretty b0rked up; sorry.
First, you need SDL, SDL_image and SDL_mixer, all compiled from the
console. The frameworks (even the developer ones) do not work (they can
be used for linking, but they are not autodetected by ./configure).
You'll also need lua, which you'll probably want to link against
statically (it only builds static libs on my system anyway).
It would be possible to
a) create a project builder project for enigma (which is really easy if
you know how to do it; simply add the files and you're done)
or
b) install the four dependencies from source (perhaps using fink?), and
follow the steps outlined below:
1) run ./configure
2) edit config.h to include #define MACOSX (only for bundle version)
3) edit enigma.cc; comment out the #include "getopt.h"
4) edit the target "enigma-fw-mosx" in Makefile.am to include both your
liblua.a and liblualib.a locations (behind the
"$(enigma_DEPENDENCIES)"; those two look something like
"/sw/lib/liblua.a /sw/lib/liblualib.a" if you used fink with the
standard settings)
(those two seem to have gotten lost in my mail to you, Daniel !?!)
5) make && make bundle-fw
voilá.
As I said: not _really_ that comfortable :-)
HTH,
Johannes