(SOLVED)libcudart.so: error adding symbols: File in wrong format

Hi!
I try to do the cross-compile for DPX2 following the README.md.

$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_TOOLCHAIN_FILE=/path/to/samples/cmake/Toolchain-V4L.cmake \
        -DVIBRANTE_PDK:STRING=/path/to/drive-t186ref-linux \
        /path/to/driveworks/samples/folder
$ make -j
$ make install

I success to cmake.

-- VIBRANTE_PDK = /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux
-- Vibrante version 5.0.5.0
-- Found TensorRT:
--  - Includes: /usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/include
--  - Libraries: /usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/lib/libnvinfer.so;/usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/lib/libnvcaffe_parser.so
-- Found libcudnn:
--  - Includes: /usr/local/cuda-9.0/include
--  - Libraries: /usr/local/cuda-9.0/lib64/libcudnn.so
-- Cross Compiling for Vibrante
-- VIBRANTE_PDK_BRANCH = 5.0.5.0
-- Found vibrante lib: /home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib/libudev.so
-- Found vibrante lib: /home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib/libusb-1.0.so
-- Found vibrante_Xlib: /home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXrandr.so
-- Found vibrante_Xlib: /home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXinerama.so
-- Found vibrante_Xlib: /home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXi.so
-- Found vibrante_Xlib: /home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXcursor.so
-- Driveworks Samples install dir: /home/mec-lab/LBX/driveworks-0.6/build_PX2/install
-- Cross Compiling for Vibrante
-- Found Driveworks 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mec-lab/LBX/driveworks-0.6/build_PX2

However when I try to make it, it keep on showing errors like below.

/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
/usrcollect2: error: ld returned 1 exit status
/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status

I already have install CUDA, here is my version.

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Sun_Oct_22_03:08:45_CDT_2017
Cuda compilation tools, release 9.0, V9.0.225

Please give me some solutions, THX!

Dear imggly,
Flashing the board is required to setup cross compilation environment on host. Did you flash the board?
Do you see cuda lib files for aarch at /usr/local/cuda-9.0/targets/aarch64-linux/lib/ ?
Could you check if you have followed the cross compilation instructions given at /usr/local/driveworks-0.6/doc/nvdwx_html/dwx_samples_building.html#cross-compilation

Dear SivaRamaKrishna
Yes! I followed that document and installed the CUDA cross-compilation libraries.
I can find libs at that path.

To make sure that I have done that before, I just tried to re-download the cross-compilation libraries again.
This time when I do cmake, it showed some warnings.

CMake Warning at src/egomotion/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_egomotion
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/info/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_sensors_info
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/gps/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_gps_logger
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/imu/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_imu_logger
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_replay/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_camera_replay
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_seek/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_camera_seek
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_multiple_replay/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_camera_multiple_replay because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_usb/CMakeLists.txt:26 (add_executable):
  Cannot generate a safe runtime search path for target sample_camera_usb
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_pointgrey/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_camera_pointgrey because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/record/CMakeLists.txt:23 (add_executable):
  Cannot generate a safe runtime search path for target sample_record because
  there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/canbus/logger/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_canbus_logger
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/canbus/interpreter/CMakeLists.txt:26 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_canbus_interpreter because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/lidar/lidar_replay/CMakeLists.txt:28 (add_executable):
  Cannot generate a safe runtime search path for target sample_lidar_replay
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/radar/radar_replay/CMakeLists.txt:29 (add_executable):
  Cannot generate a safe runtime search path for target sample_radar_replay
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/third_party_camera/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_third_party_camera because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_gmsl/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target sample_camera_gmsl
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_gmsl_custom/CMakeLists.txt:30 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_camera_gmsl_custom because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_multiple_gmsl/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_camera_multiple_gmsl because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sensors/camera_gmsl_raw/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_camera_gmsl_raw because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/features/camera_tracker/CMakeLists.txt:35 (add_executable):
  Cannot generate a safe runtime search path for target sample_camera_tracker
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/features/camera_scaling_tracker/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_camera_scaling_tracker because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/mapping/occupancy_grid/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target sample_occupancy_grid
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/rigconfiguration/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_rig_configuration because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/renderer/CMakeLists.txt:27 (add_executable):
  Cannot generate a safe runtime search path for target sample_renderer
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/sfm/CMakeLists.txt:35 (add_executable):
  Cannot generate a safe runtime search path for target sample_sfm because
  there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/dnn/sample_object_detector/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_object_detector because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/dnn/sample_object_tracker/CMakeLists.txt:27 (add_executable):
  Cannot generate a safe runtime search path for target sample_object_tracker
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/dnn/sample_object_dwdetector/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_object_dwdetector because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/laneDetection/laneDetection/CMakeLists.txt:26 (add_executable):
  Cannot generate a safe runtime search path for target sample_lane_detection
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/colorcorrection/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_color_correction because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target sample_isp because
  there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/isp/CMakeLists.txt:24 (cuda_add_executable)

CMake Warning at src/rectifier/CMakeLists.txt:31 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_video_rectifier because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/ipc/CMakeLists.txt:20 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_ipc_socketclientserver because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/hello_world/CMakeLists.txt:24 (add_executable):
  Cannot generate a safe runtime search path for target sample_hello_world
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_image_streamer_multi because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/image/image_streamer_multi/CMakeLists.txt:25 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_image_streamer_simple because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/image/image_streamer_simple/CMakeLists.txt:25 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target sample_image_capture
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/image/image_capture/CMakeLists.txt:21 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_image_streamer_cross because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/image/image_streamer_cross_process/CMakeLists.txt:24 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_stereo_disparity because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/stereo/disparity/CMakeLists.txt:25 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_stereo_rectifier because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/stereo/stereoRectifier/CMakeLists.txt:25 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_stereo_camera_usb because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/stereo/camera/camera_usb/CMakeLists.txt:25 (cuda_add_executable)

CMake Warning at src/freespace/CMakeLists.txt:25 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_freespace_detection because there is a cycle in the constraint
  graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target sample_drivenet
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/drivenet/drivenet/CMakeLists.txt:23 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_drivenet_multigpu because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/drivenet/drivenet_multiGPU/CMakeLists.txt:23 (cuda_add_executable)

CMake Warning at cmake/FindCUDA.cmake:1813 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_drivenetNcameras because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 1 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 0 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/drivenet/drivenet_ncameras/CMakeLists.txt:23 (cuda_add_executable)

CMake Warning at src/maps/CMakeLists.txt:28 (add_executable):
  Cannot generate a safe runtime search path for target sample_maps because
  there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/template/CMakeLists.txt:29 (add_executable):
  Cannot generate a safe runtime search path for target sample_template
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/icp/CMakeLists.txt:27 (add_executable):
  Cannot generate a safe runtime search path for target sample_icp because
  there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/lidar_accumulator/CMakeLists.txt:28 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_lidar_accumulator because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/calibration/camera/CMakeLists.txt:27 (add_executable):
  Cannot generate a safe runtime search path for target
  sample_calibration_camera because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

CMake Warning at src/vehicleio/CMakeLists.txt:30 (add_executable):
  Cannot generate a safe runtime search path for target sample_vehicleio
  because there is a cycle in the constraint graph:

    dir 0 is [/usr/local/driveworks-0.6/targets/aarch64-linux/lib]
    dir 1 is [/usr/local/cuda-9.0/lib64]
      dir 2 must precede it due to runtime library [libcublas.so.9.0]
    dir 2 is [/usr/local/cuda-9.0/targets/aarch64-linux/lib]
      dir 1 must precede it due to runtime library [libcudart.so.9.0]
    dir 3 is [/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target]
      dir 5 must precede it due to runtime library [libXrandr.so.2]
    dir 4 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib]
    dir 5 is [/home/mec-lab/LBX/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib]

  Some of these libraries may not be found correctly.

-- Generating done
-- Build files have been written to: /home/mec-lab/LBX/driveworks-0.6/build_PX2

And I still can not make it. The same problem exists.

Dear imugly1029,
I am wondering why CUDA host libs are coming is error log. Can you set LD_LIBRARY_PATH to aarch CUDA libraries?
There is similar topic in forum at https://devtalk.nvidia.com/default/topic/1042526/driveworks-1-2-samples-compilation-error/#529098

Dear SivaRamaKrishna
I changed the CUDA environment set up in bashrc and source it.

export LD_LIBRARY_PATH=/usr/local/cuda/targets/aarch64-linux/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-9.0/bin:$PATH

The cmake keep showing that weird warnings
Here is my cmake command:

~$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-0.6/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux  /home/mec-lab/LBX/driveworks-0.6/samples/

And still can’t make it.

By the way, I ever install driveworks-1.2 on my host, and I uninstall it to re-install driveworks-0.6. Is this something to do with those problems?

One more thing, in that document, the CUDA cross-compilation libraries should be cuda-cross-aarch64-9-0 not cuda-cross-aarch64-8-0 right? I installed cuda-cross-aarch64-9-0.

1. On the host system, install CUDA cross-compilation libraries.

       $ sudo dpkg --add-architecture arm64
       $ sudo apt-get update
       $ sudo apt-get install cuda-cross-aarch64-8-0

   @note Some repositories may not have binaries for arm64 and apt-get
   update causes errors. To prevent these errors, edit
   `/etc/apt/sources.list` and files under `/etc/apt/sources.list.d/` and add
   `[arch=amd64,i386]` into each line starting with `deb`. Ensure you specify
   `amd64` and not `arm64`

Dear imugly1029,
Do you still see the same error when you make? Can you please attach make log?

Dear SivaRamaKrishna
Yes they seemed to be the same. This are those errors.

[  2%] Built target update_cuda_deps
[ 13%] Built target dw_samples_framework
[ 14%] Linking CXX executable sample_imu_logger
[ 15%] Linking CXX executable sample_sensors_info
[ 16%] Linking CXX executable sample_canbus_logger
[ 16%] Linking CXX executable sample_egomotion
[ 17%] Linking CXX executable sample_camera_gmsl
[ 16%] Linking CXX executable sample_camera_seek
[ 18%] Linking CXX executable sample_record
[ 19%] Linking CXX executable sample_camera_multiple_gmsl
[ 19%] Linking CXX executable sample_occupancy_grid
[ 20%] Linking CXX executable sample_gps_logger
[ 21%] Linking CXX executable sample_icp
[ 22%] Linking CXX executable sample_camera_multiple_replay
[ 23%] Linking CXX executable sample_camera_gmsl_raw
[ 24%] Linking CXX executable sample_maps
[ 25%] Built target dw_samples_laneDetection_common
[ 25%] Linking CXX executable sample_camera_usb
[ 25%] Linking CXX executable sample_third_party_camera
[ 27%] Built target dw_samples_drivenet_common
[ 26%] Linking CXX executable sample_isp
[ 28%] Linking CXX executable sample_camera_pointgrey
[ 29%] Linking CXX executable sample_renderer
[ 30%] Linking CXX executable sample_camera_tracker
[ 23%] Linking CXX executable sample_camera_replay
[ 31%] Linking CXX executable sample_canbus_interpreter
//usr/local/[ 32%] Linking CXX executable sample_template
[ 33%] Linking CXX executable sample_video_rectifier
[ 32%] Linking CXX executable sample_hello_world
cudausr/-9.0local//lib64cuda/-libcudart.so9.0:/lib64 error/ libcudart.soadding:  symbolserror:  addingFile  symbolsin:  wrongFile  formatin
 wrongcollect2: error: ld returned 1 exit status
src/sensors/info/CMakeFiles/sample_sensors_info.dir/build.make:107: recipe for target 'src/sensors/info/sample_sensors_info' failed
make[2]: *** [src/sensors/info/sample_sensors_info] Error 1
CMakeFiles/Makefile2:333: recipe for target 'src/sensors/info/CMakeFiles/sample_sensors_info.dir/all' failed
make[1]: *** [src/sensors/info/CMakeFiles/sample_sensors_info.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
[ 34%] Linking CXX executable sample_lidar_accumulator
[ 35%] Linking CXX executable sample_lidar_replay
src/sensors/imu/CMakeFiles/sample_imu_logger.dir/build.make:107: recipe for target 'src/sensors/imu/sample_imu_logger' failed
make[2]: *** [src/sensors/imu/sample_imu_logger] Error 1
CMakeFiles/Makefile2:443: recipe for target 'src/sensors/imu/CMakeFiles/sample_imu_logger.dir/all' failed
make[1]: *** [src/sensors/imu/CMakeFiles/sample_imu_logger.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
[ 38%] Linking CXX executable sample_vehicleio
[ 39%] Linking CXX executable sample_camera_gmsl_custom
[ 36%] Linking CXX executable sample_color_correction
[ 36%] Linking CXX executable sample_image_streamer_cross
[ 39%] Linking CXX executable sample_rig_configuration
[ 37%] Linking CXX executable sample_ipc_socketclientserver
 format
collect2: error: ld returned 1 exit status
src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/build.make:107: recipe for target 'src/sensors/canbus/logger/sample_canbus_logger' failed
make[2]: *** [src/sensors/canbus/logger/sample_canbus_logger] Error 1
CMakeFiles/Makefile2:828: recipe for target 'src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/all' failed
make[1]: *** [src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/all] Error 2
[ 41%] Built target dw_samples_dnn_common
src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/build.make:108: recipe for target 'src/sensors/camera_gmsl/sample_camera_gmsl' failed
make[2]: *** [src/sensors/camera_gmsl/sample_camera_gmsl] Error 1
CMakeFiles/Makefile2:1103: recipe for target 'src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/all' failed
make[1]: *** [src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/build.make:107: recipe for target 'src/mapping/occupancy_grid/sample_occupancy_grid' failed
make[2]: *** [src/mapping/occupancy_grid/sample_occupancy_grid] Error 1
CMakeFiles/Makefile2:1472: recipe for target 'src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/all' failed
make[1]: *** [src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/all] Error 2
[ 42%] Built target dw_samples_image_common
[ 43%] Linking CXX executable sample_camera_scaling_tracker
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
[ 44%] Linking CXX executable sample_sfm
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong formatsrc/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/build.make:107: recipe for target 'src/sensors/camera_seek/sample_camera_seek' failed

make[2]: *** [src/sensors/camera_seek/sample_camera_seek] Error 1
collect2: error: ld returned 1 exit status
CMakeFiles/Makefile2:553: recipe for target 'src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/all' failed
make[1]: *** [src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/all] Error 2
[ 46%] Built target dw_samples_stereo_common
src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/build.make:159: recipe for target 'src/features/camera_tracker/sample_camera_tracker' failed
make[2]: *** [src/features/camera_tracker/sample_camera_tracker] Error 1
CMakeFiles/Makefile2:1344: recipe for target 'src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/all' failed
make[1]: *** [src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/all] Error 2
src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/build.make:108: recipe for target 'src/sensors/camera_multiple_gmsl/sample_camera_multiple_gmsl' failed
make[2]: *** [src/sensors/camera_multiple_gmsl/sample_camera_multiple_gmsl] Error 1
CMakeFiles/Makefile2:1213: recipe for target 'src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/all' failed
make[1]: *** [src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/all] Error 2
[ 46%] Linking CXX executable sample_radar_replay
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/build.make:107: recipe for target 'src/sensors/camera_replay/sample_camera_replay' failed
make[2]: *** [src/sensors/camera_replay/sample_camera_replay] Error 1
CMakeFiles/Makefile2:498: recipe for target 'src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/all' failed
make[1]: *** [src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/all] Error 2
src/sensors/record/CMakeFiles/sample_record.dir/build.make:107: recipe for target 'src/sensors/record/sample_record' failed
make[2]: *** [src/sensors/record/sample_record] Error 1
CMakeFiles/Makefile2:773: recipe for target 'src/sensors/record/CMakeFiles/sample_record.dir/all' failed
make[1]: *** [src/sensors/record/CMakeFiles/sample_record.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/src/icp/CMakeFiles/sample_icp.dir/build.make:107: recipe for target 'src/icp/sample_icp' failed
make[2]: *** [src/icp/sample_icp] Error 1
usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/Makefile2:3324: recipe for target 'src/icp/CMakeFiles/sample_icp.dir/all' failed
make[1]: *** [src/icp/CMakeFiles/sample_icp.dir/all] Error 2
src/sensors/gps/CMakeFiles/sample_gps_logger.dir/build.make:107: recipe for target 'src/sensors/gps/sample_gps_logger' failed
make[2]: *** [src/sensors/gps/sample_gps_logger] Error 1
CMakeFiles/Makefile2:388: recipe for target 'src/sensors/gps/CMakeFiles/sample_gps_logger.dir/all' failed
make[1]: *** [src/sensors/gps/CMakeFiles/sample_gps_logger.dir/all] Error 2
/usr/local/cuda-/9.0usr//local/cudalib64-9.0/lib64/libcudart.so/: error libcudart.soadding symbols::  File in wrong errorformat
 adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/isp/CMakeFiles/sample_isp.dir/build.make:110: recipe for target 'src/isp/sample_isp' failed
src/egomotion/CMakeFiles/sample_egomotion.dir/build.make:107: recipe for target 'src/egomotion/sample_egomotion' failed
make[2]: *** [src/egomotion/sample_egomotion] Error 1
make[2]: *** [src/isp/sample_isp] Error 1
CMakeFiles/Makefile2:209: recipe for target 'src/egomotion/CMakeFiles/sample_egomotion.dir/all' failed
make[1]: *** [src/egomotion/CMakeFiles/sample_egomotion.dir/all] Error 2
CMakeFiles/Makefile2:2130: recipe for target 'src/isp/CMakeFiles/sample_isp.dir/all' failed
make[1]: *** [src/isp/CMakeFiles/sample_isp.dir/all] Error 2
/usr/local/cuda/usr-9.0//local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/renderer/CMakeFiles/sample_renderer.dir/build.make:107: recipe for target 'src/renderer/sample_renderer' failed
make[2]: *** [src/renderer/sample_renderer] Error 1
lib64CMakeFiles/Makefile2:1582: recipe for target 'src/renderer/CMakeFiles/sample_renderer.dir/all' failed
make[1]: *** [src/renderer/CMakeFiles/sample_renderer.dir/all] Error 2
/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/build.make:134: recipe for target 'src/sensors/camera_usb/sample_camera_usb' failed
addingmake[2]: *** [src/sensors/camera_usb/sample_camera_usb] Error 1
 symbols: FileCMakeFiles/Makefile2:663: recipe for target 'src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/all' failed
make[1]: *** [src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/all] Error 2
/usr/local/cudasrc/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/build.make:108: recipe for target 'src/sensors/camera_gmsl_raw/sample_camera_gmsl_raw' failed
make[2]: *** [src/sensors/camera_gmsl_raw/sample_camera_gmsl_raw] Error 1
CMakeFiles/Makefile2:1268: recipe for target 'src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/all' failed
make[1]: *** [src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/all] Error 2
/usr/local/cuda-9.0/-lib649.0//lib64/libcudart.so: in wrong  format
error adding symbols: Filecollect2: error: ld returned 1 exit status
 in wrong /usr/local/cuda-9.0/lib64/libcudart.soformat:libcudart.so :error  erroradding  addingsymbols :symbols :File  Filein  inwrong  wrongformat 
format

/usr/local/cudacollect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
-9.0/lib64//usrlibcudart.so/:local /errorcuda -adding9.0 /symbolslib64:/ libcudart.soFile:  inerror  wrong format
adding symbols: Filecollect2: error: ld returned 1 exit status
 in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/template/CMakeFiles/sample_template.dir/build.make:107: recipe for target 'src/template/sample_template' failed
src/hello_world/CMakeFiles/sample_hello_world.dir/build.make:107: recipe for target 'src/hello_world/sample_hello_world' failed
make[2]: *** [src/hello_world/sample_hello_world] Error 1
make[2]: *** [src/template/sample_template] Error 1
src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/build.make:107: recipe for target 'src/sensors/third_party_camera/sample_third_party_camera' failed
make[2]: *** [src/sensors/third_party_camera/sample_third_party_camera] Error 1
src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/build.make:133: recipe for target 'src/sensors/camera_pointgrey/sample_camera_pointgrey' failed
make[2]: *** [src/sensors/camera_pointgrey/sample_camera_pointgrey] Error 1
src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/build.make:107: recipe for target 'src/sensors/camera_multiple_replay/sample_camera_multiple_replay' failed
make[2]: *** [src/sensors/camera_multiple_replay/sample_camera_multiple_replay] Error 1
CMakeFiles/Makefile2:1048: recipe for target 'src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/all' failed
make[1]: *** [src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/all] Error 2
CMakeFiles/Makefile2:3269: recipe for target 'src/template/CMakeFiles/sample_template.dir/all' failed
make[1]: *** [src/template/CMakeFiles/sample_template.dir/all] Error 2
CMakeFiles/Makefile2:608: recipe for target 'src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/all' failed
make[1]: *** [src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/all] Error 2
CMakeFiles/Makefile2:718: recipe for target 'src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/all' failed
make[1]: *** [src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/all] Error 2
CMakeFiles/Makefile2:2295: recipe for target 'src/hello_world/CMakeFiles/sample_hello_world.dir/all' failed
make[1]: *** [src/hello_world/CMakeFiles/sample_hello_world.dir/all] Error 2
collect2: error: ld returned 1 exit status
src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/build.make:133: recipe for target 'src/lidar_accumulator/sample_lidar_accumulator' failed
make[2]: *** [src/lidar_accumulator/sample_lidar_accumulator] Error 1
CMakeFiles/Makefile2:3379: recipe for target 'src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/all' failed
make[1]: *** [src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in /usr/localwrong /cuda-9.0/lib64/libcudart.so:format
 error/usr/local adding symbols: File in wrong format
/cuda-9.0/lib64/collect2: error: ld returned 1 exit status
libcudart.so: error adding symbolscollect2: error: ld returned 1 exit status
src/maps/CMakeFiles/sample_maps.dir/build.make:107: recipe for target 'src/maps/sample_maps' failed
make[2]: *** [src/maps/sample_maps] Error 1
: FileCMakeFiles/Makefile2:3214: recipe for target 'src/maps/CMakeFiles/sample_maps.dir/all' failed
 in wrongmake[1]: *** [src/maps/CMakeFiles/sample_maps.dir/all] Error 2
 format
collect2: error: ld returned 1 exit status
src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/build.make:133: recipe for target 'src/sensors/lidar/lidar_replay/sample_lidar_replay' failed
make[2]: *** [src/sensors/lidar/lidar_replay/sample_lidar_replay] Error 1
src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/build.make:110: recipe for target 'src/image/image_streamer_cross_process/sample_image_streamer_cross' failed
make[2]: *** [src/image/image_streamer_cross_process/sample_image_streamer_cross] Error 1
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/build.make:134: recipe for target 'src/sensors/camera_gmsl_custom/sample_camera_gmsl_custom' failed
CMakeFiles/Makefile2:938: recipe for target 'src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/all' failed
make[1]: *** [src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/all] Error 2
make[2]: *** [src/sensors/camera_gmsl_custom/sample_camera_gmsl_custom] Error 1
CMakeFiles/Makefile2:2603: recipe for target 'src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/all' failed
make[1]: *** [src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/all] Error 2
[ 47%] Linking CXX executable sample_drivenet
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/Makefile2:1158: recipe for target 'src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/all' failed
make[1]: *** [src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/all] Error 2
src/sfm/CMakeFiles/sample_sfm.dir/build.make:159: recipe for target 'src/sfm/sample_sfm' failed
make[2]: *** [src/sfm/sample_sfm] Error 1
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/Makefile2:1637: recipe for target 'src/sfm/CMakeFiles/sample_sfm.dir/all' failed
make[1]: *** [src/sfm/CMakeFiles/sample_sfm.dir/all] Error 2
src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/build.make:133: recipe for target 'src/sensors/canbus/interpreter/sample_canbus_interpreter' failed
make[2]: *** [src/sensors/canbus/interpreter/sample_canbus_interpreter] Error 1
CMakeFiles/Makefile2:883: recipe for target 'src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/all' failed
make[1]: *** [src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/colorcorrection/CMakeFiles/sample_color_correction.dir/build.make:107: recipe for target 'src/colorcorrection/sample_color_correction' failed
make[2]: *** [src/colorcorrection/sample_color_correction] Error 1
src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/build.make:107: recipe for target 'src/rigconfiguration/sample_rig_configuration' failed
make[2]: *** [src/rigconfiguration/sample_rig_configuration] Error 1
CMakeFiles/Makefile2:2075: recipe for target 'src/colorcorrection/CMakeFiles/sample_color_correction.dir/all' failed
make[1]: *** [src/colorcorrection/CMakeFiles/sample_color_correction.dir/all] Error 2
/CMakeFiles/Makefile2:1527: recipe for target 'src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/all' failed
usrmake[1]: *** [src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/all] Error 2
/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/vehicleio/CMakeFiles/sample_vehicleio.dir/build.make:107: recipe for target 'src/vehicleio/sample_vehicleio' failed
make[2]: *** [src/vehicleio/sample_vehicleio] Error 1
/usr/local/cuda-9.0/lib64/libcudart.so: errorCMakeFiles/Makefile2:3508: recipe for target 'src/vehicleio/CMakeFiles/sample_vehicleio.dir/all' failed
 addingmake[1]: *** [src/vehicleio/CMakeFiles/sample_vehicleio.dir/all] Error 2
 symbols: File in wrong format
collect2: error: ld returned 1 exit status
[ 48%] Linking CXX executable sample_drivenet_multigpu
src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/build.make:107: recipe for target 'src/ipc/sample_ipc_socketclientserver' failed
make[2]: *** [src/ipc/sample_ipc_socketclientserver] Error 1
CMakeFiles/Makefile2:2240: recipe for target 'src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/all' failed
make[1]: *** [src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/all] Error 2
src/rectifier/CMakeFiles/sample_video_rectifier.dir/build.make:108: recipe for target 'src/rectifier/sample_video_rectifier' failed
make[2]: *** [src/rectifier/sample_video_rectifier] Error 1
CMakeFiles/Makefile2:2185: recipe for target 'src/rectifier/CMakeFiles/sample_video_rectifier.dir/all' failed
make[1]: *** [src/rectifier/CMakeFiles/sample_video_rectifier.dir/all] Error 2
[ 48%] Linking CXX executable sample_drivenetNcameras
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/build.make:107: recipe for target 'src/features/camera_scaling_tracker/sample_camera_scaling_tracker' failed
make[2]: *** [src/features/camera_scaling_tracker/sample_camera_scaling_tracker] Error 1
CMakeFiles/Makefile2:1399: recipe for target 'src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/all' failed
make[1]: *** [src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/build.make:133: recipe for target 'src/sensors/radar/radar_replay/sample_radar_replay' failed
make[2]: *** [src/sensors/radar/radar_replay/sample_radar_replay] Error 1
CMakeFiles/Makefile2:993: recipe for target 'src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/all' failed
make[1]: *** [src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/drivenet/drivenet/CMakeFiles/sample_drivenet.dir/build.make:109: recipe for target 'src/drivenet/drivenet/sample_drivenet' failed
make[2]: *** [src/drivenet/drivenet/sample_drivenet] Error 1
CMakeFiles/Makefile2:3047: recipe for target 'src/drivenet/drivenet/CMakeFiles/sample_drivenet.dir/all' failed
make[1]: *** [src/drivenet/drivenet/CMakeFiles/sample_drivenet.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/drivenet/drivenet_ncameras/CMakeFiles/sample_drivenetNcameras.dir/build.make:109: recipe for target 'src/drivenet/drivenet_ncameras/sample_drivenetNcameras' failed
make[2]: *** [src/drivenet/drivenet_ncameras/sample_drivenetNcameras] Error 1
CMakeFiles/Makefile2:3159: recipe for target 'src/drivenet/drivenet_ncameras/CMakeFiles/sample_drivenetNcameras.dir/all' failed
make[1]: *** [src/drivenet/drivenet_ncameras/CMakeFiles/sample_drivenetNcameras.dir/all] Error 2
src/drivenet/drivenet_multiGPU/CMakeFiles/sample_drivenet_multigpu.dir/build.make:109: recipe for target 'src/drivenet/drivenet_multiGPU/sample_drivenet_multigpu' failed
make[2]: *** [src/drivenet/drivenet_multiGPU/sample_drivenet_multigpu] Error 1
CMakeFiles/Makefile2:3103: recipe for target 'src/drivenet/drivenet_multiGPU/CMakeFiles/sample_drivenet_multigpu.dir/all' failed
make[1]: *** [src/drivenet/drivenet_multiGPU/CMakeFiles/sample_drivenet_multigpu.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
mec-lab@meclab-System-Product-Name:~/LBX/driveworks-0.6/build_PX2$ make clean
mec-lab@meclab-System-Product-Name:~/LBX/driveworks-0.6/build_PX2$ make -j
[  1%] Dependencies for /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/image/image_common/CMakeFiles/dw_samples_image_common.dir//gen_utils.cu.o.depend.stamp
[  2%] Dependencies for /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir//gen_utils.cu.o.depend.stamp
[  2%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/ProgramArguments.cpp.o
[  2%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/MathUtils.cpp.o
[  3%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SampleFramework.cpp.o
[  4%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/DriveWorksSample.cpp.o
[  5%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/Grid.cpp.o
[  6%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/WindowGLFW.cpp.o
[  7%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/WindowEGL.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleRenderer.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/ProfilerCUDA.cpp.o
[  9%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/Log.cpp.o
[ 10%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleCamera.cpp.o
[ 11%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/MouseView3D.cpp.o
[ 12%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/GenericImage.cpp.o
[ 12%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleRecordingPlayer.cpp.o
[ 12%] Built target update_cuda_deps
[ 13%] Linking CXX static library libdw_samples_framework.a
[ 13%] Built target dw_samples_framework
[ 13%] Building NVCC (Device) object src/image/image_common/CMakeFiles/dw_samples_image_common.dir/gen_utils.cu.o
[ 14%] Building CXX object src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/main.cpp.o
[ 14%] Building CXX object src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/main.cpp.o
[ 15%] Building NVCC (Device) object src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir/gen_utils.cu.o
[ 15%] Building CXX object src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/sample_ipc_socketclientserver.cpp.o
[ 16%] Building CXX object src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/main.cpp.o
[ 17%] Building CXX object src/egomotion/CMakeFiles/sample_egomotion.dir/main.cpp.o
[ 18%] Building CXX object src/sensors/record/CMakeFiles/sample_record.dir/main.cpp.o
[ 19%] Building CXX object src/sensors/info/CMakeFiles/sample_sensors_info.dir/main.cpp.o
[ 20%] Building CXX object src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/main.cpp.o
[ 21%] Building CXX object src/sensors/imu/CMakeFiles/sample_imu_logger.dir/main.cpp.o
[ 22%] Building CXX object src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/userInput.cpp.o
[ 23%] Building CXX object src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/radarDynamics.cpp.o
[ 24%] Building CXX object src/isp/CMakeFiles/sample_isp.dir/main.cpp.o
[ 24%] Building CXX object src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/ResourceManager.cpp.o
[ 26%] Building CXX object src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/main.cpp.o
[ 26%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/main.cpp.o
[ 27%] Building CXX object src/drivenet/common/CMakeFiles/dw_samples_drivenet_common.dir/DriveNetApp.cpp.o
[ 28%] Building CXX object src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/main.cpp.o
[ 28%] Building CXX object src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/main.cpp.o
[ 28%] Building CXX object src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/interpreter.cpp.o
[ 29%] Building CXX object src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/main.cpp.o
[ 30%] Building CXX object src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/main.cpp.o
[ 31%] Building CXX object src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/main.cpp.o
[ 31%] Building CXX object src/template/CMakeFiles/sample_template.dir/main.cpp.o
[ 31%] Building CXX object src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/main.cpp.o
[ 32%] Building CXX object src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/main.cpp.o
[ 32%] Building CXX object src/renderer/CMakeFiles/sample_renderer.dir/main.cpp.o
[ 33%] Building CXX object src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/main.cpp.o
[ 34%] Building CXX object src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/userInput.cpp.o
[ 34%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/SensorIOCuda.cpp.o
[ 35%] Building CXX object src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/main.cpp.o
[ 35%] Building CXX object src/rectifier/CMakeFiles/sample_video_rectifier.dir/main.cpp.o
[ 35%] Building CXX object src/sensors/gps/CMakeFiles/sample_gps_logger.dir/main.cpp.o
[ 37%] Building CXX object src/icp/CMakeFiles/sample_icp.dir/main.cpp.o
[ 37%] Building CXX object src/drivenet/common/CMakeFiles/dw_samples_drivenet_common.dir/common.cpp.o
[ 37%] Building CXX object src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/captureConfig.cpp.o
[ 40%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/main.cpp.o
[ 39%] Building CXX object src/maps/CMakeFiles/sample_maps.dir/main.cpp.o
[ 45%] Building CXX object src/vehicleio/CMakeFiles/sample_vehicleio.dir/main.cpp.o
[ 46%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/SensorIOCuda.cpp.o
[ 45%] Building CXX object src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/ResourceManager.cpp.o
[ 45%] Building CXX object src/laneDetection/laneDetection_common/CMakeFiles/dw_samples_laneDetection_common.dir/LaneDetectionCommon.cpp.o
[ 45%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/SensorIONvmedia.cpp.o
[ 45%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/SensorIONvmedia.cpp.o
[ 45%] Building CXX object src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/main.cpp.o
[ 45%] Building CXX object src/hello_world/CMakeFiles/sample_hello_world.dir/main.cpp.o
[ 46%] Building CXX object src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/main.cpp.o
[ 43%] Building CXX object src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/main.cpp.o
[ 47%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/SensorIOCuda.cpp.o
[ 47%] Building CXX object src/colorcorrection/CMakeFiles/sample_color_correction.dir/main.cpp.o
[ 48%] Building CXX object src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/main.cpp.o
[ 48%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/DNNInference.cpp.o
[ 49%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/SensorIONvmedia.cpp.o
[ 50%] Building CXX object src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/main.cpp.o
[ 50%] Linking CXX executable sample_rig_configuration
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/build.make:107: recipe for target 'src/rigconfiguration/sample_rig_configuration' failed
make[2]: *** [src/rigconfiguration/sample_rig_configuration] Error 1
CMakeFiles/Makefile2:1527: recipe for target 'src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/all' failed
make[1]: *** [src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 50%] Linking CXX executable sample_hello_world
[ 51%] Linking CXX executable sample_renderer
[ 52%] Linking CXX executable sample_camera_multiple_replay
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/hello_world/CMakeFiles/sample_hello_world.dir/build.make:107: recipe for target 'src/hello_world/sample_hello_world' failed
make[2]: *** [src/hello_world/sample_hello_world] Error 1
CMakeFiles/Makefile2:2295: recipe for target 'src/hello_world/CMakeFiles/sample_hello_world.dir/all' failed
make[1]: *** [src/hello_world/CMakeFiles/sample_hello_world.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/build.make:107: recipe for target 'src/sensors/camera_multiple_replay/sample_camera_multiple_replay' failed
make[2]: *** [src/sensors/camera_multiple_replay/sample_camera_multiple_replay] Error 1
CMakeFiles/Makefile2:608: recipe for target 'src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/all' failed
make[1]: *** [src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/renderer/CMakeFiles/sample_renderer.dir/build.make:107: recipe for target 'src/renderer/sample_renderer' failed
make[2]: *** [src/renderer/sample_renderer] Error 1
CMakeFiles/Makefile2:1582: recipe for target 'src/renderer/CMakeFiles/sample_renderer.dir/all' failed
make[1]: *** [src/renderer/CMakeFiles/sample_renderer.dir/all] Error 2
[ 53%] Linking CXX executable sample_camera_pointgrey
[ 53%] Linking CXX executable sample_third_party_camera
[ 54%] Linking CXX executable sample_imu_logger
[ 55%] Linking CXX executable sample_lidar_replay
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/build.make:133: recipe for target 'src/sensors/camera_pointgrey/sample_camera_pointgrey' failed
make[2]: *** [src/sensors/camera_pointgrey/sample_camera_pointgrey] Error 1
CMakeFiles/Makefile2:718: recipe for target 'src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/all' failed
make[1]: *** [src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/build.make:107: recipe for target 'src/sensors/third_party_camera/sample_third_party_camera' failed
make[2]: *** [src/sensors/third_party_camera/sample_third_party_camera] Error 1
CMakeFiles/Makefile2:1048: recipe for target 'src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/all' failed
make[1]: *** [src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/all] Error 2
[ 56%] Linking CXX executable sample_gps_logger
[ 57%] Linking CXX executable sample_color_correction
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/imu/CMakeFiles/sample_imu_logger.dir/build.make:107: recipe for target 'src/sensors/imu/sample_imu_logger' failed
make[2]: *** [src/sensors/imu/sample_imu_logger] Error 1
src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/build.make:133: recipe for target 'src/sensors/lidar/lidar_replay/sample_lidar_replay' failed
make[2]: *** [src/sensors/lidar/lidar_replay/sample_lidar_replay] Error 1
CMakeFiles/Makefile2:443: recipe for target 'src/sensors/imu/CMakeFiles/sample_imu_logger.dir/all' failed
make[1]: *** [src/sensors/imu/CMakeFiles/sample_imu_logger.dir/all] Error 2
CMakeFiles/Makefile2:938: recipe for target 'src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/all' failed
make[1]: *** [src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/gps/CMakeFiles/sample_gps_logger.dir/build.make:107: recipe for target 'src/sensors/gps/sample_gps_logger' failed
make[2]: *** [src/sensors/gps/sample_gps_logger] Error 1
CMakeFiles/Makefile2:388: recipe for target 'src/sensors/gps/CMakeFiles/sample_gps_logger.dir/all' failed
make[1]: *** [src/sensors/gps/CMakeFiles/sample_gps_logger.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/colorcorrection/CMakeFiles/sample_color_correction.dir/build.make:107: recipe for target 'src/colorcorrection/sample_color_correction' failed
make[2]: *** [src/colorcorrection/sample_color_correction] Error 1
CMakeFiles/Makefile2:2075: recipe for target 'src/colorcorrection/CMakeFiles/sample_color_correction.dir/all' failed
make[1]: *** [src/colorcorrection/CMakeFiles/sample_color_correction.dir/all] Error 2
[ 57%] Linking CXX static library libdw_samples_dnn_common.a
[ 58%] Linking CXX executable sample_camera_usb
[ 59%] Linking CXX executable sample_sensors_info
[ 60%] Linking CXX executable sample_canbus_interpreter
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/build.make:134: recipe for target 'src/sensors/camera_usb/sample_camera_usb' failed
make[2]: *** [src/sensors/camera_usb/sample_camera_usb] Error 1
CMakeFiles/Makefile2:663: recipe for target 'src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/all' failed
make[1]: *** [src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/all] Error 2
[ 60%] Built target dw_samples_dnn_common
[ 60%] Linking CXX executable sample_image_streamer_cross
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/info/CMakeFiles/sample_sensors_info.dir/build.make:107: recipe for target 'src/sensors/info/sample_sensors_info' failed
make[2]: *** [src/sensors/info/sample_sensors_info] Error 1
CMakeFiles/Makefile2:333: recipe for target 'src/sensors/info/CMakeFiles/sample_sensors_info.dir/all' failed
make[1]: *** [src/sensors/info/CMakeFiles/sample_sensors_info.dir/all] Error 2
[ 61%] Linking CXX executable sample_camera_gmsl
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/build.make:110: recipe for target 'src/image/image_streamer_cross_process/sample_image_streamer_cross' failed
make[2]: *** [src/image/image_streamer_cross_process/sample_image_streamer_cross] Error 1
CMakeFiles/Makefile2:2603: recipe for target 'src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/all' failed
make[1]: *** [src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/build.make:133: recipe for target 'src/sensors/canbus/interpreter/sample_canbus_interpreter' failed
make[2]: *** [src/sensors/canbus/interpreter/sample_canbus_interpreter] Error 1
CMakeFiles/Makefile2:883: recipe for target 'src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/all' failed
make[1]: *** [src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/build.make:108: recipe for target 'src/sensors/camera_gmsl/sample_camera_gmsl' failed
make[2]: *** [src/sensors/camera_gmsl/sample_camera_gmsl] Error 1
CMakeFiles/Makefile2:1103: recipe for target 'src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/all' failed
make[1]: *** [src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/all] Error 2
[ 62%] Linking CXX static library libdw_samples_image_common.a
[ 62%] Linking CXX executable sample_canbus_logger
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/build.make:107: recipe for target 'src/sensors/canbus/logger/sample_canbus_logger' failed
make[2]: *** [src/sensors/canbus/logger/sample_canbus_logger] Error 1
CMakeFiles/Makefile2:828: recipe for target 'src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/all' failed
make[1]: *** [src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/all] Error 2
[ 62%] Linking CXX executable sample_isp
[ 63%] Linking CXX executable sample_camera_tracker
[ 63%] Built target dw_samples_image_common
[ 63%] Linking CXX static library libdw_samples_laneDetection_common.a
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/build.make:159: recipe for target 'src/features/camera_tracker/sample_camera_tracker' failed
make[2]: *** [src/features/camera_tracker/sample_camera_tracker] Error 1
CMakeFiles/Makefile2:1344: recipe for target 'src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/all' failed
make[1]: *** [src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/all] Error 2
[ 64%] Linking CXX executable sample_video_rectifier
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/isp/CMakeFiles/sample_isp.dir/build.make:110: recipe for target 'src/isp/sample_isp' failed
make[2]: *** [src/isp/sample_isp] Error 1
CMakeFiles/Makefile2:2130: recipe for target 'src/isp/CMakeFiles/sample_isp.dir/all' failed
make[1]: *** [src/isp/CMakeFiles/sample_isp.dir/all] Error 2
[ 64%] Linking CXX executable sample_occupancy_grid
[ 65%] Linking CXX executable sample_template
[ 66%] Linking CXX executable sample_maps
[ 66%] Linking CXX executable sample_camera_gmsl_raw
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/template/CMakeFiles/sample_template.dir/build.make:107: recipe for target 'src/template/sample_template' failed
make[2]: *** [src/template/sample_template] Error 1
CMakeFiles/Makefile2:3269: recipe for target 'src/template/CMakeFiles/sample_template.dir/all' failed
make[1]: *** [src/template/CMakeFiles/sample_template.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/rectifier/CMakeFiles/sample_video_rectifier.dir/build.make:108: recipe for target 'src/rectifier/sample_video_rectifier' failed
make[2]: *** [src/rectifier/sample_video_rectifier] Error 1
CMakeFiles/Makefile2:2185: recipe for target 'src/rectifier/CMakeFiles/sample_video_rectifier.dir/all' failed
make[1]: *** [src/rectifier/CMakeFiles/sample_video_rectifier.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/build.make:107: recipe for target 'src/mapping/occupancy_grid/sample_occupancy_grid' failed
make[2]: *** [src/mapping/occupancy_grid/sample_occupancy_grid] Error 1
CMakeFiles/Makefile2:1472: recipe for target 'src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/all' failed
make[1]: *** [src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/all] Error 2
[ 66%] Built target dw_samples_laneDetection_common
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/build.make:108: recipe for target 'src/sensors/camera_gmsl_raw/sample_camera_gmsl_raw' failed
make[2]: *** [src/sensors/camera_gmsl_raw/sample_camera_gmsl_raw] Error 1
CMakeFiles/Makefile2:1268: recipe for target 'src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/all' failed
make[1]: *** [src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/maps/CMakeFiles/sample_maps.dir/build.make:107: recipe for target 'src/maps/sample_maps' failed
make[2]: *** [src/maps/sample_maps] Error 1
CMakeFiles/Makefile2:3214: recipe for target 'src/maps/CMakeFiles/sample_maps.dir/all' failed
make[1]: *** [src/maps/CMakeFiles/sample_maps.dir/all] Error 2
[ 67%] Linking CXX executable sample_vehicleio
[ 68%] Linking CXX executable sample_record
[ 69%] Building CXX object src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir/stereoCommon.cpp.o
[ 70%] Linking CXX executable sample_ipc_socketclientserver
[ 70%] Linking CXX executable sample_egomotion
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/vehicleio/CMakeFiles/sample_vehicleio.dir/build.make:107: recipe for target 'src/vehicleio/sample_vehicleio' failed
make[2]: *** [src/vehicleio/sample_vehicleio] Error 1
CMakeFiles/Makefile2:3508: recipe for target 'src/vehicleio/CMakeFiles/sample_vehicleio.dir/all' failed
make[1]: *** [src/vehicleio/CMakeFiles/sample_vehicleio.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/record/CMakeFiles/sample_record.dir/build.make:107: recipe for target 'src/sensors/record/sample_record' failed
make[2]: *** [src/sensors/record/sample_record] Error 1
CMakeFiles/Makefile2:773: recipe for target 'src/sensors/record/CMakeFiles/sample_record.dir/all' failed
make[1]: *** [src/sensors/record/CMakeFiles/sample_record.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/egomotion/CMakeFiles/sample_egomotion.dir/build.make:107: recipe for target 'src/egomotion/sample_egomotion' failed
make[2]: *** [src/egomotion/sample_egomotion] Error 1
CMakeFiles/Makefile2:209: recipe for target 'src/egomotion/CMakeFiles/sample_egomotion.dir/all' failed
make[1]: *** [src/egomotion/CMakeFiles/sample_egomotion.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/build.make:107: recipe for target 'src/ipc/sample_ipc_socketclientserver' failed
make[2]: *** [src/ipc/sample_ipc_socketclientserver] Error 1
CMakeFiles/Makefile2:2240: recipe for target 'src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/all' failed
make[1]: *** [src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/all] Error 2
[ 71%] Linking CXX executable sample_camera_gmsl_custom
[ 71%] Linking CXX executable sample_radar_replay
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/build.make:134: recipe for target 'src/sensors/camera_gmsl_custom/sample_camera_gmsl_custom' failed
make[2]: *** [src/sensors/camera_gmsl_custom/sample_camera_gmsl_custom] Error 1
CMakeFiles/Makefile2:1158: recipe for target 'src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/all' failed
make[1]: *** [src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/build.make:133: recipe for target 'src/sensors/radar/radar_replay/sample_radar_replay' failed
make[2]: *** [src/sensors/radar/radar_replay/sample_radar_replay] Error 1
CMakeFiles/Makefile2:993: recipe for target 'src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/all' failed
make[1]: *** [src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/all] Error 2
[ 71%] Linking CXX executable sample_camera_replay
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/build.make:107: recipe for target 'src/sensors/camera_replay/sample_camera_replay' failed
make[2]: *** [src/sensors/camera_replay/sample_camera_replay] Error 1
CMakeFiles/Makefile2:498: recipe for target 'src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/all' failed
make[1]: *** [src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/all] Error 2
[ 72%] Linking CXX executable sample_camera_seek
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/build.make:107: recipe for target 'src/sensors/camera_seek/sample_camera_seek' failed
make[2]: *** [src/sensors/camera_seek/sample_camera_seek] Error 1
CMakeFiles/Makefile2:553: recipe for target 'src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/all' failed
make[1]: *** [src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/all] Error 2
[ 73%] Linking CXX executable sample_camera_multiple_gmsl
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/build.make:108: recipe for target 'src/sensors/camera_multiple_gmsl/sample_camera_multiple_gmsl' failed
make[2]: *** [src/sensors/camera_multiple_gmsl/sample_camera_multiple_gmsl] Error 1
CMakeFiles/Makefile2:1213: recipe for target 'src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/all' failed
make[1]: *** [src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/all] Error 2
[ 74%] Linking CXX executable sample_icp
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/icp/CMakeFiles/sample_icp.dir/build.make:107: recipe for target 'src/icp/sample_icp' failed
make[2]: *** [src/icp/sample_icp] Error 1
CMakeFiles/Makefile2:3324: recipe for target 'src/icp/CMakeFiles/sample_icp.dir/all' failed
make[1]: *** [src/icp/CMakeFiles/sample_icp.dir/all] Error 2
[ 75%] Linking CXX executable sample_camera_scaling_tracker
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/build.make:107: recipe for target 'src/features/camera_scaling_tracker/sample_camera_scaling_tracker' failed
make[2]: *** [src/features/camera_scaling_tracker/sample_camera_scaling_tracker] Error 1
CMakeFiles/Makefile2:1399: recipe for target 'src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/all' failed
make[1]: *** [src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/all] Error 2
[ 76%] Linking CXX executable sample_sfm
[ 77%] Linking CXX executable sample_lidar_accumulator
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/sfm/CMakeFiles/sample_sfm.dir/build.make:159: recipe for target 'src/sfm/sample_sfm' failed
make[2]: *** [src/sfm/sample_sfm] Error 1
CMakeFiles/Makefile2:1637: recipe for target 'src/sfm/CMakeFiles/sample_sfm.dir/all' failed
make[1]: *** [src/sfm/CMakeFiles/sample_sfm.dir/all] Error 2
/usr/local/cuda-9.0/lib64/libcudart.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/build.make:133: recipe for target 'src/lidar_accumulator/sample_lidar_accumulator' failed
make[2]: *** [src/lidar_accumulator/sample_lidar_accumulator] Error 1
CMakeFiles/Makefile2:3379: recipe for target 'src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/all' failed
make[1]: *** [src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/all] Error 2
[ 77%] Linking CXX static library libdw_samples_stereo_common.a
[ 77%] Built target dw_samples_stereo_common
[ 77%] Linking CXX static library libdw_samples_drivenet_common.a
[ 77%] Built target dw_samples_drivenet_common
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Dear imugly1029,
This is very strange. Can you delete the old cross compilation folder and try compiling again in new folder with command cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-0.6/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux /usr/local/driveworks-0.6/samples/

Dear SivaRamaKrishna
Nice I can finally cmake and make successfully as I followed the cmake command line you gave me.

~$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-0.6/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux /usr/local/driveworks-0.6/samples/
-- VIBRANTE_PDK = /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux
-- VIBRANTE_PDK_DEVICE = t186ref
-- VIBRANTE_PDK_BRANCH = 5.0.5.0
-- Vibrante version 5.0.5.0
-- VIBRANTE_PDK = /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux
-- Vibrante version 5.0.5.0
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc
-- Check for working C compiler: /home/mec-lab/PX2/5050bL_SDK/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/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++
-- Check for working CXX compiler: /home/mec-lab/PX2/5050bL_SDK/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
-- Found CUDA: /usr/local/cuda-9.0 (found version "9.0") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found TensorRT:
--  - Includes: /usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/include
--  - Libraries: /usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/lib/libnvinfer.so;/usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/lib/libnvcaffe_parser.so
-- Found libcudnn:
--  - Includes: /usr/local/cuda-9.0/include
--  - Libraries: /usr/local/cuda-9.0/lib64/libcudnn.so
-- Cross Compiling for Vibrante
-- VIBRANTE_PDK_BRANCH = 5.0.5.0
-- Found vibrante lib: /usr/local/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib/libudev.so
-- Found vibrante lib: /usr/local/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante/lib/libusb-1.0.so
-- Found vibrante_Xlib: /usr/local/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXrandr.so
-- Found vibrante_Xlib: /usr/local/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXinerama.so
-- Found vibrante_Xlib: /usr/local/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXi.so
-- Found vibrante_Xlib: /usr/local/driveworks-0.6/samples/3rdparty/linux-aarch64/vibrante_Xlibs/lib/libXcursor.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found EGL: /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target/libEGL.so  
-- Driveworks Samples install dir: /home/mec-lab/LBX/driveworks-0.6/build_PX2/install
-- Cross Compiling for Vibrante
-- Driveworks found at: /usr/local/driveworks-0.6/targets/aarch64-linux
-- Found Driveworks 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mec-lab/LBX/driveworks-0.6/build_PX2
~$ make -j
Scanning dependencies of target update_cuda_deps
Scanning dependencies of target dw_samples_framework
[  1%] Dependencies for /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/image/image_common/CMakeFiles/dw_samples_image_common.dir//gen_utils.cu.o.depend.stamp
[  2%] Dependencies for /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir//gen_utils.cu.o.depend.stamp
[  2%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/ProgramArguments.cpp.o
[  3%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/Grid.cpp.o
[  4%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SampleFramework.cpp.o
[  5%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/WindowGLFW.cpp.o
[  5%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/MathUtils.cpp.o
[  6%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/MouseView3D.cpp.o
[  7%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/Log.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/GenericImage.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/ProfilerCUDA.cpp.o
[  9%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/DriveWorksSample.cpp.o
[ 10%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleRenderer.cpp.o
[ 11%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/WindowEGL.cpp.o
[ 12%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleCamera.cpp.o
[ 12%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleRecordingPlayer.cpp.o
[ 12%] Built target update_cuda_deps
[ 13%] Linking CXX static library libdw_samples_framework.a
[ 13%] Built target dw_samples_framework
Scanning dependencies of target sample_camera_usb
Scanning dependencies of target sample_camera_pointgrey
Scanning dependencies of target sample_sensors_info
Scanning dependencies of target sample_camera_seek
Scanning dependencies of target sample_radar_replay
Scanning dependencies of target sample_record
Scanning dependencies of target sample_camera_replay
Scanning dependencies of target sample_imu_logger
Scanning dependencies of target sample_template
Scanning dependencies of target sample_third_party_camera
Scanning dependencies of target sample_lidar_replay
Scanning dependencies of target sample_camera_multiple_gmsl
Scanning dependencies of target sample_lidar_accumulator
Scanning dependencies of target sample_sfm
Scanning dependencies of target sample_ipc_socketclientserver
Scanning dependencies of target sample_vehicleio
Scanning dependencies of target sample_color_correction
Scanning dependencies of target sample_canbus_interpreter
Scanning dependencies of target sample_renderer
Scanning dependencies of target sample_camera_gmsl_raw
Scanning dependencies of target sample_gps_logger
Scanning dependencies of target sample_video_rectifier
Scanning dependencies of target sample_camera_multiple_replay
[ 13%] Building NVCC (Device) object src/image/image_common/CMakeFiles/dw_samples_image_common.dir/gen_utils.cu.o
Scanning dependencies of target sample_occupancy_grid
Scanning dependencies of target sample_camera_scaling_tracker
Scanning dependencies of target sample_canbus_logger
Scanning dependencies of target sample_camera_tracker
Scanning dependencies of target sample_egomotion
Scanning dependencies of target sample_icp
Scanning dependencies of target sample_image_streamer_cross
Scanning dependencies of target sample_camera_gmsl_custom
Scanning dependencies of target sample_isp
Scanning dependencies of target sample_hello_world
Scanning dependencies of target sample_maps
Scanning dependencies of target sample_camera_gmsl
[ 14%] Building NVCC (Device) object src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir/gen_utils.cu.o
Scanning dependencies of target dw_samples_drivenet_common
Scanning dependencies of target dw_samples_dnn_common
Scanning dependencies of target sample_rig_configuration
[ 15%] Building CXX object src/sensors/imu/CMakeFiles/sample_imu_logger.dir/main.cpp.o
Scanning dependencies of target dw_samples_laneDetection_common
[ 16%] Building CXX object src/sensors/info/CMakeFiles/sample_sensors_info.dir/main.cpp.o
[ 16%] Building CXX object src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/main.cpp.o
[ 17%] Building CXX object src/sensors/record/CMakeFiles/sample_record.dir/main.cpp.o
[ 18%] Building CXX object src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/main.cpp.o
[ 18%] Building CXX object src/sensors/gps/CMakeFiles/sample_gps_logger.dir/main.cpp.o
[ 18%] Building CXX object src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/interpreter.cpp.o
[ 19%] Building CXX object src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/main.cpp.o
[ 19%] Building CXX object src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/sample_ipc_socketclientserver.cpp.o
[ 20%] Building CXX object src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/main.cpp.o
[ 21%] Building CXX object src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/main.cpp.o
[ 22%] Building CXX object src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/main.cpp.o
[ 23%] Building CXX object src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/main.cpp.o
[ 23%] Building CXX object src/renderer/CMakeFiles/sample_renderer.dir/main.cpp.o
[ 24%] Building CXX object src/icp/CMakeFiles/sample_icp.dir/main.cpp.o
[ 25%] Building CXX object src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/radarDynamics.cpp.o
[ 26%] Building CXX object src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/main.cpp.o
[ 27%] Building CXX object src/hello_world/CMakeFiles/sample_hello_world.dir/main.cpp.o
[ 27%] Building CXX object src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/ResourceManager.cpp.o
[ 27%] Building CXX object src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/main.cpp.o
[ 27%] Building CXX object src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/main.cpp.o
[ 28%] Building CXX object src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/main.cpp.o
[ 29%] Building CXX object src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/main.cpp.o
[ 30%] Building CXX object src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/userInput.cpp.o
[ 30%] Building CXX object src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/ResourceManager.cpp.o
[ 31%] Building CXX object src/isp/CMakeFiles/sample_isp.dir/main.cpp.o
[ 32%] Building CXX object src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/userInput.cpp.o
[ 33%] Building CXX object src/colorcorrection/CMakeFiles/sample_color_correction.dir/main.cpp.o
[ 33%] Building CXX object src/rectifier/CMakeFiles/sample_video_rectifier.dir/main.cpp.o
[ 33%] Building CXX object src/maps/CMakeFiles/sample_maps.dir/main.cpp.o
[ 34%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/SensorIOCuda.cpp.o
[ 36%] Building CXX object src/drivenet/common/CMakeFiles/dw_samples_drivenet_common.dir/DriveNetApp.cpp.o
[ 36%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/main.cpp.o
[ 36%] Building CXX object src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/captureConfig.cpp.o
[ 37%] Building CXX object src/vehicleio/CMakeFiles/sample_vehicleio.dir/main.cpp.o
[ 38%] Building CXX object src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/main.cpp.o
[ 39%] Building CXX object src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/main.cpp.o
[ 40%] Building CXX object src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/main.cpp.o
[ 41%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/SensorIONvmedia.cpp.o
[ 42%] Building CXX object src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/main.cpp.o
[ 43%] Building CXX object src/drivenet/common/CMakeFiles/dw_samples_drivenet_common.dir/common.cpp.o
[ 44%] Building CXX object src/egomotion/CMakeFiles/sample_egomotion.dir/main.cpp.o
[ 45%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/SensorIONvmedia.cpp.o
[ 34%] Building CXX object src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/main.cpp.o
[ 35%] Building CXX object src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/main.cpp.o
[ 46%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/main.cpp.o
[ 47%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/SensorIONvmedia.cpp.o
[ 48%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/SensorIOCuda.cpp.o
[ 49%] Building CXX object src/laneDetection/laneDetection_common/CMakeFiles/dw_samples_laneDetection_common.dir/LaneDetectionCommon.cpp.o
[ 50%] Building CXX object src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/main.cpp.o
[ 50%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/SensorIOCuda.cpp.o
[ 50%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/DNNInference.cpp.o
[ 50%] Building CXX object src/template/CMakeFiles/sample_template.dir/main.cpp.o
[ 50%] Linking CXX executable sample_rig_configuration
[ 51%] Linking CXX executable sample_lidar_replay
[ 51%] Built target sample_rig_configuration
[ 52%] Linking CXX executable sample_imu_logger
[ 52%] Linking CXX executable sample_hello_world
[ 53%] Linking CXX executable sample_renderer
[ 54%] Linking CXX executable sample_gps_logger
[ 55%] Linking CXX executable sample_camera_pointgrey
[ 55%] Built target sample_hello_world
[ 55%] Built target sample_lidar_replay
[ 55%] Linking CXX executable sample_third_party_camera
[ 56%] Linking CXX executable sample_camera_usb
[ 57%] Linking CXX executable sample_camera_gmsl
[ 58%] Linking CXX executable sample_canbus_interpreter
[ 58%] Built target sample_renderer
[ 59%] Linking CXX executable sample_sensors_info
[ 59%] Built target sample_imu_logger
[ 59%] Built target sample_gps_logger
[ 60%] Linking CXX executable sample_camera_multiple_replay
[ 61%] Linking CXX executable sample_ipc_socketclientserver
[ 61%] Linking CXX executable sample_image_streamer_cross
[ 61%] Linking CXX static library libdw_samples_dnn_common.a
[ 61%] Linking CXX executable sample_canbus_logger
[ 62%] Linking CXX executable sample_color_correction
Scanning dependencies of target dw_samples_image_common
[ 63%] Linking CXX executable sample_camera_tracker
[ 63%] Built target sample_camera_pointgrey
[ 63%] Built target dw_samples_dnn_common
[ 63%] Linking CXX static library libdw_samples_laneDetection_common.a
[ 64%] Linking CXX static library libdw_samples_image_common.a
Scanning dependencies of target sample_calibration_camera
Scanning dependencies of target sample_object_dwdetector
Scanning dependencies of target sample_object_detector
Scanning dependencies of target sample_object_tracker
Scanning dependencies of target sample_freespace_detection
[ 64%] Built target sample_camera_gmsl
[ 64%] Built target sample_third_party_camera
[ 64%] Built target sample_sensors_info
[ 64%] Built target sample_canbus_interpreter
[ 66%] Building CXX object src/dnn/sample_object_dwdetector/CMakeFiles/sample_object_dwdetector.dir/main.cpp.o
[ 64%] Built target dw_samples_image_common
[ 67%] Building CXX object src/calibration/camera/CMakeFiles/sample_calibration_camera.dir/CameraCalibrationSample.cpp.o
[ 65%] Linking CXX executable sample_record
[ 68%] Building CXX object src/calibration/camera/CMakeFiles/sample_calibration_camera.dir/main.cpp.o
[ 67%] Built target dw_samples_laneDetection_common
[ 69%] Building CXX object src/dnn/sample_object_tracker/CMakeFiles/sample_object_tracker.dir/main.cpp.o
Scanning dependencies of target sample_image_streamer_multi
[ 69%] Building CXX object src/dnn/sample_object_tracker/CMakeFiles/sample_object_tracker.dir/FeatureTracker2D.cpp.o
Scanning dependencies of target sample_image_streamer_simple
[ 70%] Building CXX object src/freespace/CMakeFiles/sample_freespace_detection.dir/main.cpp.o
[ 71%] Building CXX object src/dnn/sample_object_detector/CMakeFiles/sample_object_detector.dir/main.cpp.o
Scanning dependencies of target sample_image_capture
[ 71%] Built target sample_camera_usb
Scanning dependencies of target sample_lane_detection
[ 71%] Built target sample_color_correction
[ 71%] Built target sample_camera_multiple_replay
[ 71%] Building CXX object src/image/image_streamer_simple/CMakeFiles/sample_image_streamer_simple.dir/main.cpp.o
[ 72%] Building CXX object src/image/image_streamer_multi/CMakeFiles/sample_image_streamer_multi.dir/main.cpp.o
[ 72%] Built target sample_image_streamer_cross
[ 72%] Built target sample_ipc_socketclientserver
[ 72%] Building CXX object src/image/image_capture/CMakeFiles/sample_image_capture.dir/main.cpp.o
[ 73%] Building CXX object src/laneDetection/laneDetection/CMakeFiles/sample_lane_detection.dir/main.cpp.o
[ 74%] Linking CXX executable sample_template
[ 74%] Built target sample_canbus_logger
[ 74%] Built target sample_camera_tracker
[ 75%] Linking CXX executable sample_vehicleio
[ 75%] Linking CXX executable sample_isp
[ 75%] Built target sample_record
[ 75%] Linking CXX executable sample_camera_gmsl_raw
[ 75%] Linking CXX executable sample_occupancy_grid
[ 76%] Linking CXX executable sample_video_rectifier
[ 77%] Linking CXX executable sample_camera_gmsl_custom
[ 77%] Linking CXX executable sample_egomotion
Scanning dependencies of target dw_samples_stereo_common
[ 78%] Linking CXX executable sample_maps
[ 79%] Building CXX object src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir/stereoCommon.cpp.o
[ 79%] Built target sample_template
[ 79%] Built target sample_isp
[ 79%] Built target sample_vehicleio
[ 79%] Built target sample_occupancy_grid
[ 79%] Built target sample_camera_gmsl_raw
[ 79%] Built target sample_camera_gmsl_custom
[ 79%] Built target sample_video_rectifier
[ 79%] Built target sample_maps
[ 79%] Built target sample_egomotion
[ 79%] Linking CXX executable sample_camera_replay
[ 80%] Linking CXX executable sample_camera_seek
[ 81%] Linking CXX executable sample_camera_multiple_gmsl
[ 81%] Linking CXX executable sample_object_detector
[ 82%] Linking CXX executable sample_lane_detection
[ 82%] Linking CXX executable sample_radar_replay
[ 82%] Built target sample_camera_seek
[ 82%] Built target sample_camera_replay
[ 82%] Built target sample_camera_multiple_gmsl
[ 83%] Linking CXX executable sample_image_streamer_multi
[ 84%] Linking CXX executable sample_image_streamer_simple
[ 84%] Built target sample_object_detector
[ 84%] Built target sample_lane_detection
[ 85%] Linking CXX executable sample_icp
[ 85%] Built target sample_radar_replay
[ 86%] Linking CXX executable sample_object_dwdetector
[ 87%] Linking CXX executable sample_object_tracker
[ 88%] Linking CXX executable sample_freespace_detection
[ 88%] Built target sample_image_streamer_multi
[ 88%] Built target sample_image_streamer_simple
[ 88%] Built target sample_icp
[ 89%] Linking CXX executable sample_lidar_accumulator
[ 89%] Built target sample_object_dwdetector
[ 89%] Built target sample_object_tracker
[ 89%] Built target sample_freespace_detection
[ 89%] Built target sample_lidar_accumulator
[ 90%] Linking CXX executable sample_camera_scaling_tracker
[ 91%] Linking CXX executable sample_image_capture
[ 91%] Built target sample_camera_scaling_tracker
[ 92%] Linking CXX executable sample_sfm
[ 92%] Built target sample_image_capture
[ 92%] Built target sample_sfm
[ 92%] Linking CXX static library libdw_samples_drivenet_common.a
[ 92%] Built target dw_samples_drivenet_common
Scanning dependencies of target sample_drivenetNcameras
Scanning dependencies of target sample_drivenet
Scanning dependencies of target sample_drivenet_multigpu
[ 92%] Linking CXX static library libdw_samples_stereo_common.a
[ 93%] Building CXX object src/drivenet/drivenet_ncameras/CMakeFiles/sample_drivenetNcameras.dir/main.cpp.o
[ 93%] Building CXX object src/drivenet/drivenet/CMakeFiles/sample_drivenet.dir/main.cpp.o
[ 93%] Built target dw_samples_stereo_common
Scanning dependencies of target sample_stereo_camera_usb
Scanning dependencies of target sample_stereo_disparity
Scanning dependencies of target sample_stereo_rectifier
[ 94%] Building CXX object src/drivenet/drivenet_multiGPU/CMakeFiles/sample_drivenet_multigpu.dir/main.cpp.o
[ 95%] Building CXX object src/stereo/stereoRectifier/CMakeFiles/sample_stereo_rectifier.dir/main.cpp.o
[ 95%] Building CXX object src/stereo/camera/camera_usb/CMakeFiles/sample_stereo_camera_usb.dir/main.cpp.o
[ 96%] Building CXX object src/stereo/disparity/CMakeFiles/sample_stereo_disparity.dir/main.cpp.o
[ 97%] Linking CXX executable sample_drivenet_multigpu
[ 98%] Linking CXX executable sample_stereo_rectifier
[ 98%] Linking CXX executable sample_drivenetNcameras
[ 99%] Linking CXX executable sample_stereo_camera_usb
[100%] Linking CXX executable sample_drivenet
[100%] Built target sample_drivenet_multigpu
[100%] Linking CXX executable sample_calibration_camera
[100%] Built target sample_drivenet
[100%] Built target sample_stereo_camera_usb
[100%] Built target sample_stereo_rectifier
[100%] Built target sample_drivenetNcameras
[100%] Built target sample_calibration_camera
[100%] Linking CXX executable sample_stereo_disparity
[100%] Built target sample_stereo_disparity

I try to use cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-0.6/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux /home/mec-lab/LBX/driveworks-0.6/samples/ and it also works! Thanks a lot for your help!
So I guess the key point is that when I want to do cross-compilation, I should change the LD_LIBRARY_PATH to aarch CUDA libraries in .bashrc also delete the old cross-compile folder and build a new one, is that right?

Dear imugly,
Yes. You need to make sure it gets the right CUDA libs. Also, If you do not delete the old build, it uses old cmake cache.

Dear SivaRamaKrishna
Got it! Many thanks!