Dolphin, the GameCube and Wii emulator - Forums
Dolphin refusing to compile with SDL-2.0.4 - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: Dolphin refusing to compile with SDL-2.0.4 (/Thread-dolphin-refusing-to-compile-with-sdl-2-0-4)



Dolphin refusing to compile with SDL-2.0.4 - AutoFire - 10-04-2014

I'm at my wit's end here; please help me!

For whatever reason, Dolphin simply refuses to compile with SDL-2.0.4. I always get the following error message:

Code:
[ 59%] Building CXX object Source/Core/InputCommon/CMakeFiles/inputcommon.dir/ControllerInterface/ControllerInterface.cpp.o
In file included from /home/alec/dolphin-emu/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp:24:0:
/home/alec/dolphin-emu/Source/Core/InputCommon/ControllerInterface/SDL/SDL.h:9:17: fatal error: SDL.h: No such file or directory
#include <SDL.h>
                 ^
compilation terminated.
make[2]: *** [Source/Core/InputCommon/CMakeFiles/inputcommon.dir/ControllerInterface/ControllerInterface.cpp.o] Error 1
make[1]: *** [Source/Core/InputCommon/CMakeFiles/inputcommon.dir/all] Error 2
make: *** [all] Error 2

SDL.h is in /usr/local/include/SDL2, which is apparently where it's supposed to be. I don't know why the compiler can't find it.


RE: Dolphin refusing to compile with SDL-2.0.4 - Shonumi - 10-05-2014

When you run
Code:
cmake ..

does it say "Using shared SDL2" at all?

In fact, you might as well post the entire output of cmake .. so we can see what's going on.