orbbec / ros_astra_camera

ROS wrapper for Astra camera
Apache License 2.0
68 stars 28 forks source link

CMake Error Jetson NX TX #182

Open wesedano opened 1 year ago

wesedano commented 1 year ago

Running command: "cmake /home/wesedano/catkin/src -DCATKIN_DEVEL_PREFIX=/home/wesedano/catkin/devel -DCMAKE_INSTALL_PREFIX=/home/wesedano/catkin/install -G Unix Makefiles" in "/home/wesedano/catkin/build"

-- Using CATKIN_DEVEL_PREFIX: /home/wesedano/catkin/devel -- Using CMAKE_PREFIX_PATH: /home/wesedano/catkin/devel;/opt/ros/melodic -- This workspace overlays: /home/wesedano/catkin/devel;/opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/wesedano/catkin/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 4 packages in topological order: -- ~~ - data -- ~~ - robot_pkg -- ~~ - my_joy_pkg -- ~~ - astra_camera -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'data' -- ==> add_subdirectory(data) -- +++ processing catkin package: 'robot_pkg' -- ==> add_subdirectory(robot_pkg) -- +++ processing catkin package: 'my_joy_pkg' -- ==> add_subdirectory(my_joy_pkg) -- +++ processing catkin package: 'astra_camera' -- ==> add_subdirectory(ros_astra_camera) CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message): Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found. It does neither exist as an absolute directory nor in '${{prefix}}//usr/include/opencv'. Check the issue tracker 'https://github.com/ros-perception/vision_opencv/issues' and consider creating a ticket if the problem has not been reported yet. Call Stack (most recent call first): /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) ros_astra_camera/CMakeLists.txt:14 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/wesedano/catkin/build/CMakeFiles/CMakeOutput.log". See also "/home/wesedano/catkin/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

Following the tutorial, When I did the catkin_make looks like the cv_bridge is not included in the package, would someone helping me with this?

Thank you!

jian-dong commented 1 year ago

This problem came because Opencv issue, you can set OpenCV path like

set(OpenCV_DIR /YourOpenCVPATH/share/OpenCV)