Problems with installing jetson inference

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 :)

Hi Alexe, you were using a fork of the repo that was outdated and hadn’t been updated for JetPack 4.x.

Please try to see if you can build the repo from master: https://github.com/dusty-nv/jetson-inference

Hi Dusty,

thank you very much for your really fast answer. i tried the things you told me, but there is still a mistake somewhere.
There is still the warning about the C++11 thing and also this:

[ 43%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Thread.cpp.o
[ 44%] Linking CXX shared library …/aarch64/lib/libjetson-utils.so
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
utils/CMakeFiles/jetson-utils.dir/build.make:743: recipe for target ‘aarch64/lib/libjetson-utils.so’ failed
make[2]: *** [aarch64/lib/libjetson-utils.so] Error 1
CMakeFiles/Makefile2:599: recipe for target ‘utils/CMakeFiles/jetson-utils.dir/all’ failed
make[1]: *** [utils/CMakeFiles/jetson-utils.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

do you have any suggestions what to do?

I was googeling the Problem i had and found some answer on this webpage https://github.com/dusty-nv/jetson-inference/issues/309
My Output looks like this: lrwxrwxrwx 1 root root 41 may 10 09:27 /usr/lib/aarch64-linux-gnu/libGL.so -> /usr/lib/aarch64-linux-gnu/tegra/libGL.so
lrwxrwxrwx 1 root root 14 ago 15 2018 /usr/lib/aarch64-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r–r-- 1 root root 972968 ago 15 2018 /usr/lib/aarch64-linux-gnu/libGL.so.1.0.0

but i’m not sure if this is a problem or not(if it’s one, then do you have any hint what to do?), could you please help me?