Game Development Community

Trouble building for emscripten [SOLVED]

by Casey Doran · in Torque 2D Professional · 01/22/2015 (10:34 am) · 2 replies

Hi all, I'm building the current master for emscripten and can't seem to work through the following error:
[ 97%] Building CXX object CMakeFiles/Torque2D.html.dir/CallCenterTycoon/engine/source/platformEmscripten/EmscriptenAlerts.cpp.o
WARNING  root: -I or -L of an absolute path "-I/CallCenterTycoon/engine/compilers/emscripten/../../source" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
In file included from /CallCenterTycoon/engine/source/platformEmscripten/EmscriptenAlerts.cpp:22:
/CallCenterTycoon/engine/compilers/emscripten/../../source/platformEmscripten/platformEmscripten.h:32:10: fatal error: 'SDL/sdl.h' file not found
#include <SDL/sdl.h>
         ^
1 error generated.
ERROR    root: compiler frontend failed to generate LLVM bitcode, halting

I know I have SDL properly configured, I can see the headers on disk!

I'd happily share ssh access or a docker container with anyone who is willing to take a look and tell me what I've screwed up on.

EDIT:

As Alon pointed out, there were numerous capitalization issues which were tripping up my case-sensitive FS. I've submitted a pull request fixing these issues, hopefully it'll get accepted and stop any further issues like this in the future. https://github.com/GarageGames/Torque2D/pull/244

About the author

Software Engineering researcher at the Florida Institute of Technology's Harris Institute for Assured Information, Intelligent Communication and Information Systems Laboratory


#1
01/26/2015 (9:48 am)
You might need to write SDL/SDL.h, with both SDLs in CAPS, when you are on a case-sensitive filesystem.
#2
01/26/2015 (1:31 pm)
Holy smokes! There were tons of capitalization errors like that. I've submitted a pull request to resolve this issue. https://github.com/GarageGames/Torque2D/pull/244