I want to use the TensorRT library in a C++ program. So, I add the following line in my CMakeLists.txt file :
When I run the cmake command, I’ve got an error :
CMake Error at CMakeLists.txt:18 (find_package): By not providing "FindTensorRT.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "TensorRT", but CMake did not find one. Could not find a package configuration file provided by "TensorRT" with any of the following names: TensorRTConfig.cmake tensorrt-config.cmake Add the installation prefix of "TensorRT" to CMAKE_PREFIX_PATH or set "TensorRT_DIR" to a directory containing one of the above files. If "TensorRT" provides a separate development package or SDK, be sure it has been installed.
My configurations is as follow :
Jetson Orin nano Developer Kit (install from the SD Card Image Method)
TensorRT: 220.127.116.11 (the command
dpkg-query -W tensorrt return
I can’t find the
TensorRTConfig.cmake file, the
tensorrt-config.cmake file or the
TensorRT-18.104.22.168 folder. I just have a
tensorrt folder in
cor@wporin:/usr/src/tensorrt$ ls bin data samples
Is the TensorRt library really installed? What am I missing here?