Hi SteveNV,
Thank you for support!
I found this document:
https://www.nvidia.com/en-us/nvdocs/drive/dav/dwx_samples_building_x86/
When I run commands, I get errors.
Seems to me that the following variables are missing (missing: EGL_LIBRARY EGL_INCLUDE_DIR) and when I run make -j command, the compiler cannot find some files (see the output below).
Could you please assist with this issue ?
magna@MVBRWS019:~/NVIDIA/build$ sudo cmake -DCMAKE_BUILD_TYPE=Release /usr/local/driveworks/samples
– Could NOT find EGL (missing: EGL_LIBRARY EGL_INCLUDE_DIR)
– Default - Building with TRT version 5.0.3.2 and cudnn version 7.3
– Building GLFW for X11 (static)
– Driveworks Samples install dir: /home/magna/NVIDIA/build/install
– Found Driveworks
– Configuring done
– Generating done
– Build files have been written to: /home/magna/NVIDIA/build
magna@MVBRWS019:~/NVIDIA/build$ sudo make -j
[ 1%] Built target samples_allocator
[ 3%] Built target lodepng-src
[ 4%] Built target glew-src
[ 4%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/context.c.o
[ 5%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/init.c.o
[ 6%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/monitor.c.o
Scanning dependencies of target sample_imu_plugin
[ 7%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/vulkan.c.o
[ 7%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/xkb_unicode.c.o
[ 7%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/input.c.o
[ 7%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/window.c.o
[ 7%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_tls.c.o
[ 8%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_time.c.o
[ 8%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_monitor.c.o
[ 9%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_window.c.o
[ 9%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/egl_context.c.o
[ 10%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/glx_context.c.o
[ 11%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_init.c.o
[ 12%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/linux_joystick.c.o
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/init.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/xkb_unicode.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/posix_tls.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/monitor.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/context.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/vulkan.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/input.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/egl_context.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
[ 14%] Built target update_cuda_deps
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_window.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:86: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/init.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/init.c.o] Error 1
make[2]: *** Waiting for unfinished jobs…
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:134: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/monitor.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/monitor.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:158: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/vulkan.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/vulkan.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:278: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/xkb_unicode.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/xkb_unicode.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:110: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/input.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/input.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:350: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_tls.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_tls.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:398: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/egl_context.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/egl_context.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:62: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/context.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/context.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:254: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_window.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_window.c.o] Error 1
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/window.c:29:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:182: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/window.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/window.c.o] Error 1
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:230: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_monitor.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_monitor.c.o] Error 1
[ 14%] Building CXX object src/sensors/plugins/imu/CMakeFiles/sample_imu_plugin.dir/main.cpp.o
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:206: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_init.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_init.c.o] Error 1
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/linux_joystick.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/glx_context.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:302: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/linux_joystick.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/linux_joystick.c.o] Error 1
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:374: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/glx_context.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/glx_context.c.o] Error 1
In file included from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/internal.h:163:0,
from /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/posix_time.c:28:
/usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_platform.h:39:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
compilation terminated.
3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/build.make:326: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_time.c.o’ failed
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_time.c.o] Error 1
CMakeFiles/Makefile2:218: recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/all’ failed
make[1]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 15%] Linking CXX shared library libsample_imu_plugin.so
[ 15%] Built target sample_imu_plugin
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2