neufieldrobotics / spinnaker_sdk_camera_driver

Point Grey (FLIR) Spinnaker based camera driver (Blackfly S etc.)
MIT License
127 stars 90 forks source link

Catkin_make error #120

Closed Keddie-yang closed 3 years ago

Keddie-yang commented 3 years ago

System Description Camera Name and Model: BFS-U3-16S2M-CS Operating System: Ubuntu 18.04 Bionic Spinnaker Version: 2.2.0.48 ROS Version: Melodic

Computer details Processor: Xavier AGX RAM: 32G

Do the cameras work with SpinView? Yes. Describe the bug When I catkin_make at my workspace(spinnaker_ws) , both the capture.cpp and camera.cpp can not build.
Does anyone can help ?
Error Messages

agx@agx-desktop:~/spinnaker_ws$ catkin_make
Base path: /home/agx/spinnaker_ws
Source space: /home/agx/spinnaker_ws/src
Build space: /home/agx/spinnaker_ws/build
Devel space: /home/agx/spinnaker_ws/devel
Install space: /home/agx/spinnaker_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/agx/spinnaker_ws/build"
####
####
#### Running command: "make -j4 -l4" in "/home/agx/spinnaker_ws/build"
####
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_cpp
[  0%] Built target geometry_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target geometry_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target _optic_flow_example_generate_messages_check_deps_OpticFlowMsg
[  0%] Built target geometry_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target roscpp_generate_messages_py
[  0%] Built target dynamic_reconfigure_generate_messages_eus
[  0%] Built target roscpp_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_lisp
[  0%] Built target roscpp_generate_messages_eus
[  0%] Built target rosgraph_msgs_generate_messages_nodejs
[  0%] Built target rosgraph_msgs_generate_messages_py
[  0%] Built target rosgraph_msgs_generate_messages_cpp
[  0%] Built target roscpp_generate_messages_lisp
[  0%] Built target roscpp_generate_messages_cpp
[  0%] Built target rosgraph_msgs_generate_messages_lisp
[  0%] Built target rosgraph_msgs_generate_messages_eus
[  0%] Built target nodelet_generate_messages_py
[  0%] Built target dynamic_reconfigure_generate_messages_lisp
[  0%] Built target bond_generate_messages_nodejs
[  0%] Built target nodelet_generate_messages_lisp
[  0%] Built target nodelet_generate_messages_eus
[  0%] Built target nodelet_generate_messages_nodejs
[  0%] Built target dynamic_reconfigure_gencfg
[  0%] Built target sensor_msgs_generate_messages_cpp
[  0%] Built target dynamic_reconfigure_generate_messages_nodejs
[  0%] Built target sensor_msgs_generate_messages_lisp
[  0%] Built target sensor_msgs_generate_messages_nodejs
[  0%] Built target bond_generate_messages_eus
[  0%] Built target sensor_msgs_generate_messages_py
[  0%] Built target bond_generate_messages_py
[  0%] Built target nodelet_generate_messages_cpp
[  0%] Built target dynamic_reconfigure_generate_messages_cpp
[  0%] Built target bond_generate_messages_cpp
[  0%] Built target dynamic_reconfigure_generate_messages_py
[  0%] Built target bond_generate_messages_lisp
[  0%] Built target sensor_msgs_generate_messages_eus
[  4%] Built target spinnaker_sdk_camera_driver_gencfg
[  9%] Built target optic_flow_example_generate_messages_nodejs
[ 13%] Built target optic_flow_example_generate_messages_cpp
[ 22%] Built target optic_flow_example_generate_messages_py
[ 31%] Built target optic_flow_example_generate_messages_eus
[ 36%] Built target optic_flow_example_generate_messages_lisp
[ 36%] Built target _spinnaker_sdk_camera_driver_generate_messages_check_deps_SpinnakerImageNames
[ 45%] Built target subscriber_example
[ 45%] Built target optic_flow_example_generate_messages
[ 50%] Built target spinnaker_sdk_camera_driver_generate_messages_cpp
[ 54%] Built target spinnaker_sdk_camera_driver_generate_messages_nodejs
[ 63%] Built target spinnaker_sdk_camera_driver_generate_messages_py
[ 68%] Built target spinnaker_sdk_camera_driver_generate_messages_lisp
[ 77%] Built target spinnaker_sdk_camera_driver_generate_messages_eus
make[2]: *** No rule to make target '/usr/lib/libSpinnaker.so', needed by '/home/agx/spinnaker_ws/devel/lib/libacquilib.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 81%] Building CXX object spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/src/capture.cpp.o
[ 81%] Built target spinnaker_sdk_camera_driver_generate_messages
[ 86%] Building CXX object spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/src/camera.cpp.o
/home/agx/spinnaker_ws/src/spinnaker_sdk_camera_driver/src/capture.cpp:1:10: fatal error: spinnaker_sdk_camera_driver/capture.h: 沒有此一檔案或目錄
 #include "spinnaker_sdk_camera_driver/capture.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/build.make:62: recipe for target 'spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/src/capture.cpp.o' failed
make[2]: *** [spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/src/capture.cpp.o] Error 1
/home/agx/spinnaker_ws/src/spinnaker_sdk_camera_driver/src/camera.cpp:1:10: fatal error: spinnaker_sdk_camera_driver/camera.h: 沒有此一檔案或目錄
 #include "spinnaker_sdk_camera_driver/camera.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/build.make:86: recipe for target 'spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/src/camera.cpp.o' failed
make[2]: *** [spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/src/camera.cpp.o] Error 1
CMakeFiles/Makefile2:2631: recipe for target 'spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/all' failed
make[1]: *** [spinnaker_sdk_camera_driver/CMakeFiles/acquilib.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
ghost commented 3 years ago

The error messages here don't say much about what is going on. Can you post the full output.
As you can see in our CI at https://travis-ci.org/github/neufieldrobotics/spinnaker_sdk_camera_driver/jobs/758843701 , 2.2.0.48 seems to compile fine on Melodic. The only thing different is that we haven't tested it on ARM.

Keddie-yang commented 3 years ago

Sorry I'm not good at using that. But I have updated the full information.

ghost commented 3 years ago

@PushyamiKaveti any thoughts on what might be going on?

ghost commented 3 years ago

@Keddie-yang were you able to solve your issue?

Keddie-yang commented 3 years ago

Yes, I just re-install the package.