# Having difficulties installing flir_camera_driver.

Hello,

I'm trying to build the ros-drivers/flir_camera_driver package, however I have been running into the below error. I'm running Ubuntu 16.04 on an ARM64 system (Nvidia TX2). I have also tried building the ETH ASL fork of this driver with the same error as well as both of these on my desktop without any luck.

Would anyone have any ideas on what is going wrong/how I might fix it?

I've tried posting on the flir_camera_driver github page, however haven't been able to get any help yet there. Any help would be greatly appreciated as I'm quite stuck currently and have spent days trying to work this out. Thanks :)

nvidia@tegra-ubuntu:~/flir2_ws/src$catkin build ---------------------------------------------------------- Profile: default Extending: [env] /opt/ros/kinetic Workspace: /home/nvidia/flir2_ws ---------------------------------------------------------- Build Space: [exists] /home/nvidia/flir2_ws/build Devel Space: [exists] /home/nvidia/flir2_ws/devel Install Space: [unused] /home/nvidia/flir2_ws/install Log Space: [missing] /home/nvidia/flir2_ws/logs Source Space: [exists] /home/nvidia/flir2_ws/src DESTDIR: [unused] None ---------------------------------------------------------- Devel Space Layout: linked Install Space Layout: None ---------------------------------------------------------- Additional CMake Args: None Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True Cache Job Environments: False ---------------------------------------------------------- Whitelisted Packages: None Blacklisted Packages: None ---------------------------------------------------------- Workspace configuration appears valid. NOTE: Forcing CMake to run for each package. ---------------------------------------------------------- [build] Found '2' packages in 0.0 seconds. [build] Updating package table. Starting >>> catkin_tools_prebuild Finished <<< catkin_tools_prebuild [ 4.4 seconds ] Starting >>> spinnaker_camera_driver ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________ Errors << spinnaker_camera_driver:make /home/nvidia/flir2_ws/logs/spinnaker_camera_driver/build.make.000.log CMakeFiles/spinnaker_test_node.dir/src/spinnaker_test_node.cpp.o:(.rodata._ZTVN9Spinnaker9CameraPtrE[_ZTVN9Spinnaker9CameraPtrE]+0x30): undefined reference to Spinnaker::BasePtr<Spinnaker::Camera, Spinnaker::ICameraBase>::operator=(long)' CMakeFiles/spinnaker_test_node.dir/src/spinnaker_test_node.cpp.o:(.rodata._ZTVN9Spinnaker9CameraPtrE[_ZTVN9Spinnaker9CameraPtrE]+0x38): undefined reference to Spinnaker::BasePtr<Spinnaker::Camera, Spinnaker::ICameraBase>::operator=(decltype(nullptr))' CMakeFiles/spinnaker_test_node.dir/src/spinnaker_test_node.cpp.o:(.rodata._ZTVN9Spinnaker9CameraPtrE[_ZTVN9Spinnaker9CameraPtrE]+0x68): undefined reference to Spinnaker::BasePtr<Spinnaker::Camera, Spinnaker::ICameraBase>::operator==(decltype(nullptr)) const' CMakeFiles/spinnaker_test_node.dir/src/spinnaker_test_node.cpp.o:(.rodata._ZTVN9Spinnaker9CameraPtrE[_ZTVN9Spinnaker9CameraPtrE]+0x78): undefined reference to Spinnaker::BasePtr<Spinnaker::Camera, Spinnaker::ICameraBase>::operator==(long) const' collect2: error: ld returned 1 exit status make[2]: *** [/home/nvidia/flir2_ws/devel/.private/spinnaker_camera_driver/lib/spinnaker_camera_driver/spinnaker_test_node] Error 1 make[1]: *** [CMakeFiles/spinnaker_test_node.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 cd /home/nvidia/flir2_ws/build/spinnaker_camera_driver; catkin build --get-env spinnaker_camera_driver | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ...................................................................................................................................................................................................................................... Failed << spinnaker_camera_driver:make [ Exited with code 2 ] Failed <<< spinnaker_camera_driver [ 33.7 seconds ] [build] Summary: 1 of 2 packages succeeded. [build] Ignored: 1 packages were skipped or are blacklisted. [build] Warnings: None. [build] Abandoned: None. [build] Failed: 1 packages failed. [build] Runtime: 38.1 seconds total. [build] Note: Workspace packages have changed, please re-source setup files to use them.  edit retag close merge delete ## Comments This looks me to like a linking error, in the CMakeLists I see a call for ${Spinnaker_LIBRARIES} in the linking for the library, but perhaps there's an issue with that library being installed altogether - I see the find_package fails silently. try changing quiet to REQUIRED and see if it fails on just finding the package

( 2019-06-03 11:28:34 -0600 )edit

Hi Steve, thanks for the reply. I tried that, however I get the same error. I also tried uninstalling the Spinnaker SDK (https://flir.app.boxcn.net/v/Spinnake...) and cleaning/rebuilding. I get different errors without it installed, so I believe it is finding them.

I can run the "spinview" program from the SDK install successfully and access the camera with that, however still having trouble getting the ros driver to build.

( 2019-06-03 20:44:44 -0600 )edit

Hi Sk12, I have a similar problem trying to run the flir_camera_driver with my Chameleon 3 cameras. Did you find the solution? These is one of the errors:

Errors     << spinnaker_camera_driver:make /home/antoni/pointgrey_ws/logs/spinnaker_camera_driver/build.make.001.log
CMakeFiles/spinnaker_test_node.dir/src/spinnaker_test_node.cpp.o:(.rodata._ZTVN9Spinnaker9CameraPtrE[_ZTVN9Spinnaker9CameraPtrE]+0x30): undefined reference to Spinnaker::BasePtr<Spinnaker::Camera, Spinnaker::ICameraBase>::operator=(long)'
CMakeFiles/spinnaker_test_node.dir/src/spinnaker_test_node.cpp.o:
`

Any help will be welcome!

( 2019-09-12 03:37:30 -0600 )edit