About installation of libraries in Nvidia jetson nano

Hi,
I’m setting up an object detection project on my Jetson Nano. The repository was cloned successfully from GitHub, and I installed PyTorch as per the instructions in the repo. However, when I attempt to build the project using CMake, I encounter the following error:

1.System Configuration:

Jetson Device: Jetson Nano
OS: Ubuntu 20.04 (JetPack 5.x)
Python Version: Python 3.8
CUDA Version: 11.4
CMake Version: (Specify your version, e.g., 3.21)
2.Command Executed:

cmake …

3.Error Output:
CMake Error:
Some of the libraries being used in the project are not set to be found:

Could not find package ‘example_library’.
Missing file ‘/path/to/some_required_dependency’.

Steps Taken:

  1. Cloned the GitHub repository:

git clone <repository_link>
cd <repository_name>
Installed dependencies and PyTorch as per the GitHub instructions.
Ran the CMake build:
mkdir build
cd build
cmake …

Additional Info:

  • I checked for the missing libraries and confirmed that some were installed using apt-get install, but the error persists.
  • Updated the environment variables for PATH and LD_LIBRARY_PATH.

Questions:

  1. Is there a common reason why libraries are not found in CMake on Jetson Nano?
  2. Do I need to install specific JetPack or CMake dependencies to resolve this issue?
  3. Should I modify the CMakeLists.txt file to point to library paths?