Running detectnet-camera.cpp on Nano

I want to make changes in detectnet and run it on C++. Issue is that I couldn’t find a way to run detectnet-camera.cpp both with CMake (with the customized CMakeLists.txt below) and gcc commands. Here is the error message and my CMakeLists.txt

/home/jetson/jetson-inference/examples/detectnet-camera/detectnet-camera.cpp:23:10: fatal error: gstCamera.h: No such file or directory
#include “gstCamera.h”


cmake_minimum_required(VERSION 2.8)
file(GLOB detectnetCameraSources *.cpp)
file(GLOB detectnetCameraIncludes *.h )

cuda_add_executable(detectnet-camera ${detectnetCameraSources})

target_link_libraries(detectnet-camera jetson-inference)
target_link_libraries(detectnet-camera jetson-utils)

install(TARGETS detectnet-camera DESTINATION bin)

Are you trying to use this CMakeLists.txt standalone, or as part of the master jetson-inference project?

You might want to try changing the #include in detectnet-camera.cpp to “#include <jetson-utils/gstCamera.h>”