Skip to content

Instantly share code, notes, and snippets.

@cguentherTUChemnitz
Created July 11, 2014 12:50
Show Gist options
  • Save cguentherTUChemnitz/6b0889a46bd562d4147a to your computer and use it in GitHub Desktop.
Save cguentherTUChemnitz/6b0889a46bd562d4147a to your computer and use it in GitHub Desktop.
apitest linking error
Linking CXX executable ../../bin/apitest
../thirdparty/SDL2-2.0.1//libSDL2.a(SDL_sysjoystick.c.o): In function `JoystickInitWithUdev':
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:330: undefined reference to `SDL_UDEV_Init'
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:335: undefined reference to `SDL_UDEV_AddCallback'
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:341: undefined reference to `SDL_UDEV_Scan'
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:336: undefined reference to `SDL_UDEV_Quit'
../thirdparty/SDL2-2.0.1//libSDL2.a(SDL_sysjoystick.c.o): In function `SDL_SYS_JoystickQuit':
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:859: undefined reference to `SDL_UDEV_DelCallback'
../thirdparty/SDL2-2.0.1//libSDL2.a(SDL_sysjoystick.c.o): In function `SDL_SYS_JoystickDetect':
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:381: undefined reference to `SDL_UDEV_Poll'
../thirdparty/SDL2-2.0.1//libSDL2.a(SDL_sysjoystick.c.o): In function `SDL_SYS_JoystickQuit':
/home/cguenther/Dokumente/apitest/thirdparty/SDL2-2.0.1/src/joystick/linux/SDL_sysjoystick.c:860: undefined reference to `SDL_UDEV_Quit'
collect2: error: ld returned 1 exit status
src/CMakeFiles/apitest.dir/build.make:1287: recipe for target '../bin/apitest' failed
make[2]: *** [../bin/apitest] Error 1
CMakeFiles/Makefile2:233: recipe for target 'src/CMakeFiles/apitest.dir/all' failed
make[1]: *** [src/CMakeFiles/apitest.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
[cguenther@renderman _release]$ yaourt -S SDL2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment