Error when using argus_camera

I’m trying to build argus_camera on my jetson Nano as I would like to start my project of a wrapper of libargus to be able to setup more settings that gstreamer allows us.

The project address is as follows:

When doing cmake … at argus_camera/build

/argus_camera/build$ cmake
– The C compiler identification is GNU 7.5.0
– The CXX compiler identification is GNU 7.5.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Could not find Tegra Multimedia API
– Configuring done
– Generating done
– Build files have been written to: /home/nicolas/argus_camera/build

You can see the line "Could not find Tegra Multimedia API’ comming from the CMakeList.txt

find_package(TegraMM REQUIRED)
if(${TegraMM_FOUND})
message(STATUS “Found Tegra Multimedia API”)
else()
message(STATUS “Could not find Tegra Multimedia API”)
endif()

Then when triyng make I have the error:

/home/nicolas/argus_camera/src/ArgusCamera.cpp:3:10: fatal error: Argus/Argus.h: No such file or directory
#include “Argus/Argus.h”

I had the source files of the Tegra Multimedia API on my Jetson image at /usr/src/jetson_multimedia_api so I think I have the Tegra Multimedia API included in the flashed image.
I compiled /usr/src/jetson_multimedia_api/argus with succes and can use an executable like /usr/src/jetson_multimedia_api/argus/build/samples/oneShot/argus_oneshot
I also tried with succces:
sudo apt install nvidia-l4t-jetson-multimedia-api

Am I missing something? Can someone explain how to setup libArgus to be used as a package? Or do I have to flash a specific image?

Hi,
Please modify the first line of:
argus_camera/FindTegraMM.cmake at master · NVIDIA-AI-IOT/argus_camera · GitHub
to

set(TegraMM_ROOT $ENV{HOME}/jetson_multimedia_api)

and try again. tegra_multimedia_api is renamed to jetson_multimedia_api in later releases.