Hi,
I installed successfully NIVIDIA Drive using SDK Manager installation guide (also flashed NIVIDIA drive device).
Hardware connected properly and I have communication between host and NVIDIA Drive device.
When I run the following command on local host machine, I get error:
cd /usr/local/driveworks/bin
./sample_lane_detection
./sample_lane_detection: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory
When I run the same command on NVIDIA Drive device, I get the following error:
nvidia@tegra-ubuntu:/usr/local/driveworks/bin$ sudo ./sample_lane_detection
WindowGLFW: Failed initialize GLFW
terminate called after throwing an instance of ‘std::exception’
what(): std::exception
Aborted (core dumped)
Need your assistance for help.
Thanks!
The libcuda.so.1 is placed here:
/./home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/libcuda.so.1
Dear yaroslav.taran,
To run DriveWorks samples on HostPC, you should re-compile DriveWorks samples on HostPC.
Please see “Building for the Linux Host System” in DriveWorks docs.
And could you please refer to below tutorial for your topic? Thanks.
https://developer.nvidia.com/drive/learn/tutorial-NsightEclipse
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
Dear yaroslav.taran,
I can’t access the link.
Could you please check x86 Host System Prerequisites in Getting Started in DriveWorks docs? Thanks.
I tried from another link,
https://developer.nvidia.com/drive/learn/tutorial-NsightEclipse
I loaded project (sapmples-nsight/samples) to eclipse using this tutorial, configured properly and tried to compile.
Still get errors. The errors are the same as when I tried to run it from command line from the document that you directed me.
I do have all 86 Host System Prerequisites according to installation guide. (ubuntu 16.04, 500 gigabytes of free memory, RAM 16 Gbyte), everything is upgraded.
Why do I have those errors in eclipse ?
Description Resource Path Location Type
fatal error: X11/Xcursor/Xcursor.h: No such file or directory x11_platform.h /test/3rdparty/src/glfw/3.2-screen/src line 39 C/C++ Problem
make: *** [all] Error 2 test C/C++ Problem
make[1]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/all] Error 2 test C/C++ Problem
make[2]: *** [3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/context.c.o] Error 1 test C/C++ Problem
recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/context.c.o’ failed build.make /test/build-host/3rdparty/src/glfw/CMakeFiles/glfw-x11.dir line 62 C/C++ Problem
recipe for target ‘3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/all’ failed Makefile2 /test/build-host/CMakeFiles line 218 C/C++ Problem
recipe for target ‘all’ failed Makefile /test/build-host line 127 C/C++ Problem
Dear yaroslav.taran,
Thank you for your checking.
Could you install the following package and re-try it?
You may also need to install (using apt-get install) the following packages:
libx11-dev
libxrandr-dev
libxcursor-dev
libxxf86vm-dev
libxinerama-dev
libxi-dev
libglu1-mesa-dev
libglew-dev
libgles2-mesa-dev
I think you forgot to send me a package that you wanted me to install.
I installed the list of libraries that you mentioned above.
I have now different errors.
Could you please review them and help with solution ?
Thanks!
11:27:24 **** Build of configuration build-host for project Nsight Samples ****
make all
[ 1%] Dependencies for /home/magna/samples-nsight/samples/build-host/src/imageprocessing/stereo/CMakeFiles/sample_stereo_disparity.dir//gen_utils.cu.o.depend.stamp
[ 2%] Dependencies for /home/magna/samples-nsight/samples/build-host/src/image/image_common/CMakeFiles/dw_samples_image_common.dir//gen_utils.cu.o.depend.stamp
[ 2%] Built target update_cuda_deps
[ 3%] Building CXX object 3rdparty/src/lodepng/CMakeFiles/lodepng-src.dir/src/lodepng.cpp.o
[ 4%] Linking CXX static library liblodepng-src.a
[ 4%] Built target lodepng-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
[ 5%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/input.c.o
[ 6%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/monitor.c.o
[ 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/window.c.o
[ 8%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/x11_init.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/xkb_unicode.c.o
[ 10%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/linux_joystick.c.o
[ 11%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_time.c.o
[ 11%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/posix_tls.c.o
[ 12%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/glx_context.c.o
[ 12%] Building C object 3rdparty/src/glfw/CMakeFiles/glfw-x11.dir/3.2-screen/src/egl_context.c.o
[ 12%] Built target glfw-x11
[ 13%] Linking C static library libglfw-src.a
[ 13%] Built target glfw-src
[ 13%] Building C object 3rdparty/src/glew/CMakeFiles/glew-src.dir/src/glew.c.o
[ 14%] Linking C static library libglew-src.a
[ 14%] Built target glew-src
[ 15%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/SampleFramework.cpp.o
[ 15%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/DriveWorksSample.cpp.o
[ 16%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/ProgramArguments.cpp.o
[ 16%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/Window.cpp.o
[ 17%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/Grid.cpp.o
[ 17%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/WindowGLFW.cpp.o
[ 18%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/MathUtils.cpp.o
[ 19%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/MouseView3D.cpp.o
[ 19%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/Log.cpp.o
[ 20%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/ProfilerCUDA.cpp.o
[ 20%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/SimpleCamera.cpp.o
[ 21%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/SimpleRenderer.cpp.o
[ 22%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/SimpleRecordingPlayer.cpp.o
[ 22%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/ScreenshotHelper.cpp.o
[ 23%] Building CXX object src/framework/CMakeFiles/samples_framework.dir/RenderUtils.cpp.o
[ 23%] Linking CXX static library libsamples_framework.a
[ 23%] Built target samples_framework
[ 23%] Building CXX object src/framework/CMakeFiles/samples_allocator.dir/Allocator.cpp.o
[ 24%] Linking CXX static library libsamples_allocator.a
[ 24%] Built target samples_allocator
[ 25%] Building CXX object src/egomotion/CMakeFiles/sample_egomotion.dir/main.cpp.o
[ 25%] Linking CXX executable sample_egomotion
/usr/bin/ld: warning: libcudart.so.10.0, needed by /usr/local/driveworks-2.0/targets/x86_64-Linux/lib/libdriveworks.so, may conflict with libcudart.so.7.5
…/…/3rdparty/src/glfw/libglfw-src.a(x11_init.c.o): In function initExtensions': /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:475: undefined reference to
XRRQueryExtension’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:479: undefined reference to XRRQueryVersion' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:496: undefined reference to
XRRGetScreenResources’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:499: undefined reference to XRRGetCrtcGammaSize' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:510: undefined reference to
XRRFreeScreenResources’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:512: undefined reference to XRRSelectInput' src/egomotion/CMakeFiles/sample_egomotion.dir/build.make:108: recipe for target 'src/egomotion/sample_egomotion' failed /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:516: undefined reference to
XineramaQueryExtension’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:520: undefined reference to XineramaIsActive' CMakeFiles/Makefile2:446: recipe for target 'src/egomotion/CMakeFiles/sample_egomotion.dir/all' failed Makefile:127: recipe for target 'all' failed ../../3rdparty/src/glfw/libglfw-src.a(x11_init.c.o): In function
_glfwCreateCursorX11’:
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:682: undefined reference to XcursorImageCreate' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:702: undefined reference to
XcursorImageLoadCursor’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c:703: undefined reference to XcursorImageDestroy' ../../3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function
_glfwSetVideoModeX11’:
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:117: undefined reference to XRRGetScreenResources' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:118: undefined reference to
XRRGetCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:119: undefined reference to XRRGetOutputInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:140: undefined reference to
XRRSetCrtcConfig’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:150: undefined reference to XRRFreeOutputInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:151: undefined reference to
XRRFreeCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:152: undefined reference to XRRFreeScreenResources' ../../3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function
_glfwRestoreVideoModeX11’:
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:177: undefined reference to XRRGetScreenResources' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:178: undefined reference to
XRRGetCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:180: undefined reference to XRRSetCrtcConfig' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:189: undefined reference to
XRRFreeCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:190: undefined reference to XRRFreeScreenResources' ../../3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function
_glfwPlatformGetMonitors’:
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:212: undefined reference to XRRGetScreenResources' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:214: undefined reference to
XRRGetOutputPrimary’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:220: undefined reference to XineramaQueryScreens' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:224: undefined reference to
XRRGetCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:231: undefined reference to XRRGetOutputInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:235: undefined reference to
XRRFreeOutputInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:266: undefined reference to XRRFreeOutputInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:275: undefined reference to
XRRFreeCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:278: undefined reference to XRRFreeScreenResources' ../../3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function
_glfwPlatformGetMonitorPos’:
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:321: undefined reference to XRRGetScreenResourcesCurrent' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:322: undefined reference to
XRRGetCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:329: undefined reference to XRRFreeCrtcInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:330: undefined reference to
XRRFreeScreenResources’
…/…/3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function _glfwPlatformGetVideoModes': /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:347: undefined reference to
XRRGetScreenResourcesCurrent’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:348: undefined reference to XRRGetCrtcInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:349: undefined reference to
XRRGetOutputInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:375: undefined reference to XRRFreeOutputInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:376: undefined reference to
XRRFreeCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:377: undefined reference to XRRFreeScreenResources' ../../3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function
_glfwPlatformGetVideoMode’:
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:396: undefined reference to XRRGetScreenResourcesCurrent' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:397: undefined reference to
XRRGetCrtcInfo’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:401: undefined reference to XRRFreeCrtcInfo' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:402: undefined reference to
XRRFreeScreenResources’
…/…/3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function _glfwPlatformGetGammaRamp': /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:419: undefined reference to
XRRGetCrtcGammaSize’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:421: undefined reference to XRRGetCrtcGamma' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:430: undefined reference to
XRRFreeGamma’
…/…/3rdparty/src/glfw/libglfw-src.a(x11_monitor.c.o): In function _glfwPlatformSetGammaRamp': /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:451: undefined reference to
XRRAllocGamma’
/home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:457: undefined reference to XRRSetCrtcGamma' /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_monitor.c:458: undefined reference to
XRRFreeGamma’
…/…/3rdparty/src/glfw/libglfw-src.a(x11_window.c.o): In function processEvent': /home/magna/samples-nsight/samples/3rdparty/src/glfw/3.2-screen/src/x11_window.c:994: undefined reference to
XRRUpdateConfiguration’
collect2: error: ld returned 1 exit status
make[2]: *** [src/egomotion/sample_egomotion] Error 1
make[1]: *** [src/egomotion/CMakeFiles/sample_egomotion.dir/all] Error 2
make: *** [all] Error 2
11:27:34 Build Finished (took 10s.531ms)
It seems you have an old CUDA installation on your host, namely 7.5. Please uninstall it to get rid of the warning:
/usr/bin/ld: warning: libcudart.so.10.0, needed by /usr/local/driveworks-2.0/targets/x86_64-Linux/lib/libdriveworks.so, may conflict with libcudart.so.7.5
Furthermore there are reference problems for X11 related files, please make sure you have xorg-dev and libxcursor-dev as well as libxinerama-dev installed and also included when compiling.
Fabian
Hi Fabian.
I am still struggling to run the samples.
I successfully built the files for my local machine (Ubuntu 16.04)in build-x86.
I have a simple standard video card on my Ubuntu PC.
1 . Actually I cannot run samples without a GPU (NIVIDIA Video card) installed on my PC. Is it correct ?
- When I tried to build binaries to run on development Nvidia Drive kit the following command created errors. In the video on the site (NVIDIA DRIVE AGX Developer Kit - How to set up) I used the same command but modified the path for my local PC drive.
I get this error (see the full log below). How to resolve it?
CMake Error at cmake/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found
version “10.1”)
Full Report:
magna@MVBRWS019:~/nvidia/dw_samples/build-agx$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=…/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=/home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux …
– VIBRANTE_PDK = /home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux
– VIBRANTE_PDK_BRANCH = 5.1.0.2
– Vibrante version 5.1.0.2
– VIBRANTE_PDK = /home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux
– Vibrante version 5.1.0.2
– The C compiler identification is GNU 4.9.4
– The CXX compiler identification is GNU 4.9.4
– Check for working C compiler: /home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc
– Check for working C compiler: /home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++
– Check for working CXX compiler: /home/magna/nvidia/nvidia_sdk/DRIVE_Software_9.0_Linux_hyperion_E3550/DriveSDK/drive-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
CMake Error at cmake/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found
version “10.1”)
Call Stack (most recent call first):
cmake/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
cmake/FindCUDA.cmake:992 (find_package_handle_standard_args)
CMakeLists.txt:21 (find_package)
Hi,
Please allow me to be short in this:
-
Actually I cannot run samples without a GPU (NIVIDIA Video card) installed on my PC.
True
-
Seems you are missing the cudart
library which you can resolve by either installing or linking the already installed library to is correctly. I would suggest you to check the library paths for any installed software.
Fabian