From: Mintaka A. <min...@ho...> - 2008-09-12 11:10:33
|
Dear Geoff/list members, I have tried to modify the CMakeLists.txt from the SR3000 player/stage driver located in server/driver/mixed/sr3000/. I tried unsuccessfully by the following forms: 1) Made my own "searching" for locating the libusbSR.h. LIST(APPEND LIBSR /usr/include/libusbSR.h) CHECK_INCLUDE_FILES(${LIBSR} HAVE_LIBSR_H) 2) Include paths of library and libusbSR.so PLAYERDRIVER_ADD_DRIVER (sr3000 build_sr3000 INCLUDEDIRS /usr/local/include LIBDIRS /usr/local/lib LINKFLAGS "-lusbSR" "${sr3000Flags}" SOURCES sr3000.cc) 3) Copy manually the files /usr/local/include/libusbSR.h to /usr/include and /usr/local/lib//libusbSR.so.1.0.10-506 to /usr/lib, and create a link for /usr/lib/libusbSR.so -> /usr/lib/libusbSR.so.1.0.10-506 After this sort of "quick" solutions I am still not possible to address the location of libusbSR.h as I obtained the following output: -- Looking for include files HAVE_LIBSR_H -- Looking for include files HAVE_LIBSR_H - not found. -- Looking for include files HAVE_HDR_LIBUSBSR_H -- Looking for include files HAVE_HDR_LIBUSBSR_H - not found. I am describing my current /player/server/driver/mixed/sr3000/CMakeLists.txt file. --------------begin of CMakeLists.txt--------------------------------------- PLAYERDRIVER_OPTION (sr3000 build_sr3000 ON) LIST(APPEND LIBSR /usr/include/libusbSR.h) CHECK_INCLUDE_FILES(${LIBSR} HAVE_LIBSR_H) SET (sr3000Flags "-I/usr/local/include -I/usr/local/lib -Wall -O3") PLAYERDRIVER_REQUIRE_HEADER (sr3000 build_sr3000 libusbSR.h) PLAYERDRIVER_ADD_DRIVER (sr3000 build_sr3000 INCLUDEDIRS /usr/local/include LIBDIRS /usr/local/lib LINKFLAGS "-lusbSR" "${sr3000Flags}" SOURCES sr3000.cc) ________________________________ > From: min...@ho... > To: pla...@li... > Date: Thu, 11 Sep 2008 17:52:40 +0000 > Subject: [Playerstage-users] Compiling SR3000 in Player 2.02 > > Dear list members, > > I would like to know if someone can help me to solve a compiling problem with SR3000 driver. I am not sure which should be the system conditions in order to compile the SwissRanger driver for Player 2.02. I am capable to compile the swissranger native functions using: > > g++ -lusbSR -Wall -O3 -o libusbSRTester libusbSRTester.cpp > > but when I type "cmake ../" from a "player/build" directory, the result for "libusbSR.h" is: > -- sr3000 - Could not find header libusbSR.h > > I have also modified the value of "HAVE_HDR_LIBUSBSR_H:INTERNAL=" variable in CMakeCache.txt file to the path of the "libusbSR.h" library and even including as "-I/pathToLusbSR" or "-lusbSR -Wall -O3" values but the only I can get are the following errors related to sw3000 driver functions: > > [ 37%] Building CXX object server/libplayerdrivers/CMakeFiles/playerdrivers.dir/__/__/__/server/drivers/mixed/sr3000/sr3000.o > /home/samperio/workspace/PlayerStage/player/server/drivers/mixed/sr3000/sr3000.cc:123: error: ISO C++ forbids declaration of ‘SwissrangerCam’ with no type > player/server/drivers/mixed/sr3000/sr3000.cc:123: error: expected ‘;’ before ‘*’ token > player/server/drivers/mixed/sr3000/sr3000.cc: In member function ‘virtual int SR3000::Setup()’: > player/server/drivers/mixed/sr3000/sr3000.cc:242: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:242: error: ‘SR_Open’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:249: error: ‘SR_GetBytePerPix’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:250: error: ‘SR_GetNumImg’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:253: error: ‘SR_GetBufferSize’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:268: error: ‘SR_SetBuffer’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc: In member function ‘virtual int SR3000::Shutdown()’: > player/server/drivers/mixed/sr3000/sr3000.cc:290: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc: In member function ‘int SR3000::ProcessMessageCamera(QueuePointer&, player_msghdr*, void*, player_devaddr_t)’: > player/server/drivers/mixed/sr3000/sr3000.cc:322: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:324: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:341: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:359: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:377: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:377: error: ‘SR_SetSaturationThreshold’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:396: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:421: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:429: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:445: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:445: error: ‘SR_SetTemporalIIR’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:463: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:463: error: ‘SR_SetTemporalIIR’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc: In member function ‘void SR3000::RefreshData()’: > player/server/drivers/mixed/sr3000/sr3000.cc:529: error: ‘srCam’ was not declared in this scope > player/server/drivers/mixed/sr3000/sr3000.cc:529: error: ‘AM_COR_LED_NON_LIN’ was not declared in this scope > make[2]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/__/__/__/server/drivers/mixed/sr3000/sr3000.o] Error 1 > make[1]: *** [server/libplayerdrivers/CMakeFiles/playerdrivers.dir/all] Error 2 > make: *** [all] Error 2 > > Also the content installed from the SR3000 driver currently online ("libusbsr_1.0.10-507_i386.deb") is: > > usr/local/include/definesSR.h > usr/local/include/libusbSR.h > usr/local/share/swissranger/ipm_00_x3s0200_s_0_01.bit > usr/local/share/swissranger/shm_10_x2s0050_s_0_03.bit > usr/local/share/swissranger/shm_10_x2s0050_s_3_03.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_6_05.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_0_06.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_0_04.bit > usr/local/share/swissranger/shm_10_x2s0050_s_2_01.bit > usr/local/share/swissranger/camDataSR3k00.xml > usr/local/share/swissranger/IPM_00_X3S0200_P_0_10.bit > usr/local/share/swissranger/shm_10_x2s0050_s_0_01.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_3_03.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_1_03.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_4_05.bit > usr/local/share/swissranger/shm_10_x2s0050_s_1_03.bit > usr/local/share/swissranger/shm_10_x2s0050_s_2_03.bit > usr/local/share/swissranger/driverData.xml > usr/local/share/swissranger/shm_10_x2s0050_s_1_01.bit > usr/local/share/swissranger/SHM_00_X2S0100_P_0_11.bit > usr/local/share/swissranger/python/ > usr/local/share/swissranger/python/SRdemoBasic.py > usr/local/share/swissranger/python/readme.txt > usr/local/share/swissranger/python/SRdemoVTK.py > usr/local/share/swissranger/python/SRdemoMatPlotLib.py > usr/local/share/swissranger/camDataSR2B.xml > usr/local/share/swissranger/ipm_00_x3s0200_s_2_01.bit > usr/local/share/swissranger/shm_30_x3s0200_p_x_00.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_2_03.bit > usr/local/share/swissranger/ipm_00_x3s0200_s_1_01.bit > usr/local/share/swissranger/camDataSR3k01.xml > usr/local/share/swissranger/ipm_00_x3s0200_s_0_03.bit > usr/local/share/doc/libusbSR-1.0.10/ > usr/local/share/doc/libusbSR-1.0.10/libusbSRTester > usr/local/share/doc/libusbSR-1.0.10/README > usr/local/share/doc/libusbSR-1.0.10/libusbSRTester.cpp > usr/local/lib/libusbSR.so.1.0.10-506 > usr/share/doc/libusbsr/copyright > usr/share/doc/libusbsr/changelog.Debian.gz > usr/local/lib/libusbSR.so > > Many thanks in advance for your time and I will be looking forward to hear from anyone who might give me some hints about it. > > Best regards, > > > > ________________________________ > Connect to the next generation of MSN Messenger Get it now! _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline |