Hi, I’m trying to compile the following trivial code (using g++ file_name.cpp):
[Context - I’m trying to create an inference script that uses a tensor-rt engine file on a Jetson Xavier]
#include <NvInfer.h>
int main(int argc, char *argv[]) {
return 0;
}
But I get the following error.
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:56:10: fatal error: cuda_runtime_api.h: No such file or directory
include <cuda_runtime_api.h>
I’ve tried updating Path variables, and this is what’s in my ~/.bashrc file.
export CUDA=10.2
export PATH=/usr/local/cuda-$CUDA/bin:$PATH
export CUDA_PATH=/usr/local/cuda-$CUDA
export CUDA_HOME=/usr/local/cuda-$CUDA
export LIBRARY_PATH=$CUDA_HOME/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda-$CUDA/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
It hasn’t fixed my issue. Could someone please help me resolve this?