Yes, this topic again. After following up on SDL, I found a patch that involved deleting one of the outdated lines of code; and so far I have been able to compile scons and SDL. The problem has come with TPT itself now; when I type
scons --macosx --release --stable --sse2 --nofft
It gives the error
SCons Error: --stable option requires an argument
Instead, I decided to remove the --stable option, giving me this
Input:
scons --macosx --release --sse2 --nofft
Output:
(A bunch of stuff)
src/PowderToySDL.cpp:6:10: fatal error: 'SDL.h' file not found #include "SDL.h" ^
It seems to be SDL bringing up the problem again. Can anyone advise what to do? The SDL folder itself seems to be missing the suspect src/SDL.h file; but it does have a src/SDL.c file.
SDL-1.2.15-OSX10.4/2/SDL/SDL.framework/Versions/A/Headers.
/usr/include/both under the SDL directory and right into there.
"SDL/SDL.h"and
"SDL.h"(which are automatically tried for every path in the include directories, the most known of which is /usr/include)
--sdl-dir="~/some_folder/"
I have all of these files in the include folder, but specifying --sdl-dir="~/Desktop/Programming/SDL-1.2.15"
as an argument to scons doesn't seem to affect the outcome.
--sdl-dir="~/Desktop/Programming/SDL-1.2.15/include"
doesn't seem to do it either. I think I might have made a mistake...
Oh no whoops I meant to post in Development Assistance... Can a mod move it pls?
EDIT: Thanks
Anyone?
UPDATE: After asking a question on Stack Overflow I managed to get it to start compiling until this happened:
/SDL-1.2.15/include src/cat/LegacyLuaAPI.cpp
In file included from src/cat/LegacyLuaAPI.cpp:10:
src/cat/LuaScriptInterface.h:6:10: fatal error: 'lua.h' file not found
I don't even have this file. Where do I get it, is it actually needed for OSX, and how to I get scons to recognise it?
@minecraft-physics (View Post)
Do you have the lua5.1 development packages installed.
If so, try specifying the location of the headers.
Let me try...
BTW I have been updating the wiki as my saga continues. Turns out I had to modify SConstruct a bit...
EDIT: WIth the --nolua flag (I just want the damn thing to work) it's failing to recognise strcasecmp() in src/cat/TPTScriptInterface.cpp, it seems be failing to recognise one of the header files? which one?
What exactly do you mean by "failing to recognise"?
According to this man page, strcasecmp is in strings.h, which should be included on line 7 of TPTScriptInterface.cpp (provided MACOSX is defined by scons), and the function resides in the standard C library (libc, -lc).