Emulator Issues #3658
closedSDL doesn't compile
0%
Description
I can't compile an sdl problem with the first compile error can be fixed with what appears in this issue http://code.google.com/p/dolphin-emu/issues/detail?id=3338(same issue but this time with sdl 1.2.14-6)
Then get the following error:
Linking CXX executable ../../../Binaries/dolphin-emu
../InputCommon/libinputcommon.a(SDL.cpp.o): In function ciface::SDL::Joystick::UpdateOutput()': SDL.cpp:(.text+0x219): undefined reference to
SDL_HapticUpdateEffect'
SDL.cpp:(.text+0x244): undefined reference to SDL_HapticStopEffect' SDL.cpp:(.text+0x251): undefined reference to
SDL_HapticDestroyEffect'
SDL.cpp:(.text+0x26f): undefined reference to SDL_HapticNewEffect' SDL.cpp:(.text+0x287): undefined reference to
SDL_HapticRunEffect'
../InputCommon/libinputcommon.a(SDL.cpp.o): In function ciface::SDL::Joystick::~Joystick()': SDL.cpp:(.text+0x2d8): undefined reference to
SDL_HapticStopAll'
SDL.cpp:(.text+0x2fd): undefined reference to SDL_HapticDestroyEffect' SDL.cpp:(.text+0x30f): undefined reference to
SDL_HapticClose'
../InputCommon/libinputcommon.a(SDL.cpp.o): In function ciface::SDL::Joystick::~Joystick()': SDL.cpp:(.text+0x358): undefined reference to
SDL_HapticStopAll'
SDL.cpp:(.text+0x37d): undefined reference to SDL_HapticDestroyEffect' SDL.cpp:(.text+0x38f): undefined reference to
SDL_HapticClose'
../InputCommon/libinputcommon.a(SDL.cpp.o): In function ciface::SDL::Joystick::Joystick(_SDL_Joystick*, int, unsigned int)': SDL.cpp:(.text+0xfdf): undefined reference to
SDL_HapticOpenFromJoystick'
SDL.cpp:(.text+0xff0): undefined reference to `SDL_HapticQuery'
collect2: ld devolvió el estado de salida 1
make[2]: *** [Binaries/dolphin-emu] Error 1
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [all] Error 2
I try sdl 1.3 also and I have the same problem, before with changing lines like billiard said it worked (without rumble :P).
Phenom II 720 @ 3.4ghz x4
Gigabyte MA770T-UD3P
Corsair 2x1 GB DDR3 1333
XfX 9600GT
Archlinux x86_64
Updated by NicolasDelgado about 14 years ago
I use cmake, scons I can not complian with a problem with OpenCL, I guess it's because now with cmake auto-detect if you have OpenCL or something like that :P
Updated by glennricster about 14 years ago
Don't compile SDL from the externals on linux. Use your system libraries.
Updated by glennricster about 14 years ago
- Status changed from New to Accepted
Don't worry though. In any case I will fix it when I get a chance.
Updated by glennricster about 14 years ago
How are you getting this error? You are using the cmake build?
I can't replicate it. Building either the static libraries in the externals or using the system libraries works fine.
Updated by NicolasDelgado about 14 years ago
Yeah i use the cmake build, maybe we are using different versions of sdl?, how i can use externals?
Updated by glennricster about 14 years ago
If I build with sdl version 1.2.14-6 (in Ubuntu) dolphin-emu compiles fine. I haven't tested sdl version 1.3.
Nevermind about the externals if you don't know how to use them. You are better off not using them.
Updated by glennricster about 14 years ago
Hmm, I just tested it with sdl version 1.3, and after applying the changes in issue 3338 it compiles and links fine.
I might have an idea of what the problem is. Try the attached patch and see if it helps. This assumes you have made the changes in issue 3338.
Updated by glennricster about 14 years ago
Actually ignore that last patch. I don't think that will help. Your linkage issue doesn't make sense. Are you sure you have sdl installed correctly?
Updated by glennricster about 14 years ago
- Status changed from Accepted to Questionable
Updated by NicolasDelgado about 14 years ago
i install sdl from the Arch repositories and sdl 1.3 from source, maybe its a problem link the libraries :(, i'll try to notice that, anyway the problem is probably mine.
PD: the patch didn't help
Updated by NicolasDelgado about 14 years ago
i found the problem is the sdl from arch repositories, if completely eliminated, removing all traces of sdl and install sdl 1.3 works correctly with the sdl from arch repositories after cleaning all not work, so the sdl from arch repositories breaks all. D:
Sorry for the loss of time, I never really figured it out is the problem.
Updated by glennricster about 14 years ago
- Status changed from Questionable to Invalid
I am marking this as an invalid issue. If you find there is actually something wrong with dolphin-emu's cmake build system let us know.