ksivakumar / brown-ros-pkg

Automatically exported from code.google.com/p/brown-ros-pkg
0 stars 0 forks source link

compile error ubuntu 11.10 #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 c...@jsk.imi.i.u-tokyo.ac.jp on 23 May 2012 at 1:27