jetbot_ros icon indicating copy to clipboard operation
jetbot_ros copied to clipboard

failed catkin_make jetbot_ros

Open FawziLinggo opened this issue 3 years ago • 13 comments

help me :(

Base path: /home/jetbot/workspace/catkin_ws
Source space: /home/jetbot/workspace/catkin_ws/src
Build space: /home/jetbot/workspace/catkin_ws/build
Devel space: /home/jetbot/workspace/catkin_ws/devel
Install space: /home/jetbot/workspace/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/jetbot/workspace/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/jetbot/workspace/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/jetbot/workspace/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/jetbot/workspace/catkin_ws/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/jetbot/workspace/catkin_ws/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 2 packages in topological order:
-- ~~  - jetbot_ros (unknown)
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message):
  Unknown build type 'ament_python' for package 'jetbot_ros'
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- ~~  - ros_deep_learning
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:838: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

FawziLinggo avatar Nov 05 '21 08:11 FawziLinggo

I am receiving the same problem/errors when following the ROS melodic install instructions -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 2 packages in topological order: -- ~~ - jetbot_ros (unknown) CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message): Unknown build type 'ament_python' for package 'jetbot_ros' Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace)

-- ~~ - ros_deep_learning -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace)

-- Configuring incomplete, errors occurred! See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:838: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed jetbot@nano-4gb-jp45:~/workspace/catkin_ws$

smalloytn avatar Nov 05 '21 19:11 smalloytn

Did you clone the melodic branch of the repo?

https://github.com/dusty-nv/jetbot_ros/tree/melodic

dusty-nv avatar Nov 05 '21 19:11 dusty-nv

Yes I was following these Directions at https://github.com/dusty-nv/jetbot_ros/tree/melodic, when I got to the jetbot_ROS section I cloned https://github.com/dusty-nv/jetbot_ros.git, I was having problems with https://github.com/dusty-nv/jetbot_ros, probably user error, I started my build using jetpack, jetson-nano-jp45-sd-card-image.zip to setup nano and then used jetbot-43_nano-4gb -jp45.zip for finale sd card image, https://jetbot.org/master/software_setup/sd_card.html says you have to do it this way to jet the jetbot image to work? I am also using the Waveshare jetbot kit. What version of ROS is this? I also had to use gparted to expand the jetbot APP partition

smalloytn avatar Nov 05 '21 20:11 smalloytn

Did you clone the melodic branch of the repo?

https://github.com/dusty-nv/jetbot_ros/tree/melodic

I've cloned it and got a new problem, do you have a solution?

[ 92%] Linking CXX executable /home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera /usr/bin/ld: cannot find -lnvbuf_utils collect2: error: ld returned 1 exit status jetbot_ros/CMakeFiles/jetbot_camera.dir/build.make:168: recipe for target '/home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera' failed make[2]: *** [/home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera] Error 1 CMakeFiles/Makefile2:615: recipe for target 'jetbot_ros/CMakeFiles/jetbot_camera.dir/all' failed make[1]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 **Invoking "make -j4 -l4" failed**

FawziLinggo avatar Nov 08 '21 06:11 FawziLinggo

Hmm...can you try adding this line link_directories(/usr/lib/aarch64-linux-gnu/tegra) to line 128 of CMakeLists.txt:

https://github.com/dusty-nv/jetbot_ros/blob/179bdaa3614123b7f08dcfafe6bc5367bbbf058b/CMakeLists.txt#L128

dusty-nv avatar Nov 08 '21 15:11 dusty-nv

Hmm...can you try adding this line link_directories(/usr/lib/aarch64-linux-gnu/tegra) to line 128 of CMakeLists.txt:

https://github.com/dusty-nv/jetbot_ros/blob/179bdaa3614123b7f08dcfafe6bc5367bbbf058b/CMakeLists.txt#L128

It's work. Thanks You

FawziLinggo avatar Nov 12 '21 01:11 FawziLinggo

Hmm...can you try adding this line link_directories(/usr/lib/aarch64-linux-gnu/tegra) to line 128 of CMakeLists.txt:

https://github.com/dusty-nv/jetbot_ros/blob/179bdaa3614123b7f08dcfafe6bc5367bbbf058b/CMakeLists.txt#L128

It helps me too, I appreciate your wisdom.Thank you so much!!!!!!!

OurLifeIsHappy avatar Nov 13 '21 17:11 OurLifeIsHappy

Hello! I have cloned the melodic branch of the repo, and I added this line link_directories(/usr/lib/aarch64-linux-gnu/tegra) to line 128 of CMakeLists.txt, but I still have the following issue. How can I fix it?

CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message): Unknown build type 'ament_python' for package 'jetbot_ros' Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace)

JasonMelon1 avatar Nov 27 '21 06:11 JasonMelon1

@JasonMelon1 are you sure you're on the melodic branch of jetbot_ros and not the master branch? Because the melodic branch doesn't have references to ament (which is a ROS2 build tool)

dusty-nv avatar Nov 29 '21 20:11 dusty-nv

I cloned https://github.com/dusty-nv/jetbot_ros. It is the melodic branch of jetbot_ros, right?

jetbot@jetbot:/workspace/catkin_ws/src$ git clone https://github.com/dusty-nv/jetbot_ros

Cloning into 'jetbot_ros'... remote: Enumerating objects: 667, done. remote: Counting objects: 100% (513/513), done. remote: Compressing objects: 100% (334/334), done. remote: Total 667 (delta 298), reused 385 (delta 172), pack-reused 154 Receiving objects: 100% (667/667), 11.19 MiB | 3.54 MiB/s, done. Resolving deltas: 100% (374/374), done. jetbot@jetbot:/workspace/catkin_ws/src$ cd .. jetbot@jetbot:~/workspace/catkin_ws$ catkin_make Base path: /home/jetbot/workspace/catkin_ws Source space: /home/jetbot/workspace/catkin_ws/src Build space: /home/jetbot/workspace/catkin_ws/build Devel space: /home/jetbot/workspace/catkin_ws/devel Install space: /home/jetbot/workspace/catkin_ws/install

Running command: "cmake /home/jetbot/workspace/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/jetbot/workspace/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/jetbot/workspace/catkin_ws/install -G Unix Makefiles" in "/home/jetbot/workspace/catkin_ws/build" -- Using CATKIN_DEVEL_PREFIX: /home/jetbot/workspace/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic -- This workspace overlays: /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/jetbot/workspace/catkin_ws/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 5 packages in topological order: -- ~~ - jetbot_ros (unknown) CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message): Unknown build type 'ament_python' for package 'jetbot_ros' Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace)

-- ~~ - joystick_drivers (metapackage) -- ~~ - joy -- ~~ - ros_deep_learning -- ~~ - spacenav_node -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace)

-- Configuring incomplete, errors occurred! See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed`

JasonMelon1 avatar Nov 30 '21 12:11 JasonMelon1

Also, I cannot clone https://github.com/dusty-nv/jetbot_ros/tree/melodic

jetbot@jetbot:~/workspace/catkin_ws/src$ git clone https://github.com/dusty-nv/jetbot_ros/tree/melodic Cloning into 'melodic'... fatal: repository 'https://github.com/dusty-nv/jetbot_ros/tree/melodic/' not found

JasonMelon1 avatar Nov 30 '21 12:11 JasonMelon1

The command would be: git clone --branch melodic https://github.com/dusty-nv/jetbot_ros

dusty-nv avatar Nov 30 '21 18:11 dusty-nv

I appreciate your help!! It works and no error came out.
I am a beginner in Linux and so on, so I did not know how to clone another branch. Thank you so much!! I need to study more

JasonMelon1 avatar Nov 30 '21 22:11 JasonMelon1