Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error ubuntu 11.10 #14

Open
GoogleCodeExporter opened this issue Jul 7, 2015 · 0 comments
Open

compile error ubuntu 11.10 #14

GoogleCodeExporter opened this issue Jul 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. roscd ardrone_brown; make

What is the expected output? What do you see instead?

vp_stages_o_sdl.c:(.text+0x5f): undefined reference to `SDL_PollEvent'
/home/bakui/ros/electric/brown-ros-pkg/ardrone_brown/lib/libsdk.a(vp_stages_o_sd
l.o): In function `vp_stages_output_sdl_stage_open':
vp_stages_o_sdl.c:(.text+0xb4): undefined reference to `SDL_Init'
/home/bakui/ros/electric/brown-ros-pkg/ardrone_brown/lib/libsdk.a(vp_stages_o_sd
l.o): In function `vp_stages_output_sdl_stage_transform':
vp_stages_o_sdl.c:(.text+0x1e1): undefined reference to `SDL_SetVideoMode'
vp_stages_o_sdl.c:(.text+0x1ec): undefined reference to `SDL_ShowCursor'
vp_stages_o_sdl.c:(.text+0x200): undefined reference to `SDL_CreateYUVOverlay'
vp_stages_o_sdl.c:(.text+0x28f): undefined reference to `SDL_LockYUVOverlay'
vp_stages_o_sdl.c:(.text+0x466): undefined reference to `SDL_UnlockYUVOverlay'
vp_stages_o_sdl.c:(.text+0x477): undefined reference to `SDL_DisplayYUVOverlay'
/home/bakui/ros/electric/brown-ros-pkg/ardrone_brown/lib/libsdk.a(vp_stages_o_sd
l.o): In function `vp_stages_output_sdl_stage_close':
vp_stages_o_sdl.c:(.text+0x584): undefined reference to `SDL_ShowCursor'
vp_stages_o_sdl.c:(.text+0x58d): undefined reference to `SDL_FreeYUVOverlay'
vp_stages_o_sdl.c:(.text+0x596): undefined reference to `SDL_FreeSurface'
vp_stages_o_sdl.c:(.text+0x59b): undefined reference to `SDL_Quit'


What version of the product are you using? On what operating system?

Ubuntu 11.10

Please provide any additional information below.

following patch fix the problem

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt  (revision 2783)
+++ CMakeLists.txt  (working copy)
@@ -32,4 +32,4 @@
 link_directories(${PROJECT_SOURCE_DIR}/lib/)
 include_directories(${SDK} ${SDK}/Soft/Common ${SDK}/Soft/Lib ${SDK}/VP_SDK ${SDK}/VP_SDK/VP_Os/linux)
 rosbuild_add_executable(ardrone_driver src/ardrone_driver.cpp src/video.cpp src/ardrone_sdk.cpp src/teleop_twist.cpp)
-target_link_libraries(ardrone_driver vlib pc_ardrone SDL sdk)
+target_link_libraries(ardrone_driver vlib pc_ardrone sdk SDL)

Original issue reported on code.google.com by [email protected] on 23 May 2012 at 1:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant