Project

General

Profile

Actions

Emulator Issues #5530

closed

Linux compilation with included SDL broken

Added by ccox421 over 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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

Actions #1

Updated by delroth over 12 years ago

  • Status changed from New to Accepted

Can you check if r8dd11bd1c009 has the same issue please?

Actions #2

Updated by ccox421 over 12 years ago

Sorry, I don't know git... How to get this specific version?

Actions #3

Updated by delroth over 12 years ago

git checkout 8dd11bd1c009

Actions #4

Updated by ccox421 over 12 years ago

Thanks. It took some time, but revision 8dd11bd1c009 indeed compiles smoothly.

Actions #5

Updated by delroth over 12 years ago

Probably a regression from r80c15f21b455 then. Cc-ing soreau.

Actions #6

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.

Actions #7

Updated by oreauS over 12 years ago

  • Status changed from Accepted to Fixed

Fixed with 0e1348c839cd

Actions

Also available in: Atom PDF