Cross-compile with OpenCV dependencies

Hello,

we are having a hard time figuring out how to cross-compile our project, which has some OpenCV dependencies, for the NVIDIA PX2 Target. OpenCV was installed on both target and host following the provided instructions. As well the CMakeList has been adjusted.

Building of the host system works like a charm, but while cross-compiling we get the error: opencv2/opencv. hpp: No such file or directory.

No, it’s not clear how to fix this issue. Do we have to edit the toolchain CMake file? We were not able to find any information about compiling for the target with OpenCV.

The CMakeList:

# Copyright (c) 2016, NVIDIA CORPORATION.  All rights reserved.

project(environment C CXX)

#------------------------------------------------------------------------------
# OpenCV
#------------------------------------------------------------------------------
SET("OpenCV_DIR" "/home/messuser/openCV_install")
find_package(OpenCV REQUIRED PATHS "/home/messuser/openCV_install/include")
include_directories( ${OpenCV_INCLUDE_DIRS} )

#-------------------------------------------------------------------------------
# Project files
#-------------------------------------------------------------------------------
set(PUBLIC_DOCS
    README.md
)

set(SOURCES
    kalman.cpp
    kalman.hpp
    environment.cpp
    environment.hpp
)

set(LIBRARIES
    ${Driveworks_LIBRARIES}
    dw_samples_common
    ${OpenCV_LIBS}
)

#-------------------------------------------------------------------------------
# Final target
#-------------------------------------------------------------------------------
cuda_add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} PRIVATE ${LIBRARIES})
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER "Samples")

# ------------------------------------------------------------------------------
# Install target
# ------------------------------------------------------------------------------
sdk_install_samples(${PROJECT_NAME})

The cmake configuration output:

-- VIBRANTE_PDK = /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-t186ref-linux
-- VIBRANTE_PDK_DEVICE = t186ref
-- VIBRANTE_PDK_BRANCH = 4.1.8.0
-- Vibrante version 4.1.8.0
-- VIBRANTE_PDK = /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-t186ref-linux
-- Vibrante version 4.1.8.0
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc
-- Check for working C compiler: /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-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: /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++
-- Check for working CXX compiler: /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-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-8.0 (found version "8.0") 
-- Looking for include file pthread.h
-- Looking for include file 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  
-- Cross Compiling for Vibrante
-- VIBRANTE_PDK_BRANCH = 4.1.8.0
-- Vibrante >= 4.1.1.0 - append nv_extimgdev library
-- Vibrante >= 4.1.1.0 - append nv_embstatsplugin library
-- Found vibrante lib: /home/messuser/Desktop/test_Build/samples/3rdparty/linux-aarch64/vibrante/lib/libXrandr.so
-- Found vibrante lib: /home/messuser/Desktop/test_Build/samples/3rdparty/linux-aarch64/vibrante/lib/libXinerama.so
-- Found vibrante lib: /home/messuser/Desktop/test_Build/samples/3rdparty/linux-aarch64/vibrante/lib/libXi.so
-- Found vibrante lib: /home/messuser/Desktop/test_Build/samples/3rdparty/linux-aarch64/vibrante/lib/libXcursor.so
-- Found vibrante lib: /home/messuser/Desktop/test_Build/samples/3rdparty/linux-aarch64/vibrante/lib/libudev.so
-- Found vibrante lib: /home/messuser/Desktop/test_Build/samples/3rdparty/linux-aarch64/vibrante/lib/libusb-1.0.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- Found EGL: /media/messuser/Daten/nvidia/sdk_beta3/installation/VibranteSDK/vibrante-t186ref-linux/lib-target/libEGL.so  
-- Driveworks Samples install dir: /home/messuser/Desktop/test_Build/samples/build-target/install
-- Cross Compiling for Vibrante
-- Driveworks found at: /usr/local/driveworks-0.3/targets/aarch64-linux
-- Found Driveworks 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/messuser/Desktop/test_Build/samples/build-target

The full error message:

cc1plus: error: include location "/usr/include/opencv" is unsafe for cross-compilation [-Werror=poison-system-directories]
cc1plus: error: include location "/usr/include/opencv" is unsafe for cross-compilation [-Werror=poison-system-directories]
cc1plus: error: include location "/usr/include/opencv" is unsafe for cross-compilation [-Werror=poison-system-directories]
In file included from /home/messuser/Desktop/test_Build/samples/src/00_environmentmodell/fusion.hpp:11:0,
                 from /home/messuser/Desktop/test_Build/samples/src/00_environmentmodell/fusion.cpp:8:
/home/messuser/Desktop/test_Build/samples/src/00_environmentmodell/kalman.hpp:14:30: fatal error: opencv2/opencv.hpp: No such file or directory
 #include <opencv2/opencv.hpp>
                              ^
cc1plus: all warnings being treated as errors
compilation terminated.

It’s not clear why it is still looking under /usr/include/opencv!

Dear johann.haselberger,

We had posted openCV installation guidance on below, could you please try to re-install it? Thanks.
https://devtalk.nvidia.com/default/topic/1019937/faq/opencv/

Dear Steve,

the link describes just the usecase of building openCV directly on the PX2.
We have a code of driveworks AND openCV parts. So we need to compile the whole project on the host.
This is not working, as Johann described.

So our question is, what we have to add in the CMakeList to avoid the error:

cc1plus: error: include location "/usr/include/opencv" is unsafe for cross-compilation [-Werror=poison-system-directories]

Dear Steve,

same issue here. Any solutions?

Hello everyone,

we solved this issue for the unsafe for cross-compilation by adding:

if(VIBRANTE)
set(CMAKE_INSTALL_PREFIX "PATH to OpenCV install folder"
endif()
find_package(openCV REQUIRED)
set(CMAKE_INSTALL_PREFIX "")

Than we discovered following error for including openDDS (It was the same for openCV):

/media/ubuntu/Data/openDDS/OpenDDS-3.12/lib/libOpenDDS_Udp.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status

Due to the wrong file format error. We transfered and linked the libs build on the PX2 to the Host system. This “Try” lead us to following issue:

/media/ubuntu/Data/nvidia/userLocalLibsFromDPX2/lib/libOpenDDS_Udp.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'

The reason of this error is that dynamic linking library libstdc++.so.6’s version is lower than the library version used in the build machine. We are waiting for support to set the right libstdc++.so.6 version for the cross compiler to solve this issue

Is there any new solution right now?
I don’t very understand what marcel.pelzer mentioned above. It means that I have to download another opencv package from github? or somebody can give me other solutions?
My PX2 has already install opencv and it works well. But when I try to do cross-compile on my host, it say that /usr/include/opencv is unsafe for cross-compilation. Please someone help me.

Dear All,

Please refer to below link for your topic. Thanks.

https://devtalk.nvidia.com/default/topic/1044512/general/opencv-unable-to-stop-the-stream-inappropriate-ioctl-for-device/?offset=2#5299842

Dear SteveNV
Here is my condition, I wrote a driveworks sample and it includes opencv libs.
My target is to fetch GMSL frame with driveworks’ api and do sth with opencv api so I include opencv’s libs but it failed to cross-compile.
Is that my condition can be solved by referring the links you attached above?

Dear imugly1029,

Well, I can not be 100% sure.
However, could you please try the method mentioned above? And please let us know if you have any problems. Thanks.

Dear Steve
Thanks a lot for your help. I success to cross-compile opencv.

~$ cmake -DCMAKE_BUILD_TYPE=Release -DVIBRANTE_PDK:STRING=/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V4L.cmake -DCMAKE_INSTALL_PREFIX=./install -DBUILD_PNG=ON -DBUILD_TIFF=ON -DBUILD_TBB=OFF -DBUILD_JPEG=ON -DBUILD_JASPER=ON -DBUILD_ZLIB=ON -DBUILD_EXAMPLES=ON -DBUILD_FFMPEG=ON -DBUILD_opencv_java=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -DENABLE_NEON=ON -DWITH_OPENCL=OFF -DWITH_OPENMP=OFF -DWITH_FFMPEG=ON -DWITH_GSTREAMER=OFF -DWITH_GSTREAMER_0_10=OFF -DWITH_CUDA=ON -DWITH_GTK=OFF -DWITH_VTK=OFF -DWITH_TBB=OFF -DWITH_1394=OFF -DWITH_OPENEXR=OFF -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.0 -DCUDA_64_BIT_DEVICE_CODE=ON -DCUDA_ARCH_BIN=6.2 -DCUDA_ARCH_PTX="" -DINSTALL_C_EXAMPLES=ON -DINSTALL_TESTS=OFF -DVIBRANTE=TRUE VERBOSE=1 -DOPENCV_TEST_DATA_PATH=../opencv_extra/testdata ..
-- 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 CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- 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
-- 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
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Failed
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7") 
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.7")
-- Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV)
-- If you want to enable Python/Numpy support, set the following variables:
--   PYTHON2_INCLUDE_PATH
--   PYTHON2_LIBRARIES (optional on Unix-like systems)
--   PYTHON2_NUMPY_INCLUDE_DIRS
--   PYTHON3_INCLUDE_PATH
--   PYTHON3_LIBRARIES (optional on Unix-like systems)
--   PYTHON3_NUMPY_INCLUDE_DIRS
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4") 
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "3.5")
-- Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV)
-- If you want to enable Python/Numpy support, set the following variables:
--   PYTHON2_INCLUDE_PATH
--   PYTHON2_LIBRARIES (optional on Unix-like systems)
--   PYTHON2_NUMPY_INCLUDE_DIRS
--   PYTHON3_INCLUDE_PATH
--   PYTHON3_LIBRARIES (optional on Unix-like systems)
--   PYTHON3_NUMPY_INCLUDE_DIRS
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_NARROWING
-- Performing Test HAVE_CXX_WNO_NARROWING - Success
-- Performing Test HAVE_C_WNO_NARROWING
-- Performing Test HAVE_C_WNO_NARROWING - Success
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Failed
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Failed
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - Success
-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CPU_NEON_SUPPORT - Success
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Failed
-- FP16 is not supported by C++ compiler
-- Optimization FP16 is not available, skipped
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memalign
-- Looking for memalign - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_C_WNO_ATTRIBUTES
-- Performing Test HAVE_C_WNO_ATTRIBUTES - Success
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE
-- Performing Test HAVE_C_WNO_SHIFT_NEGATIVE_VALUE - Failed
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_CAST_ALIGN
-- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- Performing Test HAVE_C_WNO_UNUSED
-- Performing Test HAVE_C_WNO_UNUSED - Success
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - not found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Check size of signed short
-- Check size of signed short - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of signed int
-- Check size of signed int - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of signed long
-- Check size of signed long - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of signed long long
-- Check size of signed long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of unsigned char *
-- Check size of unsigned char * - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Check size of INT8
-- Check size of INT8 - failed
-- Check size of INT16
-- Check size of INT16 - failed
-- Check size of INT32
-- Check size of INT32 - failed
-- Looking for floor
-- Looking for floor - not found
-- Looking for pow
-- Looking for pow - not found
-- Looking for sqrt
-- Looking for sqrt - not found
-- Looking for isascii
-- Looking for isascii - found
-- Looking for memset
-- Looking for memset - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for setmode
-- Looking for setmode - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for lfind
-- Looking for lfind - found
-- Performing Test HAVE_SNPRINTF
-- Performing Test HAVE_SNPRINTF - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
-- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
-- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
-- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
-- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION
-- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION - Failed
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
-- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success
-- Performing Test HAVE_C_WNO_UNINITIALIZED
-- Performing Test HAVE_C_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_C_WNO_POINTER_COMPARE
-- Performing Test HAVE_C_WNO_POINTER_COMPARE - Failed
-- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE
-- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE - Failed
-- The ASM compiler identification is GNU
-- Found assembler: /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 56.60.100
--   Found libavformat, version 56.40.101
--   Found libavutil, version 54.31.100
--   Found libswscale, version 3.1.101
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- WARNING: Can't build ffmpeg test code
-- Checking for module 'libgphoto2'
--   No package 'libgphoto2' found
-- CUDA detected: 9.0
-- CUDA NVCC target flags: -gencode;arch=compute_62,code=sm_62;-D_FORCE_INLINES
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing:  Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
-- Performing Test CXX_HAS_MFPU_NEON
-- Performing Test CXX_HAS_MFPU_NEON - Failed
-- Performing Test C_HAS_MFPU_NEON
-- Performing Test C_HAS_MFPU_NEON - Failed
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
-- Excluding from source files list: /home/mec-lab/opencv/modules/core/src/convert.fp16.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/core/src/convert.sse4_1.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/core/src/convert.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/core/mathfuncs_core.sse2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/core/mathfuncs_core.avx.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/core/mathfuncs_core.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/core/stat.sse4_2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/core/stat.avx2.cpp
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Excluding from source files list: /home/mec-lab/opencv/modules/core/test/test_intrin.fp16.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/filter.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/undistort.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/imgproc/src/resize.sse4_1.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/imgproc/accum.sse2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/imgproc/accum.avx.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/objdetect/src/haar.avx.cpp
-- Performing Test HAVE_CXX_WNO_PARENTHESES
-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/dnn/layers/layers_common.avx.cpp
-- Excluding from source files list: /home/mec-lab/opencv/build/modules/dnn/layers/layers_common.avx2.cpp
-- Excluding from source files list: /home/mec-lab/opencv/modules/features2d/src/fast.avx2.cpp
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- DNN_FACE_DETECTOR: Download: res10_300x300_ssd_iter_140000.caffemodel
-- 
-- General configuration for OpenCV 3.4.0 =====================================
--   Version control:               3.4.0-dirty
-- 
--   Platform:
--     Timestamp:                   2019-03-08T03:38:52Z
--     Host:                        Linux 4.15.0-46-generic x86_64
--     Target:                      Linux 1 aarch64
--     CMake:                       3.5.1
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               Release
-- 
--   CPU/HW features:
--     Baseline:                    NEON
--       requested:                 NEON FP16
--       required:                  NEON
--       disabled:                  VFPV3
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     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-g++  (ver 4.9.2)
--     C++ flags (Release):         -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections   -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections   -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     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
--     C flags (Release):           -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections   -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections   -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/lib/aarch64-linux-gnu -Wl,-rpath,/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/lib/aarch64-linux-gnu -Wl,-rpath,/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target 
--     Linker flags (Debug):        -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/lib/aarch64-linux-gnu -Wl,-rpath,/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target -L/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/lib/aarch64-linux-gnu -Wl,-rpath,/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/lib-target 
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          dl m pthread rt cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-9.0/targets/aarch64-linux/lib -L/usr/local/cuda-9.0/targets/aarch64-linux/lib/stubs
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 calib3d core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn features2d flann highgui imgcodecs imgproc ml objdetect photo python_bindings_generator shape stitching superres ts video videoio videostab
--     Disabled:                    js world
--     Disabled by dependency:      -
--     Unavailable:                 java python2 python3 viz
--     Applications:                tests perf_tests examples apps
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   GUI: 
-- 
--   Media I/O: 
--     ZLib:                        build (ver 1.2.11)
--     JPEG:                        build (ver 90)
--     WEBP:                        build (ver encoder: 0x020e)
--     PNG:                         build (ver 1.6.34)
--     TIFF:                        build (ver 42 - 4.0.9)
--     JPEG 2000:                   build (ver 1.900.1)
-- 
--   Video I/O:
--     FFMPEG:                      NO
--       avcodec:                   YES (ver 56.60.100)
--       avformat:                  YES (ver 56.40.101)
--       avutil:                    YES (ver 54.31.100)
--       swscale:                   YES (ver 3.1.101)
--       avresample:                NO
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    linux/videodev2.h
--     gPhoto2:                     NO
-- 
--   Parallel framework:            pthreads
-- 
--   Trace:                         YES (built-in)
-- 
--   Other third-party libraries:
--     Lapack:                      NO
--     Custom HAL:                  YES (carotene (ver 0.0.1))
-- 
--   NVIDIA CUDA:                   YES (ver 9.0, CUFFT CUBLAS)
--     NVIDIA GPU arch:             62
--     NVIDIA PTX archs:
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Matlab:                        NO
-- 
--   Install to:                    /home/mec-lab/opencv/build/install
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mec-lab/opencv/build
.
.
.
[ 99%] Built target tutorial_interoperability_with_OpenCV_1
[ 99%] Building CXX object samples/cpp/CMakeFiles/example_lkdemo.dir/lkdemo.cpp.o
Scanning dependencies of target tutorial_mat_the_basic_image_container
[ 99%] Built target tutorial_AddingImagesTrackbar
[ 99%] Linking CXX executable ../../bin/cpp-example-train_svmsgd
Scanning dependencies of target example_grabcut
[ 99%] Linking CXX executable ../../bin/cpp-tutorial-gdal-image
[ 99%] Building CXX object samples/cpp/CMakeFiles/tutorial_mat_the_basic_image_container.dir/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp.o
[ 99%] Building CXX object samples/cpp/CMakeFiles/example_grabcut.dir/grabcut.cpp.o
[ 99%] Built target example_train_svmsgd
[ 99%] Built target tutorial_gdal-image
Scanning dependencies of target tutorial_how_to_use_OpenCV_parallel_for_
Scanning dependencies of target tutorial_file_input_output
[ 99%] Building CXX object samples/cpp/CMakeFiles/tutorial_how_to_use_OpenCV_parallel_for_.dir/tutorial_code/core/how_to_use_OpenCV_parallel_for_/how_to_use_OpenCV_parallel_for_.cpp.o
[ 99%] Building CXX object samples/cpp/CMakeFiles/tutorial_file_input_output.dir/tutorial_code/core/file_input_output/file_input_output.cpp.o
[ 99%] Linking CXX executable ../../bin/cpp-example-example
[ 99%] Linking CXX executable ../../bin/cpp-example-openni_capture
[ 99%] Built target example_example
[ 99%] Built target example_openni_capture
Scanning dependencies of target tutorial_discrete_fourier_transform
Scanning dependencies of target tutorial_objectDetection
[ 99%] Linking CXX executable ../../bin/cpp-example-cloning_gui
[ 99%] Building CXX object samples/cpp/CMakeFiles/tutorial_discrete_fourier_transform.dir/tutorial_code/core/discrete_fourier_transform/discrete_fourier_transform.cpp.o
[ 99%] Building CXX object samples/cpp/CMakeFiles/tutorial_objectDetection.dir/tutorial_code/objectDetection/objectDetection.cpp.o
[ 99%] Linking CXX executable ../../bin/cpp-tutorial-Drawing_1
[ 99%] Built target example_cloning_gui
[100%] Linking CXX executable ../../bin/cpp-tutorial-how_to_scan_images
[100%] Linking CXX executable ../../bin/cpp-example-distrans
[100%] Built target tutorial_Drawing_1
[100%] Linking CXX executable ../../bin/cpp-tutorial-mat_mask_operations
[100%] Built target tutorial_how_to_scan_images
[100%] Built target example_distrans
[100%] Linking CXX executable ../../bin/cpp-tutorial-how_to_use_OpenCV_parallel_for_
[100%] Linking CXX executable ../../bin/cpp-example-lkdemo
[100%] Built target tutorial_mat_mask_operations
[100%] Linking CXX executable ../../bin/cpp-tutorial-mat_the_basic_image_container
[100%] Built target tutorial_how_to_use_OpenCV_parallel_for_
[100%] Built target example_lkdemo
[100%] Built target tutorial_mat_the_basic_image_container
[100%] Linking CXX executable ../../bin/cpp-tutorial-file_input_output
[100%] Built target tutorial_file_input_output
[100%] Linking CXX executable ../../bin/cpp-example-grabcut
[100%] Built target example_grabcut
[100%] Linking CXX executable ../../bin/cpp-tutorial-objectDetection
[100%] Linking CXX executable ../../bin/cpp-tutorial-discrete_fourier_transform
[100%] Built target tutorial_objectDetection
[100%] Built target tutorial_discrete_fourier_transform

But when I try to cross-compile in driveworks, I faced the same errors.
cc1plus: error: include location “/usr/include/opencv” is unsafe for cross-compilation [-Werror=poison-system-directories]
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

~$ make -j12[  1%] Building NVCC (Device) object src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/gen_YoloLayer.cu.o
Scanning dependencies of target dw_samples_framework
Scanning dependencies of target update_cuda_deps
[  1%] Building NVCC (Device) object src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/gen_UpsampleLayer.cu.o
[  2%] Dependencies for /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/gen_UpsampleLayer.cu.o.depend.stamp
[  2%] Dependencies for /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/gen_YoloLayer.cu.o.depend.stamp
[  3%] 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
[  4%] 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
-- Removing /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_YoloLayer.cu.o
-- Removing /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_UpsampleLayer.cu.o
/usr/bin/cmake -E remove /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_YoloLayer.cu.o
/usr/bin/cmake -E remove /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_UpsampleLayer.cu.o
-- Generating /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_YoloLayer.cu.o
-- Generating /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_UpsampleLayer.cu.o
/usr/local/cuda-9.0/bin/nvcc /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu -c -o /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_YoloLayer.cu.o -ccbin /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++ -m64 -DVIBRANTE -DVIBRANTE_V5L -DVIBRANTE_PDK_VERSION=\"5.0.5.0\" -DVIBRANTE_PDK_MAJOR=5 -DVIBRANTE_PDK_MINOR=0 -DVIBRANTE_PDK_PATCH=5 -DVIBRANTE_PDK_BUILD=0 -DVIBRANTE -DVIBRANTE_V5L -DVIBRANTE_PDK_VERSION=\"5.0.5.0\" -DVIBRANTE_PDK_MAJOR=5 -DVIBRANTE_PDK_MINOR=0 -DVIBRANTE_PDK_PATCH=5 -DVIBRANTE_PDK_BUILD=0 -DDW_USE_NVMEDIA -DDW_USE_EGL -Xcompiler ,\"-fPIC\",\"-Wall\",\"-Werror\",\"-Wunused\",\"-Wunused-value\",\"-Wunused-parameter\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wno-error=unused-parameter\",\"-Wno-error=unused-variable\",\"-Wno-error=unused-but-set-variable\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -arch=sm_30 -lineinfo -std=c++11 -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/local/cuda-9.0/include -I/usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/include -I/usr/local/cuda-9.0/targets/aarch64-linux/include -I/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/include -I/usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/include -I/usr/local/cuda-9.0/include -I/usr/local/cuda-9.0/targets/aarch64-linux/include -I/home/mec-lab/LBX/driveworks-0.6/build_PX2/configured -I/usr/local/driveworks-0.6/targets/aarch64-linux/include -I/home/mec-lab/LBX/driveworks-0.6/build_PX2/configured/samples -I/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include
/usr/local/cuda-9.0/bin/nvcc /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cu -c -o /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_UpsampleLayer.cu.o -ccbin /home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/../toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++ -m64 -DVIBRANTE -DVIBRANTE_V5L -DVIBRANTE_PDK_VERSION=\"5.0.5.0\" -DVIBRANTE_PDK_MAJOR=5 -DVIBRANTE_PDK_MINOR=0 -DVIBRANTE_PDK_PATCH=5 -DVIBRANTE_PDK_BUILD=0 -DVIBRANTE -DVIBRANTE_V5L -DVIBRANTE_PDK_VERSION=\"5.0.5.0\" -DVIBRANTE_PDK_MAJOR=5 -DVIBRANTE_PDK_MINOR=0 -DVIBRANTE_PDK_PATCH=5 -DVIBRANTE_PDK_BUILD=0 -DDW_USE_NVMEDIA -DDW_USE_EGL -Xcompiler ,\"-fPIC\",\"-Wall\",\"-Werror\",\"-Wunused\",\"-Wunused-value\",\"-Wunused-parameter\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wno-error=unused-parameter\",\"-Wno-error=unused-variable\",\"-Wno-error=unused-but-set-variable\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -arch=sm_30 -lineinfo -std=c++11 -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/local/cuda-9.0/include -I/usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/include -I/usr/local/cuda-9.0/targets/aarch64-linux/include -I/home/mec-lab/PX2/5050bL_SDK/DriveSDK/drive-t186ref-linux/include -I/usr/local/nvidia/tensorrt/targets/aarch64-linux-gnu/include -I/usr/local/cuda-9.0/include -I/usr/local/cuda-9.0/targets/aarch64-linux/include -I/home/mec-lab/LBX/driveworks-0.6/build_PX2/configured -I/usr/local/driveworks-0.6/targets/aarch64-linux/include -I/home/mec-lab/LBX/driveworks-0.6/build_PX2/configured/samples -I/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include
[  4%] 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/DriveWorksSample.cpp.o
[  6%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/ProgramArguments.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/MathUtils.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/WindowGLFW.cpp.o
[  8%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/MouseView3D.cpp.o
[  9%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/Log.cpp.o
[  9%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/ProfilerCUDA.cpp.o
[ 10%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/GenericImage.cpp.o
[ 11%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleCamera.cpp.o
[ 11%] Built target update_cuda_deps
[ 11%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleRenderer.cpp.o
[ 12%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/SimpleRecordingPlayer.cpp.o
[ 13%] Building CXX object src/framework/CMakeFiles/dw_samples_framework.dir/WindowEGL.cpp.o
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu(33): warning: variable "a" was declared but never referenced

/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu(48): warning: variable "a" was declared but never referenced

/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu(33): warning: variable "a" was declared but never referenced

/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu(48): warning: variable "a" was declared but never referenced

/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/UpsampleLayer.h:38:37: warning: unused parameter 'maxBatchSize' [-Wunused-parameter]
         virtual size_t getWorkspaceSize(int maxBatchSize) const override { return 0;}
                                     ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cu:50:98: warning: unused parameter 'workspace' [-Wunused-parameter]
   int UpsampleLayerPlugin::enqueue(int batchSize, const void*const * inputs, void** outputs, void* workspace, cudaStream_t stream)
                                                                                                  ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:36: warning: unused parameter 'inputDims' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                    ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:51: warning: unused parameter 'nbInputs' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                                   ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:73: warning: unused parameter 'outputDims' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                                                         ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:89: warning: unused parameter 'nbOutputs' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                                                                         ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:50:37: warning: unused parameter 'maxBatchSize' [-Wunused-parameter]
         virtual size_t getWorkspaceSize(int maxBatchSize) const override { return 0;}
                                     ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:29:59: warning: unused parameter 'length' [-Wunused-parameter]
     YoloLayerPlugin::YoloLayerPlugin(const void* data, size_t length)
                                                           ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:78:47: warning: unused parameter 'index' [-Wunused-parameter]
     Dims YoloLayerPlugin::getOutputDimensions(int index, const Dims* inputs, int nbInputDims)
                                               ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:78:66: warning: unused parameter 'inputs' [-Wunused-parameter]
     Dims YoloLayerPlugin::getOutputDimensions(int index, const Dims* inputs, int nbInputDims)
                                                                  ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:78:78: warning: unused parameter 'nbInputDims' [-Wunused-parameter]
     Dims YoloLayerPlugin::getOutputDimensions(int index, const Dims* inputs, int nbInputDims)
                                                                              ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:220:90: warning: unused parameter 'stream' [-Wunused-parameter]
     void YoloLayerPlugin::forwardGpu(const float *const * inputs,float * output,cudaStream_t stream) {
                                                                                          ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:243:34: warning: unused parameter 'batchSize' [-Wunused-parameter]
     int YoloLayerPlugin::enqueue(int batchSize, const void*const * inputs, void** outputs, void* workspace, cudaStream_t stream)
                                  ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/YoloLayer.cu:243:94: warning: unused parameter 'workspace' [-Wunused-parameter]
     int YoloLayerPlugin::enqueue(int batchSize, const void*const * inputs, void** outputs, void* workspace, cudaStream_t stream)
                                                                                              ^
Generated /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_UpsampleLayer.cu.o successfully.
Generated /home/mec-lab/LBX/driveworks-0.6/build_PX2/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./gen_YoloLayer.cu.o successfully.
Scanning dependencies of target TrtNet
[ 14%] Building CXX object src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/UpsampleLayer.cpp.o
[ 15%] Building CXX object src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet.cpp.o
[ 14%] Building CXX object src/dnn/sample_trt_yolov3/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/EntroyCalibrator.cpp.o
[ 15%] Linking CXX static library libdw_samples_framework.a
[ 15%] Built target dw_samples_framework
Scanning dependencies of target sample_camera_usb
Scanning dependencies of target sample_egomotion
Scanning dependencies of target sample_gps_logger
Scanning dependencies of target sample_camera_multiple_replay
Scanning dependencies of target sample_sensors_info
Scanning dependencies of target sample_camera_replay
Scanning dependencies of target sample_camera_seek
Scanning dependencies of target sample_camera_pointgrey
Scanning dependencies of target sample_imu_logger
[ 16%] Building CXX object src/sensors/gps/CMakeFiles/sample_gps_logger.dir/main.cpp.o
[ 17%] Building CXX object src/sensors/imu/CMakeFiles/sample_imu_logger.dir/main.cpp.o
[ 17%] Building CXX object src/sensors/info/CMakeFiles/sample_sensors_info.dir/main.cpp.o
[ 17%] Building CXX object src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/main.cpp.o
[ 18%] Building CXX object src/sensors/camera_replay/CMakeFiles/sample_camera_replay.dir/main.cpp.o
[ 19%] Building CXX object src/egomotion/CMakeFiles/sample_egomotion.dir/main.cpp.o
[ 20%] Building CXX object src/sensors/camera_multiple_replay/CMakeFiles/sample_camera_multiple_replay.dir/main.cpp.o
[ 21%] Building CXX object src/sensors/camera_seek/CMakeFiles/sample_camera_seek.dir/main.cpp.o
[ 21%] Building CXX object src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/main.cpp.o
In file included from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:1:0:
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/UpsampleLayer.h:38:45: warning: unused parameter 'maxBatchSize' [-Wunused-parameter]
         virtual size_t getWorkspaceSize(int maxBatchSize) const override { return 0;}
                                             ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp: In constructor 'nvinfer1::UpsampleLayerPlugin::UpsampleLayerPlugin(const void*, size_t)':
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:20:19: warning: unused variable 'a' [-Wunused-variable]
       const char *a = d;
                   ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp: At global scope:
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:16:69: warning: unused parameter 'length' [-Wunused-parameter]
   UpsampleLayerPlugin::UpsampleLayerPlugin(const void* data, size_t length)
                                                                     ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp: In member function 'virtual void nvinfer1::UpsampleLayerPlugin::serialize(void*)':
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:36:13: warning: unused variable 'a' [-Wunused-variable]
       char *a = d;
             ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp: At global scope:
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:59:51: warning: unused parameter 'inputDims' [-Wunused-parameter]
   void UpsampleLayerPlugin::configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int)
                                                   ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:59:66: warning: unused parameter 'nbInputs' [-Wunused-parameter]
   void UpsampleLayerPlugin::configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int)
                                                                  ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:59:88: warning: unused parameter 'outputDims' [-Wunused-parameter]
   void UpsampleLayerPlugin::configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int)
                                                                                        ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:59:104: warning: unused parameter 'nbOutputs' [-Wunused-parameter]
   void UpsampleLayerPlugin::configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int)
                                                                                                        ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:69:53: warning: unused parameter 'index' [-Wunused-parameter]
   Dims UpsampleLayerPlugin::getOutputDimensions(int index, const Dims* inputs, int nbInputDims)
                                                     ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:69:84: warning: unused parameter 'nbInputDims' [-Wunused-parameter]
   Dims UpsampleLayerPlugin::getOutputDimensions(int index, const Dims* inputs, int nbInputDims)
                                                                                    ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/EntroyCalibrator.cpp:32:78: warning: unused parameter 'names' [-Wunused-parameter]
     bool Int8EntropyCalibrator::getBatch(void* bindings[], const char* names[], int nbBindings)
                                                                              ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/EntroyCalibrator.cpp:32:85: warning: unused parameter 'nbBindings' [-Wunused-parameter]
     bool Int8EntropyCalibrator::getBatch(void* bindings[], const char* names[], int nbBindings)
                                                                                     ^
[ 22%] Building CXX object src/sensors/camera_usb/CMakeFiles/sample_camera_usb.dir/ResourceManager.cpp.o
In file included from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/PluginFactory.h:7:0,
                 from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/TrtNet.h:11,
                 from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/UpsampleLayer.h:38:45: warning: unused parameter 'maxBatchSize' [-Wunused-parameter]
         virtual size_t getWorkspaceSize(int maxBatchSize) const override { return 0;}
                                             ^
In file included from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/PluginFactory.h:8:0,
                 from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/TrtNet.h:11,
                 from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:36: warning: unused parameter 'inputDims' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                    ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:51: warning: unused parameter 'nbInputs' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                                   ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:73: warning: unused parameter 'outputDims' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                                                         ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:44:89: warning: unused parameter 'nbOutputs' [-Wunused-parameter]
         void configure(const Dims* inputDims, int nbInputs, const Dims* outputDims, int nbOutputs, int) override {};
                                                                                         ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/YoloLayer.h:50:45: warning: unused parameter 'maxBatchSize' [-Wunused-parameter]
         virtual size_t getWorkspaceSize(int maxBatchSize) const override { return 0;}
                                             ^
In file included from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/TrtNet.h:11:0,
                 from /home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/PluginFactory.h:41:101: warning: unused parameter 'weights' [-Wunused-parameter]
             virtual nvinfer1::IPlugin* createPlugin(const char* layerName, const nvinfer1::Weights* weights, int nbWeights) override
                                                                                                     ^
/home/mec-lab/LBX/driveworks-0.6/samples/src/dnn/sample_trt_yolov3/tensorRTWrapper/code/include/PluginFactory.h:41:114: warning: unused parameter 'nbWeights' [-Wunused-parameter]
             virtual nvinfer1::IPlugin* createPlugin(const char* layerName, const nvinfer1::Weights* weights, int nbWeights) override
                                                                                                                  ^
Scanning dependencies of target sample_record
[ 23%] Building CXX object src/sensors/record/CMakeFiles/sample_record.dir/main.cpp.o
[ 24%] Linking CXX executable sample_imu_logger
[ 25%] Linking CXX executable sample_gps_logger
[ 26%] Building CXX object src/sensors/camera_pointgrey/CMakeFiles/sample_camera_pointgrey.dir/ResourceManager.cpp.o
Scanning dependencies of target sample_canbus_logger
[ 27%] Linking CXX executable sample_sensors_info
[ 27%] Building CXX object src/sensors/canbus/logger/CMakeFiles/sample_canbus_logger.dir/main.cpp.o
[ 28%] Linking CXX executable sample_camera_usb
[ 28%] Built target sample_imu_logger
[ 29%] Linking CXX executable sample_camera_multiple_replay
Scanning dependencies of target sample_canbus_interpreter
[ 29%] Building CXX object src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/main.cpp.o
[ 29%] Built target sample_gps_logger
[ 30%] Building CXX object src/sensors/canbus/interpreter/CMakeFiles/sample_canbus_interpreter.dir/interpreter.cpp.o
[ 30%] Built target sample_sensors_info
Scanning dependencies of target sample_lidar_replay
[ 30%] Built target sample_camera_usb
Scanning dependencies of target sample_radar_replay
[ 30%] Built target sample_camera_multiple_replay
[ 31%] Building CXX object src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/main.cpp.o
Scanning dependencies of target sample_third_party_camera
[ 32%] Building CXX object src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/main.cpp.o
[ 32%] Building CXX object src/sensors/third_party_camera/CMakeFiles/sample_third_party_camera.dir/main.cpp.o
[ 32%] Linking CXX executable sample_egomotion
[ 32%] Built target sample_egomotion
[ 32%] Linking CXX executable sample_camera_pointgrey
[ 32%] Building CXX object src/sensors/lidar/lidar_replay/CMakeFiles/sample_lidar_replay.dir/userInput.cpp.o
Scanning dependencies of target sample_camera_gmsl
[ 32%] Building CXX object src/sensors/camera_gmsl/CMakeFiles/sample_camera_gmsl.dir/main.cpp.o
[ 32%] Built target sample_camera_pointgrey
Scanning dependencies of target sample_camera_gmsl_custom
[ 32%] Building CXX object src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/captureConfig.cpp.o
[ 33%] Linking CXX executable sample_camera_replay
[ 33%] Linking CXX executable sample_camera_seek
[ 34%] Linking CXX executable sample_canbus_interpreter
[ 34%] Built target sample_camera_replay
[ 35%] Linking CXX executable sample_canbus_logger
[ 36%] Building CXX object src/sensors/camera_gmsl_custom/CMakeFiles/sample_camera_gmsl_custom.dir/main.cpp.o
Scanning dependencies of target sample_camera_multiple_gmsl
[ 37%] Building CXX object src/sensors/camera_multiple_gmsl/CMakeFiles/sample_camera_multiple_gmsl.dir/main.cpp.o
[ 37%] Built target sample_camera_seek
Scanning dependencies of target sample_camera_gmsl_raw
[ 38%] Linking CXX executable sample_lidar_replay
[ 39%] Linking CXX executable sample_third_party_camera
[ 39%] Building CXX object src/sensors/camera_gmsl_raw/CMakeFiles/sample_camera_gmsl_raw.dir/main.cpp.o
[ 39%] Built target sample_canbus_interpreter
Scanning dependencies of target sample_camera_tracker
[ 39%] Built target sample_canbus_logger
Scanning dependencies of target sample_camera_scaling_tracker
[ 39%] Linking CXX executable sample_record
[ 40%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/main.cpp.o
[ 40%] Building CXX object src/features/camera_scaling_tracker/CMakeFiles/sample_camera_scaling_tracker.dir/main.cpp.o
[ 40%] Built target sample_lidar_replay
[ 40%] Built target sample_third_party_camera
[ 40%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/SensorIOCuda.cpp.o
[ 40%] Building CXX object src/sensors/radar/radar_replay/CMakeFiles/sample_radar_replay.dir/radarDynamics.cpp.o
[ 40%] Built target sample_record
Scanning dependencies of target sample_occupancy_grid
[ 41%] Building CXX object src/features/camera_tracker/CMakeFiles/sample_camera_tracker.dir/SensorIONvmedia.cpp.o
[ 41%] Building CXX object src/mapping/occupancy_grid/CMakeFiles/sample_occupancy_grid.dir/main.cpp.o
[ 42%] Linking CXX executable sample_camera_gmsl
[ 42%] Built target sample_camera_gmsl
Scanning dependencies of target sample_rig_configuration
[ 42%] Building CXX object src/rigconfiguration/CMakeFiles/sample_rig_configuration.dir/main.cpp.o
Scanning dependencies of target sample_renderer
[ 43%] Building CXX object src/renderer/CMakeFiles/sample_renderer.dir/main.cpp.o
Scanning dependencies of target sample_sfm
[ 44%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/main.cpp.o
[ 44%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/SensorIOCuda.cpp.o
[ 45%] Linking CXX executable sample_rig_configuration
[ 46%] Linking CXX executable sample_camera_gmsl_raw
[ 47%] Linking CXX executable sample_camera_tracker
[ 48%] Linking CXX executable sample_radar_replay
[ 48%] Built target sample_rig_configuration
Scanning dependencies of target dw_samples_dnn_common
[ 48%] Built target sample_camera_gmsl_raw
[ 50%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/DNNInference.cpp.o
[ 50%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/SensorIOCuda.cpp.o
[ 51%] Linking CXX executable sample_camera_gmsl_custom
[ 51%] Built target sample_camera_tracker
[ 52%] Building CXX object src/sfm/CMakeFiles/sample_sfm.dir/SensorIONvmedia.cpp.o
[ 52%] Built target sample_radar_replay
[ 53%] Linking CXX executable sample_renderer
[ 53%] Building CXX object src/dnn/dnn_common/CMakeFiles/dw_samples_dnn_common.dir/SensorIONvmedia.cpp.o
[ 53%] Built target sample_camera_gmsl_custom
Scanning dependencies of target dw_samples_laneDetection_common
[ 54%] Linking CXX executable sample_occupancy_grid
[ 54%] Built target sample_renderer
[ 55%] Building CXX object src/laneDetection/laneDetection_common/CMakeFiles/dw_samples_laneDetection_common.dir/LaneDetectionCommon.cpp.o
Scanning dependencies of target sample_color_correction
[ 55%] Linking CXX executable sample_camera_multiple_gmsl
[ 55%] Building CXX object src/colorcorrection/CMakeFiles/sample_color_correction.dir/main.cpp.o
[ 55%] Built target sample_occupancy_grid
[ 55%] Built target sample_camera_multiple_gmsl
Scanning dependencies of target sample_isp
Scanning dependencies of target sample_video_rectifier
Scanning dependencies of target sample_ipc_socketclientserver
[ 55%] Building CXX object src/isp/CMakeFiles/sample_isp.dir/main.cpp.o
[ 55%] Building CXX object src/rectifier/CMakeFiles/sample_video_rectifier.dir/main.cpp.o
[ 55%] Building CXX object src/ipc/CMakeFiles/sample_ipc_socketclientserver.dir/sample_ipc_socketclientserver.cpp.o
Scanning dependencies of target sample_hello_world
[ 55%] Building CXX object src/hello_world/CMakeFiles/sample_hello_world.dir/main.cpp.o
[ 56%] Building NVCC (Device) object src/image/image_common/CMakeFiles/dw_samples_image_common.dir/gen_utils.cu.o
[ 57%] Linking CXX static library libdw_samples_dnn_common.a
[ 57%] Built target dw_samples_dnn_common
Scanning dependencies of target sample_image_streamer_cross
[ 58%] Building CXX object src/image/image_streamer_cross_process/CMakeFiles/sample_image_streamer_cross.dir/main.cpp.o
[ 58%] Building NVCC (Device) object src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir/gen_utils.cu.o
[ 59%] Linking CXX executable sample_hello_world
[ 60%] Linking CXX executable sample_color_correction
[ 60%] Built target sample_hello_world
Scanning dependencies of target sample_freespace_detection
[ 61%] Building CXX object src/freespace/CMakeFiles/sample_freespace_detection.dir/main.cpp.o
[ 61%] Linking CXX static library libTrtNet.a
[ 61%] Built target sample_color_correction
[ 61%] Built target TrtNet
Scanning dependencies of target dw_samples_drivenet_common
[ 62%] Linking CXX static library libdw_samples_laneDetection_common.a
Scanning dependencies of target sample_maps
[ 62%] Built target dw_samples_laneDetection_common
Scanning dependencies of target sample_template
[ 62%] Building CXX object src/drivenet/common/CMakeFiles/dw_samples_drivenet_common.dir/DriveNetApp.cpp.o
[ 63%] Building CXX object src/maps/CMakeFiles/sample_maps.dir/main.cpp.o
Scanning dependencies of target dw_samples_image_common
[ 64%] Linking CXX static library libdw_samples_image_common.a
[ 64%] Building CXX object src/template/CMakeFiles/sample_template.dir/main.cpp.o
[ 64%] Built target dw_samples_image_common
Scanning dependencies of target sample_icp
[ 65%] Linking CXX executable sample_camera_scaling_tracker
[ 66%] Building CXX object src/icp/CMakeFiles/sample_icp.dir/main.cpp.o
[ 67%] Linking CXX executable sample_isp
[ 68%] Linking CXX executable sample_ipc_socketclientserver
[ 69%] Linking CXX executable sample_image_streamer_cross
[ 69%] Built target sample_camera_scaling_tracker
Scanning dependencies of target sample_lidar_accumulator
[ 70%] Building CXX object src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/main.cpp.o
[ 70%] Built target sample_isp
[ 70%] Built target sample_ipc_socketclientserver
[ 71%] Building CXX object src/drivenet/common/CMakeFiles/dw_samples_drivenet_common.dir/common.cpp.o
Scanning dependencies of target sample_calibration_camera
[ 71%] Built target sample_image_streamer_cross
Scanning dependencies of target sample_vehicleio
[ 72%] Linking CXX executable sample_video_rectifier
[ 72%] Building CXX object src/calibration/camera/CMakeFiles/sample_calibration_camera.dir/main.cpp.o
[ 73%] Building CXX object src/vehicleio/CMakeFiles/sample_vehicleio.dir/main.cpp.o
[ 73%] Built target sample_video_rectifier
Scanning dependencies of target sample_object_detector
Scanning dependencies of target dw_samples_stereo_common
[ 74%] Building CXX object src/dnn/sample_object_detector/CMakeFiles/sample_object_detector.dir/main.cpp.o
[ 75%] Building CXX object src/stereo/stereo_common/CMakeFiles/dw_samples_stereo_common.dir/stereoCommon.cpp.o
[ 76%] Linking CXX executable sample_template
[ 77%] Linking CXX executable sample_sfm
[ 77%] Linking CXX executable sample_freespace_detection
Scanning dependencies of target sample_object_tracker
[ 77%] Linking CXX executable sample_maps
[ 78%] Building CXX object src/dnn/sample_object_tracker/CMakeFiles/sample_object_tracker.dir/main.cpp.o
[ 78%] Built target sample_sfm
[ 78%] Built target sample_template
[ 79%] Building CXX object src/lidar_accumulator/CMakeFiles/sample_lidar_accumulator.dir/userInput.cpp.o
[ 79%] Building CXX object src/dnn/sample_object_tracker/CMakeFiles/sample_object_tracker.dir/FeatureTracker2D.cpp.o
[ 79%] Built target sample_freespace_detection
Scanning dependencies of target sample_object_dwdetector
[ 79%] Building CXX object src/dnn/sample_object_dwdetector/CMakeFiles/sample_object_dwdetector.dir/main.cpp.o
[ 79%] Built target sample_maps
Scanning dependencies of target sample_trt_yolov3
[ 80%] Building CXX object src/dnn/sample_trt_yolov3/CMakeFiles/sample_trt_yolov3.dir/main.cpp.o
cc1plus: error: include location "/usr/include/opencv" is unsafe for cross-compilation [-Werror=poison-system-directories]
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
src/dnn/sample_trt_yolov3/CMakeFiles/sample_trt_yolov3.dir/build.make:62: recipe for target 'src/dnn/sample_trt_yolov3/CMakeFiles/sample_trt_yolov3.dir/main.cpp.o' failed
make[2]: *** [src/dnn/sample_trt_yolov3/CMakeFiles/sample_trt_yolov3.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:1949: recipe for target 'src/dnn/sample_trt_yolov3/CMakeFiles/sample_trt_yolov3.dir/all' failed
make[1]: *** [src/dnn/sample_trt_yolov3/CMakeFiles/sample_trt_yolov3.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 81%] Building CXX object src/calibration/camera/CMakeFiles/sample_calibration_camera.dir/CameraCalibrationSample.cpp.o
[ 82%] Linking CXX executable sample_vehicleio
[ 83%] Linking CXX executable sample_object_detector
[ 83%] Built target sample_object_detector
[ 83%] Built target sample_vehicleio
[ 84%] Linking CXX static library libdw_samples_stereo_common.a
[ 84%] Built target dw_samples_stereo_common
[ 84%] Linking CXX executable sample_icp
[ 84%] Built target sample_icp
[ 84%] Linking CXX executable sample_lidar_accumulator
[ 84%] Built target sample_lidar_accumulator
[ 85%] Linking CXX static library libdw_samples_drivenet_common.a
[ 86%] Linking CXX executable sample_object_tracker
[ 86%] Built target dw_samples_drivenet_common
[ 86%] Built target sample_object_tracker
[ 87%] Linking CXX executable sample_object_dwdetector
[ 87%] Built target sample_object_dwdetector
[ 88%] Linking CXX executable sample_calibration_camera
[ 88%] Built target sample_calibration_camera
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Am I missed any step?