Problems to build project with catkin

I´m trying to port a project to jetson nano. Although I can’t go into much detail about the project, it consists of a video analysis to trigger specific some specific actions in the Jetson´s GPIOs.
And all this must work with ROS. Right now I´m trying to build the project with catkin and it is not building the project. Has anynone had similar problems with catkin in Jetson nano and could share some light?

P.S.: Some challenges here are: the person who developed this project is no longer in the company. And the person did not create much manuals, it is very scarce. On top of that, I´m not familiar with ROS and video analytics, so I´m kinda lost here. And the project was developed in a amd64 architecture.

P.S.: The following is the error I´m getting with catkin:

Profile: default
Extending: None
Workspace: /home/otlab/catkin_ws

Build Space: [exists] /home/otlab/catkin_ws/build
Devel Space: [exists] /home/otlab/catkin_ws/devel
Install Space: [unused] /home/otlab/catkin_ws/install
Log Space: [missing] /home/otlab/catkin_ws/logs
Source Space: [exists] /home/otlab/catkin_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

NOTE: Forcing CMake to run for each package.

WARNING: Your workspace is not extending any other result
space, but it is set to use a linked devel space
layout. This requires the catkin CMake package in your
source space in order to be built.

[build] Found ‘1’ packages in 0.0 seconds.
[build] Updating package table.
Starting >>> catkin_tools_prebuild

Errors << catkin_tools_prebuild:cmake /home/otlab/catkin_ws/logs/catkin_tools_prebuild/build.cmake.000.log
CMake Error at /home/otlab/catkin_ws/build/catkin_tools_prebuild/CMakeLists.txt:12 (message):
The catkin CMake module was not found, but it is required to build a linked
workspace. To resolve this, please do one of the following, and try
building again.

  1. Source the file from an existing catkin workspace:
    source SETUP_FILE

  2. Extend another catkin workspace’s result (install or devel) space:
    catkin config --extend RESULT_SPACE

  3. Set catkin_DIR to the directory containing catkin-config.cmake:
    catkin config --cmake-args -Dcatkin_DIR=CATKIN_CMAKE_CONFIG_PATH

  4. Add the catkin source package to your workspace’s source space:
    cd SOURCE_SPACE && git clone

cd /home/otlab/catkin_ws/build/catkin_tools_prebuild; catkin build --get-env catkin_tools_prebuild | catkin env -si /usr/bin/cmake /home/otlab/catkin_ws/build/catkin_tools_prebuild --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/otlab/catkin_ws/devel/.private/catkin_tools_prebuild -DCMAKE_INSTALL_PREFIX=/home/otlab/catkin_ws/install; cd -

Failed << catkin_tools_prebuild:cmake [ Exited with code 1 ]
Failed <<< catkin_tools_prebuild [ 3.3 seconds ]
Abandoned <<< safer_stack [ Unrelated job failed ]
[build] Summary: 0 of 2 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: 1 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 3.3 seconds total.

Hi @dgiacomellic, I’m not familiar with this error, and not sure that it is specific to Jetson.

I have this ROS project that builds with catkin on Jetson -

Maybe you want to create a test workspace and test package to verify that ROS is setup correctly on your device?

Hi @dusty_nv , I followed your example with ROS and the build was a success. So, I will try on my project here. In any case, I will mark your answer as a solution, because it helped me to advance. Thanks a lot.