Emulator Issues #5530
closedLinux compilation with included SDL broken
0%
Description
When compiling the latest Dolphin version (11 July) under Debian without libsdl installed, I receive the following error message:
[ 58%] Building CXX object Source/Core/InputCommon/CMakeFiles/inputcommon.dir/Src/ControllerInterface/ControllerInterface.cpp.o
In file included from /root/dolphin-emu/Externals/SDL/include/SDL_config.h:42:0,
from /root/dolphin-emu/Externals/SDL/include/SDL_stdinc.h:30,
from /root/dolphin-emu/Externals/SDL/include/SDL_main.h:26,
from /root/dolphin-emu/Externals/SDL/include/SDL.h:30,
from /root/dolphin-emu/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.h:8,
from /root/dolphin-emu/Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp:16:
/root/dolphin-emu/Externals/SDL/include/SDL_config_minimal.h:38:22: error: conflicting declaration ‘typedef unsigned int size_t’
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/stddef.h:212:23: error: ‘size_t’ has a previous declaration as ‘typedef long unsigned int size_t’
make[2]: *** [Source/Core/InputCommon/CMakeFiles/inputcommon.dir/Src/ControllerInterface/ControllerInterface.cpp.o] Erreur 1
make[1]: *** [Source/Core/InputCommon/CMakeFiles/inputcommon.dir/all] Erreur 2
make: *** [all] Erreur 2
Using gcc 4.7 does the same.
Thanks.
CCox
Updated by delroth over 12 years ago
- Status changed from New to Accepted
Can you check if r8dd11bd1c009 has the same issue please?
Updated by ccox421 over 12 years ago
Sorry, I don't know git... How to get this specific version?
Updated by ccox421 over 12 years ago
Thanks. It took some time, but revision 8dd11bd1c009 indeed compiles smoothly.
Updated by delroth over 12 years ago
Probably a regression from r80c15f21b455 then. Cc-ing soreau.
Updated by oreauS over 12 years ago
I don't see how it could be a regression but if it used to work, it's probably worth bisecting. Try installing sdl development package for your distro to see if it helps.