• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 754 755 756 757 758 ... 1193 Next »

can't compile SDL error?!
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
can't compile SDL error?!
01-21-2012, 03:10 AM (This post was last modified: 01-21-2012, 03:11 AM by jodr666.)
#1
jodr666 Offline
Junior Member
**
Posts: 12
Threads: 2
Joined: Aug 2010
Sad 
Ok i get this error:

PHP Code:
Linking CXX executable ../../../Binaries/dolphin-emu
../InputCommon/libinputcommon.a(SDL.cpp.o): In function `ciface::SDL::Joystick::UpdateOutput()':
SDL.cpp:(.text+0x2c2): undefined reference to 
`SDL_HapticUpdateEffect'
SDL.cpp:(.text+0x2f4): undefined reference to `SDL_HapticStopEffect'
SDL.cpp:(.text+0x306): undefined reference to `SDL_HapticDestroyEffect'
SDL.cpp:(.text+0x32d): undefined reference to 
`SDL_HapticNewEffect'
SDL.cpp:(.text+0x34b): undefined reference to `SDL_HapticRunEffect'
../InputCommon/libinputcommon.a(SDL.cpp.o): In function `ciface::SDL::Joystick::~Joystick()':
SDL.cpp:(.text+0x3ae): undefined reference to 
`SDL_HapticStopAll'
SDL.cpp:(.text+0x3d3): undefined reference to `SDL_HapticDestroyEffect'
SDL.cpp:(.text+0x3e4): undefined reference to `SDL_HapticClose'
../InputCommon/libinputcommon.a(SDL.cpp.o): In function 
`ciface::SDL::Joystick::~Joystick()':
SDL.cpp:(.text+0x50e): undefined reference to `SDL_HapticStopAll'
SDL.cpp:(.text+0x533): undefined reference to `SDL_HapticDestroyEffect'
SDL.cpp:(.text+0x544): 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+0xf18): undefined reference to `SDL_HapticOpenFromJoystick'
SDL.cpp:(.text+0xf27): undefined reference to 
`SDL_HapticQuery'
collect2: ld returned 1 exit status
make[2]: *** [Binaries/dolphin-emu] Error 1
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [all] Error 2 

I had already compile it before without problems, just yesterday i update my git clone and my distro (PearOs 3 which is based in Ubuntu 11.10 x86) then i got that error. I tried to re-install all the dependecies to try to solve the problem, but still i get it.
Find
Reply
01-21-2012, 04:03 AM (This post was last modified: 01-21-2012, 04:05 AM by Shonumi.)
#2
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,506
Threads: 55
Joined: Dec 2011
I know Dolphin builds SDL statically if it's not already installed, so the problem may be with the current SDL installation on your system. If SDL is on your system, how are you installing it? Does PearOs 3 use Ubuntu's repositories, or does it use its own? Or are you installing it from source? This issue has been noted before: url=http://code.google.com/p/dolphin-emu/issues/detail?id=3658. Even though the user was on Arch Linux, it seemed the repos were messing things up. At any rate, I've never had problems installing SDL from source and then compiling Dolphin. You could remove SDL altogether and see if Dolphin will build it fine statically, or you could wipe SDL from your system and install it from source if you haven't already.
Website Find
Reply
01-21-2012, 04:57 AM
#3
jodr666 Offline
Junior Member
**
Posts: 12
Threads: 2
Joined: Aug 2010
(01-21-2012, 04:03 AM)Shonumi Wrote: I know Dolphin builds SDL statically if it's not already installed, so the problem may be with the current SDL installation on your system. If SDL is on your system, how are you installing it? Does PearOs 3 use Ubuntu's repositories, or does it use its own? Or are you installing it from source? This issue has been noted before: url=http://code.google.com/p/dolphin-emu/issues/detail?id=3658. Even though the user was on Arch Linux, it seemed the repos were messing things up. At any rate, I've never had problems installing SDL from source and then compiling Dolphin. You could remove SDL altogether and see if Dolphin will build it fine statically, or you could wipe SDL from your system and install it from source if you haven't already.

Thanks man, i remove sdl from my system and it when well. I was using libs from main ubuntu repo, but it seems after an update something when wrong with it.
Never tried to compile sdl from source, but i'll have it in mind for future reference.
Find
Reply
01-21-2012, 05:17 AM (This post was last modified: 01-21-2012, 05:18 AM by Shonumi.)
#4
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,506
Threads: 55
Joined: Dec 2011
As far as I know, most repos provide their packages in binary form, e.g. pre-compiled. Sometimes this causes strange conflicts, not just with Dolphin, but with other software too that need to be compiled from source. If you ever need it, compiling SDL from source is incredibly easy on the command-line: just use .configure && make && make install. Glad you got Dolphin working now.
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode