hi,
i’m a complete beginner in this Topic… sorry if i’m asking a stupid question.
i have a Jetson TX2 flashed with Jetpack 4.2. i wanted to test a project with the ZED-camera, but therefore i need several programs to run.
i followed the guide on this page https://github.com/yankailab/jetson-inference-batch. the cmake worked without a mistake, but when i wanted to start the make there is the following error Message:
[ 2%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaYUV-YV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 5%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_imageNet.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 7%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaFont.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 10%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaNormalize.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 12%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaOverlay.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
/home/nvidia/Downloads/jetson-inference-batch/util/cuda/cudaOverlay.cu(47): warning: variable “thick” was declared but never referenced
/home/nvidia/Downloads/jetson-inference-batch/util/cuda/cudaOverlay.cu(26): warning: function “eq_less” was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name
/home/nvidia/Downloads/jetson-inference-batch/util/cuda/cudaOverlay.cu(47): warning: variable “thick” was declared but never referenced
/home/nvidia/Downloads/jetson-inference-batch/util/cuda/cudaOverlay.cu(26): warning: function “eq_less” was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 15%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaRGB.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 17%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaResize.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 20%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaYUV-NV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 23%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaYUV-YUYV.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 25%] Building CXX object CMakeFiles/jetson-inference.dir/tensorNet.cpp.o
/home/nvidia/Downloads/jetson-inference-batch/tensorNet.cpp: In member function ‘bool tensorNet::LoadNetwork(const char*, const char*, const char*, const char*, const std::vector<std::__cxx11::basic_string >&, uint32_t)’:
/home/nvidia/Downloads/jetson-inference-batch/tensorNet.cpp:220:93: error: ‘NV_GIE_VERSION’ was not declared in this scope
ntf(LOG_GIE “TensorRT version %u.%u, build %u\n”, NV_TENSORRT_MAJOR, NV_TENSORRT_MINOR, NV_GIE_VERSION);
^~~~~~~~~~~~~~
/home/nvidia/Downloads/jetson-inference-batch/tensorNet.cpp:220:93: note: suggested alternative: ‘MINOR_VERSION’
ntf(LOG_GIE “TensorRT version %u.%u, build %u\n”, NV_TENSORRT_MAJOR, NV_TENSORRT_MINOR, NV_GIE_VERSION);
^~~~~~~~~~~~~~
MINOR_VERSION
CMakeFiles/jetson-inference.dir/build.make:1743: recipe for target ‘CMakeFiles/jetson-inference.dir/tensorNet.cpp.o’ failed
make[2]: *** [CMakeFiles/jetson-inference.dir/tensorNet.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/jetson-inference.dir/all’ failed
make[1]: *** [CMakeFiles/jetson-inference.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2
Does someone have any idea how to fix the C++11 warning? And more important the other mistake which stopped the make process. i was searching the whole day in the forums, but didn’t find something to fix it. thank you very much in advance :)