OpenCV installation issues

I want to install DPX2 with opencv3.4 and cudnn7
See https://devtalk.nvidia.com/default/topic/1032772/faq/cross-compiling-opencv-3-4-0-on-pdk-5-0-5-0/

incompatible /usr/local/cuda-9.0/lib64/libnpps.so when searching for -lnpps
/home/calmcar/px2/5050bL_SDK/DriveSDK/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/../../libexec/aarch64-gnu-linux/gcc/aarch64-gnu-linux/4.9.2/ld: skipping incompatible /usr/local/cuda-9.0/lib64/libcublas.so when searching for -lcublas
/home/calmcar/px2/5050bL_SDK/DriveSDK/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/../../libexec/aarch64-gnu-linux/gcc/aarch64-gnu-linux/4.9.2/ld: skipping incompatible /usr/local/cuda-9.0/lib64/libcufft.so when searching for -lcufft
collect2: error: ld returned 1 exit status
modules/cudev/CMakeFiles/opencv_cudev.dir/build.make:95: recipe for target 'lib/libopencv_cudev.so.3.4.0' failed
make[2]: *** [lib/libopencv_cudev.so.3.4.0] Error 1
CMakeFiles/Makefile2:1814: recipe for target 'modules/cudev/CMakeFiles/opencv_cudev.dir/all' failed
make[1]: *** [modules/cudev/CMakeFiles/opencv_cudev.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Make error
Because of what?

This is my configuration

cmake -DCMAKE_BUILD_TYPE=Release -DVIBRANTE_PDK:STRING=/home/calmcar/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.1 6.2' -DCUDA_ARCH_PTX="" -DINSTALL_C_EXAMPLES=ON -DINSTALL_TESTS=OFF -DVIBRANTE=TRUE VERBOSE=1 -DOPENCV_TEST_DATA_PATH=../opencv_extra/testdata ..

Dear Calmcar-Bao,

Did you apply CUDA9.0 patch for DPX2 OpenCV3?
If not, could you please refer to below link?
https://devtalk.nvidia.com/default/topic/1032172/faq/drivepx2-opencv3-cuda9-patch/

Best Regards,
Steve Byun

@SteveNV
It is now possible to compile successfully. . do not know what is happening.
After the successful compilation, I am directly in the install, bin share include lib four files SCP to PX2? Or made into img mount?