Error while compiling from source

  • Krisna
    22nd Oct 2013 Member 0 Permalink

    Hello people! I am trying to compile powder toy from source (clean source) and for some reason I always get 1 error. Here is the error:

     

    scons: Reading SConscript files ...
    scons: done reading SConscript files.
    scons: Building targets ...
    g++ -o build/src/PowderToySDL.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/PowderToySDL.cpp
    src/PowderToySDL.cpp:6:17: error: SDL.h: No such file or directory
    In file included from src/PowderToySDL.cpp:41:
    src/gui/interface/Keys.h:3:17: error: SDL.h: No such file or directory
    src/PowderToySDL.cpp:60: error: expected constructor, destructor, or type conversion before ‘*’ token
    src/PowderToySDL.cpp: In function ‘void blit(pixel*)’:
    src/PowderToySDL.cpp:195: error: ‘sdl_scrn’ was not declared in this scope
    src/PowderToySDL.cpp:200: error: ‘SDL_MUSTLOCK’ was not declared in this scope
    src/PowderToySDL.cpp:201: error: ‘SDL_LockSurface’ was not declared in this scope
    src/PowderToySDL.cpp:204: error: ‘SDL_MapRGB’ was not declared in this scope
    src/PowderToySDL.cpp:209: error: ‘SDL_PixelFormat’ was not declared in this scope
    src/PowderToySDL.cpp:209: error: ‘fmt’ was not declared in this scope
    src/PowderToySDL.cpp:232: error: ‘SDL_MUSTLOCK’ was not declared in this scope
    src/PowderToySDL.cpp:233: error: ‘SDL_UnlockSurface’ was not declared in this scope
    src/PowderToySDL.cpp:234: error: ‘SDL_UpdateRect’ was not declared in this scope
    src/PowderToySDL.cpp: In function ‘void blit2(pixel*, int)’:
    src/PowderToySDL.cpp:239: error: ‘sdl_scrn’ was not declared in this scope
    src/PowderToySDL.cpp:245: error: ‘SDL_MUSTLOCK’ was not declared in this scope
    src/PowderToySDL.cpp:246: error: ‘SDL_LockSurface’ was not declared in this scope
    src/PowderToySDL.cpp:249: error: ‘SDL_MapRGB’ was not declared in this scope
    src/PowderToySDL.cpp:253: error: ‘SDL_PixelFormat’ was not declared in this scope
    src/PowderToySDL.cpp:253: error: ‘fmt’ was not declared in this scope
    src/PowderToySDL.cpp:288: error: ‘SDL_MUSTLOCK’ was not declared in this scope
    src/PowderToySDL.cpp:289: error: ‘SDL_UnlockSurface’ was not declared in this scope
    src/PowderToySDL.cpp:290: error: ‘SDL_UpdateRect’ was not declared in this scope
    src/PowderToySDL.cpp: In function ‘int SDLOpen()’:
    src/PowderToySDL.cpp:297: error: ‘SDL_Surface’ was not declared in this scope
    src/PowderToySDL.cpp:297: error: ‘surface’ was not declared in this scope
    src/PowderToySDL.cpp:301: error: ‘SDL_INIT_VIDEO’ was not declared in this scope
    src/PowderToySDL.cpp:301: error: ‘SDL_Init’ was not declared in this scope
    src/PowderToySDL.cpp:303: error: ‘SDL_GetError’ was not declared in this scope
    src/PowderToySDL.cpp:306: error: expected initializer before ‘*’ token
    src/PowderToySDL.cpp:307: error: ‘vidInfo’ was not declared in this scope
    src/PowderToySDL.cpp:309: error: ‘SDL_EnableUNICODE’ was not declared in this scope
    src/PowderToySDL.cpp:339: error: ‘SDL_WM_SetCaption’ was not declared in this scope
    src/PowderToySDL.cpp:341: error: ‘SDL_Quit’ was not declared in this scope
    src/PowderToySDL.cpp: At global scope:
    src/PowderToySDL.cpp:346: error: expected constructor, destructor, or type conversion before ‘*’ token
    src/PowderToySDL.cpp: In function ‘void EngineProcess()’:
    src/PowderToySDL.cpp:430: error: ‘SDL_GetTicks’ was not declared in this scope
    src/PowderToySDL.cpp:433: error: ‘SDL_Event’ was not declared in this scope
    src/PowderToySDL.cpp:433: error: expected `;' before ‘event’
    src/PowderToySDL.cpp:437: error: ‘event’ was not declared in this scope
    src/PowderToySDL.cpp:438: error: ‘SDL_PollEvent’ was not declared in this scope
    src/PowderToySDL.cpp:442: error: ‘SDL_QUIT’ was not declared in this scope
    src/PowderToySDL.cpp:446: error: ‘SDL_KEYDOWN’ was not declared in this scope
    src/PowderToySDL.cpp:447: error: ‘KMOD_RSHIFT’ was not declared in this scope
    src/PowderToySDL.cpp:447: error: ‘KMOD_LSHIFT’ was not declared in this scope
    src/PowderToySDL.cpp:447: error: ‘KMOD_RCTRL’ was not declared in this scope
    src/PowderToySDL.cpp:447: error: ‘KMOD_LCTRL’ was not declared in this scope
    src/PowderToySDL.cpp:447: error: ‘KMOD_RALT’ was not declared in this scope
    src/PowderToySDL.cpp:447: error: ‘KMOD_LALT’ was not declared in this scope
    src/PowderToySDL.cpp:449: error: ‘SDL_KEYUP’ was not declared in this scope
    src/PowderToySDL.cpp:452: error: ‘SDL_MOUSEMOTION’ was not declared in this scope
    src/PowderToySDL.cpp:455: error: ‘SDL_MOUSEBUTTONDOWN’ was not declared in this scope
    src/PowderToySDL.cpp:456: error: ‘SDL_BUTTON_WHEELUP’ was not declared in this scope
    src/PowderToySDL.cpp:460: error: ‘SDL_BUTTON_WHEELDOWN’ was not declared in this scope
    src/PowderToySDL.cpp:469: error: ‘SDL_MOUSEBUTTONUP’ was not declared in this scope
    src/PowderToySDL.cpp:470: error: ‘SDL_BUTTON_WHEELUP’ was not declared in this scope
    src/PowderToySDL.cpp:470: error: ‘SDL_BUTTON_WHEELDOWN’ was not declared in this scope
    src/PowderToySDL.cpp:552: error: ‘sdl_scrn’ was not declared in this scope
    src/PowderToySDL.cpp:552: error: ‘SDLSetScreen’ was not declared in this scope
    src/PowderToySDL.cpp:572: error: ‘SDL_Delay’ was not declared in this scope
    src/PowderToySDL.cpp: In function ‘int GetModifiers()’:
    src/PowderToySDL.cpp:595: error: ‘SDL_GetModState’ was not declared in this scope
    src/PowderToySDL.cpp: In function ‘void BlueScreen(char*)’:
    src/PowderToySDL.cpp:704: error: ‘SDL_Event’ was not declared in this scope
    src/PowderToySDL.cpp:704: error: expected `;' before ‘event’
    src/PowderToySDL.cpp:707: error: ‘event’ was not declared in this scope
    src/PowderToySDL.cpp:707: error: ‘SDL_PollEvent’ was not declared in this scope
    src/PowderToySDL.cpp:708: error: ‘SDL_QUIT’ was not declared in this scope
    src/PowderToySDL.cpp: In function ‘int main(int, char**)’:
    src/PowderToySDL.cpp:801: error: ‘sdl_scrn’ was not declared in this scope
    src/PowderToySDL.cpp:801: error: ‘SDLSetScreen’ was not declared in this scope
    scons: *** [build/src/PowderToySDL.o] Error 1
    scons: building terminated because of errors.

     

    I hope some body could help me with this. Thanks in advance.

    Edit: I am using mac osx 10.8.3

    Edited once by Krisna. Last: 22nd Oct 2013
  • mniip
    22nd Oct 2013 Developer 0 Permalink
    you have no SDL headers, or the system didn't find them (both of which is weird, since scons should check their availability)
  • Krisna
    22nd Oct 2013 Member 0 Permalink

    so how can I get SDL? I followed every thing from this

  • jacob1
    22nd Oct 2013 Developer 0 Permalink
    the problem is that none of the developers have a mac, so I don't even know if sconscript works on macs. You might get another error later which I might or might not know how to fix ...

    Check if they are in /Library/Frameworks/SDL.framework/Headers or something, that's where it's looking, and where they should be.
  • Krisna
    22nd Oct 2013 Member 0 Permalink

    hey... problem solved. The 1 error poped out.

     

    src/cat/LuaScriptHelper.h:122: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:122: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:123: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:123: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:125: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:125: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:127: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:127: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:129: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:129: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:131: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:131: error: ‘l’ was not declared in this scope
    src/cat/LegacyLuaAPI.cpp:23: error: redefinition of ‘int luacon_partread’
    src/cat/LuaScriptHelper.h:32: error: ‘int luacon_partread’ previously defined here
    src/cat/LegacyLuaAPI.cpp:23: error: ‘lua_State’ was not declared in this scope
    src/cat/LegacyLuaAPI.cpp:23: error: ‘l’ was not declared in this scope
    scons: *** [build/src/cat/LegacyLuaAPI.o] Error 1
    scons: building terminated because of errors.

    Edited once by Krisna. Last: 22nd Oct 2013
  • mniip
    22nd Oct 2013 Developer 0 Permalink
    is that the /whole/ error? doesn't seem like it
  • jacob1
    22nd Oct 2013 Developer 0 Permalink
    what was the problem with SDL? The fix is probably about the same for fixing the lua errors
    Edited once by jacob1. Last: 22nd Oct 2013
  • Krisna
    22nd Oct 2013 Member 0 Permalink

    here is the full error:

     

    scons: Reading SConscript files ...
    scons: done reading SConscript files.
    scons: Building targets ...
    g++ -o build/src/Format.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/Format.cpp
    g++ -o build/src/Misc.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/Misc.cpp
    g++ -o build/src/PowderToyRenderer.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/PowderToyRenderer.cpp
    g++ -o build/src/PowderToySDL.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/PowderToySDL.cpp
    g++ -o build/src/Update.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/Update.cpp
    g++ -o build/src/bson/BSON.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/bson/BSON.cpp
    g++ -o build/src/cajun/elements.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cajun/elements.cpp
    g++ -o build/src/cajun/reader.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cajun/reader.cpp
    g++ -o build/src/cajun/writer.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cajun/writer.cpp
    g++ -o build/src/cat/CommandInterface.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/CommandInterface.cpp
    g++ -o build/src/cat/LegacyLuaAPI.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LegacyLuaAPI.cpp
    In file included from src/cat/LegacyLuaAPI.cpp:10:
    src/cat/LuaScriptInterface.h:6:17: error: lua.h: No such file or directory
    src/cat/LuaScriptInterface.h:7:21: error: lauxlib.h: No such file or directory
    src/cat/LuaScriptInterface.h:8:20: error: lualib.h: No such file or directory
    In file included from src/cat/LegacyLuaAPI.cpp:10:
    src/cat/LuaScriptInterface.h:60: error: ‘lua_State’ has not been declared

     

    ...

    src/cat/LuaScriptInterface.h:157: error: ‘lua_State’ has not been declared
    src/cat/LuaScriptInterface.h:161: error: ISO C++ forbids declaration of ‘lua_State’ with no type
    src/cat/LuaScriptInterface.h:161: error: expected ‘;’ before ‘*’ token
    In file included from src/cat/LegacyLuaAPI.cpp:11:
    src/cat/LuaScriptHelper.h:12: error: ‘lua_State’ was not declared in this scope

    ...
    src/cat/LuaScriptHelper.h:112: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:112: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:113: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:113: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:114: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:114: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:115: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:115: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:116: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:116: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:117: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:117: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:118: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:118: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:120: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:120: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:121: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:121: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:122: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:122: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:123: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:123: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:125: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:125: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:127: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:127: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:129: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:129: error: ‘l’ was not declared in this scope
    src/cat/LuaScriptHelper.h:131: error: ‘lua_State’ was not declared in this scope
    src/cat/LuaScriptHelper.h:131: error: ‘l’ was not declared in this scope
    src/cat/LegacyLuaAPI.cpp:23: error: redefinition of ‘int luacon_partread’
    src/cat/LuaScriptHelper.h:32: error: ‘int luacon_partread’ previously defined here
    src/cat/LegacyLuaAPI.cpp:23: error: ‘lua_State’ was not declared in this scope
    src/cat/LegacyLuaAPI.cpp:23: error: ‘l’ was not declared in this scope
    scons: *** [build/src/cat/LegacyLuaAPI.o] Error 1
    scons: building terminated because of errors.

     

    edit: I use --nolua to fix this but more error pops. I can't double post and this post is almost full

    Edited once by Krisna. Last: 22nd Oct 2013
  • mniip
    22nd Oct 2013 Developer 0 Permalink

    src/cat/LuaScriptInterface.h:6:17: error: lua.h: No such file or directory
    src/cat/LuaScriptInterface.h:7:21: error: lauxlib.h: No such file or directory
    src/cat/LuaScriptInterface.h:8:20: error: lualib.h: No such file or directory

    you don't have those headers either
  • Krisna
    22nd Oct 2013 Member 0 Permalink

    scons: Reading SConscript files ...

    scons: done reading SConscript files.
    scons: Building targets ...
    g++ -o build/src/Format.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/Format.cpp
    g++ -o build/src/Misc.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/Misc.cpp
    g++ -o build/src/PowderToyRenderer.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/PowderToyRenderer.cpp
    g++ -o build/src/PowderToySDL.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/PowderToySDL.cpp
    g++ -o build/src/Update.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/Update.cpp
    g++ -o build/src/bson/BSON.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/bson/BSON.cpp
    g++ -o build/src/cajun/elements.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cajun/elements.cpp
    g++ -o build/src/cajun/reader.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cajun/reader.cpp
    g++ -o build/src/cajun/writer.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cajun/writer.cpp
    g++ -o build/src/cat/CommandInterface.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/CommandInterface.cpp
    g++ -o build/src/cat/LegacyLuaAPI.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LegacyLuaAPI.cpp
    g++ -o build/src/cat/LuaBit.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaBit.cpp
    g++ -o build/src/cat/LuaButton.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaButton.cpp
    g++ -o build/src/cat/LuaCheckbox.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaCheckbox.cpp
    g++ -o build/src/cat/LuaComponent.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaComponent.cpp
    g++ -o build/src/cat/LuaLabel.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaLabel.cpp
    g++ -o build/src/cat/LuaProgressBar.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaProgressBar.cpp
    python generator.py tools build/generated/ToolClasses.cpp build/generated/ToolClasses.h src/simulation/tools/AirTool.cpp src/simulation/tools/Cool.cpp src/simulation/tools/Heat.cpp src/simulation/tools/NGrv.cpp src/simulation/tools/PGrv.cpp src/simulation/tools/SimTool.cpp src/simulation/tools/Vac.cpp
    g++ -o build/src/cat/LuaScriptInterface.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaScriptInterface.cpp
    g++ -o build/src/cat/LuaSlider.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaSlider.cpp
    g++ -o build/src/cat/LuaTextbox.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaTextbox.cpp
    g++ -o build/src/cat/LuaWindow.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/LuaWindow.cpp
    g++ -o build/src/cat/TPTSTypes.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/TPTSTypes.cpp
    g++ -o build/src/cat/TPTScriptInterface.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/cat/TPTScriptInterface.cpp
    src/cat/TPTScriptInterface.cpp: In member function ‘AnyType TPTScriptInterface::tptS_set(std::deque<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*)’:
    src/cat/TPTScriptInterface.cpp:277: error: ‘strcasecmp’ was not declared in this scope
    scons: *** [build/src/cat/TPTScriptInterface.o] Error 1
    scons: building terminated because of errors.