Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed catkin_make jetbot_ros #45

Open
FawziLinggo opened this issue Nov 5, 2021 · 13 comments
Open

failed catkin_make jetbot_ros #45

FawziLinggo opened this issue Nov 5, 2021 · 13 comments

Comments

@FawziLinggo
Copy link

FawziLinggo commented Nov 5, 2021

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
@smalloytn
Copy link

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$

@dusty-nv
Copy link
Owner

dusty-nv commented Nov 5, 2021

Did you clone the melodic branch of the repo?

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

@smalloytn
Copy link

smalloytn commented Nov 5, 2021

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

@FawziLinggo
Copy link
Author

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**

@dusty-nv
Copy link
Owner

dusty-nv commented Nov 8, 2021

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

@FawziLinggo
Copy link
Author

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

It's work. Thanks You

@OurLifeIsHappy
Copy link

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

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

@JasonMelon1
Copy link

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)

@dusty-nv
Copy link
Owner

@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)

@JasonMelon1
Copy link

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
Copy link

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

@dusty-nv
Copy link
Owner

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

@JasonMelon1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants