Project

General

Profile

Actions

Emulator Issues #3658

closed

SDL doesn't compile

Added by NicolasDelgado almost 14 years ago.

Status:
Invalid
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

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

Actions #1

Updated by NicolasDelgado almost 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

Actions #2

Updated by glennricster almost 14 years ago

Don't compile SDL from the externals on linux. Use your system libraries.

Actions #3

Updated by glennricster almost 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.

Actions #4

Updated by glennricster almost 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.

Actions #5

Updated by NicolasDelgado almost 14 years ago

Yeah i use the cmake build, maybe we are using different versions of sdl?, how i can use externals?

Actions #6

Updated by glennricster almost 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.

Actions #7

Updated by glennricster almost 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.

Actions #8

Updated by glennricster almost 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?

Actions #9

Updated by glennricster almost 14 years ago

  • Status changed from Accepted to Questionable
Actions #10

Updated by NicolasDelgado almost 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

Actions #11

Updated by NicolasDelgado almost 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.

Actions #12

Updated by glennricster almost 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.

Actions

Also available in: Atom PDF