Build OpenCV 3.4 with CUDA on NVIDIA Jetson TX2

Hello everyone!

I’m installing OpenCV 3.4 with CUDA on my TX2.
I’m facing problems.
first of all my Jetson configurations:
JETPACK 4.2
Ubuntu 18.04

During the installation process, I get this error:

Scanning dependencies of target pch_Generate_opencv_test_videostab
[ 38%] Generating test_precomp.hpp
[ 38%] Generating test_precomp.hpp.gch/opencv_test_videostab_RELEASE.gch
[ 38%] Built target pch_Generate_opencv_test_superres
Scanning dependencies of target opencv_cudev
make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libGL.so', needed by 'lib/libopencv_cudev.so.3.4.1'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 38%] Building CXX object modules/cudev/CMakeFiles/opencv_cudev.dir/src/stub.cpp.o
CMakeFiles/Makefile2:1786: recipe for target 'modules/cudev/CMakeFiles/opencv_cudev.dir/all' failed
make[1]: *** [modules/cudev/CMakeFiles/opencv_cudev.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 38%] Built target pch_Generate_opencv_videostab
[ 38%] Built target pch_Generate_opencv_test_videostab
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

real	11m34.889s
user	31m8.000s
sys	2m16.392s
Make did not build 
Retrying ... 
[  0%] Built target gen-pkgconfig
[  2%] Built target libtiff
[  8%] Built target libwebp
[ 10%] Built target libjasper
[ 10%] Built target libpng
[ 14%] Built target IlmImf
[ 19%] Built target libprotobuf
[ 21%] Built target carotene_objs
[ 22%] Built target tegra_hal
make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libGL.so', needed by 'lib/libopencv_cudev.so.3.4.1'.  Stop.
CMakeFiles/Makefile2:1786: recipe for target 'modules/cudev/CMakeFiles/opencv_cudev.dir/all' failed
make[1]: *** [modules/cudev/CMakeFiles/opencv_cudev.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Make did not successfully build
Please fix issues and retry build

I’ve made this change in ‘/usr/local/cuda-10.0/include/cuda_gl_interop.h’
but still the same error

diff --git a/cuda_gl_interop.h b/cuda_gl_interop.h
index 0f4aa17..e8c538c 100644
--- a/cuda_gl_interop.h
+++ b/cuda_gl_interop.h
@@ -59,13 +59,13 @@
 
 #else /* __APPLE__ */
 
-#if defined(__arm__) || defined(__aarch64__)
-#ifndef GL_VERSION
-#error Please include the appropriate gl headers before including cuda_gl_interop.h
-#endif
-#else
+//#if defined(__arm__) || defined(__aarch64__)
+//#ifndef GL_VERSION
+//#error Please include the appropriate gl headers before including cuda_gl_interop.h
+//#endif
+//#else
 #include <GL/gl.h>
-#endif
+//#endif
 
 #endif /* __APPLE__ */
cd /usr/lib/aarch64-linux-gnu/
sudo ln -sf tegra/libGL.so libGL.so

I’m following Jetsonhacks to install opencv 3.4 with cuda
Jetson configurations:
JETPACK 4.2
Ubuntu 18.04

Just a comment: Do you really need to install OpenCV 3.4? By upgrading/installing newer OpenCV I’ve destroyed my OpenCV installation many times and i’ve had to re-flash my hardware several times. If you can live with OpenCV3.3 i would recommend you just flash using the new Jetpack 4.2 it will include Cuda 10 and OpenCV 3.3.0 for you.

Thanks for your reply.
I know that jetpack 4.2 include opencv3.3
But I want to use OpenCV with Cuda and JetsonHacks has a tutorial to install OpenCV 3.4 with CUDA.

This looks weird to me. Check everything is ok with:

sha1sum -c /etc/nv_tegra_release

If all ok, you may find the lib in /usr/lib/aarch64-linux-gnu/tegra, so you may try to make a symlink such as (no Nano for checking, I’m on a TX2 running R28.2.0):

sudo su
cd /usr/lib/aarch64-linux-gnu
ln -s tegra/libGL.so.1 libGL.so
exit

For building opencv-3.4, you may have a look to this script installing opencv-3.4.0 on TX2. For nano you would change CUDA_ARCH_BIN=“6.2” to CUDA_ARCH_BIN=“5.3”. You may also change for 3.4.1 version.
But you may also use this script for installing opencv4 for Nano.

Hello!!
Thank so for your help. I’ve installed OpenCV 3.4 with CUDA on my jetson TX2.
Thanks for sharing the script: https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.0.0_Nano.sh

Now I have other problems… I don’t know why…
Onboard camera not open.
I run my python script:

import numpy as np
import cv2

cap = cv2.VideoCapture("nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)I420, framerate=(fraction)30/1 ! nvvidconv flip-method=4 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink")

while(True):
    #Captura frame por frame
    ret, img = cap.read()
    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    cv2.imshow('Video Output', img)
    k = cv2.waitKey(10) & 0xFF
    if k==27:
        break



#cuando todas las cosas esten hechas, dejar la captura
cap.release()
cv2.destroyAllWindows()

I don’t get errors but the camera not open, just waiting:

diego@diego-desktop:~/Documents/OpenCV_examples$ python cannyDetection.py
Called with args:
Namespace(video_device=0)
OpenCV version: 3.4.0
('Device Number:', 0)
VIDEOIO ERROR: V4L: device nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)640, height=(int)480, format=(string)I420, framerate=(fraction)30/1 ! nvvidconv ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink: Unable to query number of channels

I waited 20 minutes and nothing happened.

You may add this line for checking your opencv lib from python:

print(cv2.getBuildInformation())

and check if it has gstreamer support. If not the expected opencv version, you may read this.

I get this:

General configuration for OpenCV 3.3.1 =====================================
  Version control:               3.3.1-2-g31ccdfe11

  Platform:
    Timestamp:                   2019-02-06T09:45:58Z
    Host:                        Linux 4.9.140-tegra aarch64
    CMake:                       2.8.12.2
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               Release

  CPU/HW features:
    Baseline:                    NEON FP16
      required:                  NEON
      disabled:                  VFPV3

  C/C++:
    Built as dynamic libs?:      YES
    C++11:                       YES
    C++ Compiler:                /usr/bin/c++  (ver 7.3.0)
    C++ flags (Release):         -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 -Wno-implicit-fallthrough -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections    -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -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 -Wno-implicit-fallthrough -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/bin/cc
    C flags (Release):           -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 -Wno-implicit-fallthrough -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections    -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -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 -Wno-implicit-fallthrough -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections    -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      
    Linker flags (Debug):        
    ccache:                      NO
    Precompiled headers:         NO
    Extra dependencies:          dl m pthread rt /usr/lib/aarch64-linux-gnu/libtbb.so
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 core flann imgproc ml objdetect photo video dnn imgcodecs shape videoio highgui superres ts features2d calib3d stitching videostab python2 python3
    Disabled:                    js world
    Disabled by dependency:      -
    Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java viz

  GUI: 
    QT:                          NO
    GTK+ 2.x:                    YES (ver 2.24.32)
    GThread :                    YES (ver 2.56.3)
    GtkGlExt:                    NO
    OpenGL support:              NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
    JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver )
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
    TIFF:                        /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 - 4.0.9)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     NO
    GDAL:                        NO
    GDCM:                        NO

  Video I/O:
    DC1394 1.x:                  NO
    DC1394 2.x:                  NO
    FFMPEG:                      YES
      avcodec:                   YES (ver 57.107.100)
      avformat:                  YES (ver 57.83.100)
      avutil:                    YES (ver 55.78.100)
      swscale:                   YES (ver 4.8.100)
      avresample:                NO
    GStreamer:                   
      base:                      YES (ver 1.14.1)
      video:                     YES (ver 1.14.1)
      app:                       YES (ver 1.14.1)
      riff:                      YES (ver 1.14.1)
      pbutils:                   YES (ver 1.14.1)
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    OpenNI2:                     NO
    PvAPI:                       NO
    GigEVisionSDK:               NO
    Aravis SDK:                  NO
    UniCap:                      NO
    UniCap ucil:                 NO
    V4L/V4L2:                    NO/YES
    XIMEA:                       NO
    Xine:                        NO
    Intel Media SDK:             NO
    gPhoto2:                     NO

  Parallel framework:            TBB (ver 2017.0 interface 9107)

  Trace:                         YES ()

  Other third-party libraries:
    Use Intel IPP:               NO
    Use Intel IPP IW:            NO
    Use VA:                      NO
    Use Intel VA-API/OpenCL:     NO
    Use Lapack:                  NO
    Use Eigen:                   YES (ver 3.3.4)
    Use Cuda:                    NO
    Use OpenCL:                  NO
    Use OpenVX:                  NO
    Use custom HAL:              YES (carotene (ver 0.0.1))

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.15)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.15rc1)
    numpy:                       /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.3)
    packages path:               lib/python2.7/dist-packages

  Python 3:
    Interpreter:                 /usr/bin/python3 (ver 3.6.7)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.7)
    numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.13.3)
    packages path:               lib/python3.6/dist-packages

  Python (for build):            /usr/bin/python2.7

  Java:
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Matlab:                        Matlab not found or implicitly disabled

  Documentation:
    Doxygen:                     NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              YES

  Install path:                  /usr

  cvconfig.h is in:              /home/nvidia/build_opencv/build
-----------------------------------------------------------------

apparently GStreamer is enabled

I’m having a similar issue and ‘sha1sum -c /etc/nv_tegra_release’ says libv4lconvert.so doesn’t pass the check. How to deal with this? I tried to compile without solving this problem, and the complied opencv does not have libv4l features.

Any idea what may have caused this problem and how to solve it? (Can it be version problem? But I cannot find another version of libv4l-dev through apt-get)

Many thanks!

HI buddy! Honey_patouceul

I’m still facing issues with OpenCV. I can’t open the onboard camera.

GStreamer is enabled…
All started when I upgraded the Jetpack to 4.2
after that Caffe was not working, I figured out and then OpenCV 3.3 was not working, after that, I’ve installed OpenCV 3.4 and is not working…
When I tried to go back to jetpack 3.3 there were errors during installation like “Cuda was not installed please do it manually”
I don’t know…

diego@diego-desktop:~/Documents/OpenCV_examples$ sudo python Captura_video.py
VIDEOIO ERROR: V4L: device nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1 ! nvtee ! nvvidconv flip-method=2 ! video/x-raw(memory:NVMM), format=(string)I420 ! nvoverlaysink -e ! appsink: Unable to query number of channels

You should first check that basic L4T binaries are OK with:

sha1sum -c /etc/nv_tegra_release

If something is not ok you would have to fix it. May be reflash.

Then you would have to be sure CUDA is installed. When installed, you would have it installed into /usr/local/cuda (which is a symlink to /usr/local/cuda-X.Y depending on version). If this is not your case, you would have first to fix that. With JetPack you can run post-install only, it wouldn’t need to flash, everything would be installed through ethernet.

It seems for now that on your TX2 python uses the cv2.so from JetPack, as shown version is 3.3.1. This version has gstreamer support, but no CUDA support. I can’t tell a clean way for fixing this, but for a nasty fix you may check this and adapt for your case.

Another thing is that nvcamerasrc is deprecated in new releases, so you would use nvarguscamerasrc instead, with NV12 format instead of I420. Not sure if you need nvtee in your pipeline.

Last, and maybe most important, you would remove nvoverlaysink from the pipeline (and ‘-e’, which is only for gst-launch). Being a pure sink, it doesn’t output to appsink, so your opencv app won’t receive frames. This may be the other main point.

is there a workaround if:

sha1sum -c /etc/nv_tegra_release

fails at this?

/usr/lib/aarch64-linux-gnu/libv4lconvert.so: FAILED
/usr/lib/aarch64-linux-gnu/libv4l/plugins/libv4l2_nvvidconv.so: OK
/usr/lib/aarch64-linux-gnu/libv4l/plugins/libv4l2_nvvideocodec.so: OK
/usr/lib/xorg/modules/drivers/nvidia_drv.so: OK
/usr/lib/xorg/modules/extensions/libglxserver_nvidia.so: OK
sha1sum: WARNING: 1 computed checksum did NOT match

I think that is the root of my problem. I’m trying to compile opencv 3.4.6 with contrib files:
I’m executing:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_CUDA=ON -D CUDA_ARCH_BIN=“6.2” -D CUDA_ARCH_PTX=“”
-D WITH_CUBLAS=ON -D ENABLE_FAST_MATH=ON -D CUDA_FAST_MATH=ON
-D ENABLE_NEON=ON -D WITH_LIBV4L=ON
-D OPENCV_PYTHON3_INSTALL_PATH=/home/jetsontx2/pcv_master_env/lib/python3.6/site-packages
-D BUILD_TESTS=OFF
-D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF
-D OPENCV_EXTRA_MODULES_PATH=/home/jetsontx2/src/opencv_contrib/modules
-D WITH_QT=ON -D WITH_OPENGL=ON …

and the compilation exits at 39% with this screen:

btw: the same is happening with linked opencv 4.0.0 script linked above

this is my output after running cmake command above:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \

-D WITH_CUDA=ON -D CUDA_ARCH_BIN=“6.2” -D CUDA_ARCH_PTX=“”
-D WITH_CUBLAS=ON -D ENABLE_FAST_MATH=ON -D CUDA_FAST_MATH=ON
-D ENABLE_NEON=ON -D WITH_LIBV4L=ON -D WITH_GSTREAMER=ON
-D BUILD_opencv_python2=ON -D BUILD_opencv_python3=ON
-D OPENCV_PYTHON3_INSTALL_PATH=…/…/…/pcv_master_env/lib/python3.6/site-packages
-D BUILD_TESTS=OFF
-D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF
-D OPENCV_EXTRA_MODULES_PATH=…/…/opencv_contrib-4.1.0/modules
-D WITH_QT=ON -D WITH_OPENGL=ON …
– The CXX compiler identification is GNU 7.4.0
– The C compiler identification is GNU 7.4.0
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – 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: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
CMake Warning at cmake/OpenCVUtils.cmake:656 (message):
Unexpected option: ENABLE_FAST_MATH (=ON)

Condition: IF ((;CV_GCC;AND;(;X86;OR;X86_64;);))
Call Stack (most recent call first):
CMakeLists.txt:462 (OCV_OPTION)

– Found PythonInterp: /usr/bin/python2.7 (found suitable version “2.7.15”, minimum required is “2.7”)
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable exact version “2.7.15+”)
– Found PythonInterp: /home/jetsontx2/pcv_master_env/bin/python3 (found suitable version “3.6.8”, minimum required is “3.2”)
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.6m.so (found suitable exact version “3.6.8”)
– 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_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_WIMPLICIT_FALLTHROUGH_3
– Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success
– Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3
– Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success
– Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW
– Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success
– Performing Test HAVE_C_WNO_STRICT_OVERFLOW
– Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
– 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_FFAST_MATH
– Performing Test HAVE_CXX_FFAST_MATH - Success
– Performing Test HAVE_C_FFAST_MATH
– Performing Test HAVE_C_FFAST_MATH - 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 - Success
– 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
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version “1.2.11”, minimum required is “1.2.3”)
– Found JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so
– Found TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (found version “4.0.9”)
– 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_SHADOW
– Performing Test HAVE_C_WNO_SHADOW - Success
– Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
– Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - 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_IMPLICIT_FALLTHROUGH
– Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
– Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
– 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_UNUSED
– Performing Test HAVE_C_WNO_UNUSED - Success
– Performing Test HAVE_C_WNO_SIGN_COMPARE
– Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
– Performing Test HAVE_C_WNO_POINTER_COMPARE
– Performing Test HAVE_C_WNO_POINTER_COMPARE - Success
– Performing Test HAVE_C_WNO_ABSOLUTE_VALUE
– Performing Test HAVE_C_WNO_ABSOLUTE_VALUE - Failed
– Performing Test HAVE_C_WNO_UNUSED_PARAMETER
– Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
– Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
– Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version “1.2.11”)
– Found PNG: /usr/lib/aarch64-linux-gnu/libpng.so (found version “1.6.34”)
– Looking for /usr/include/libpng/png.h
– Looking for /usr/include/libpng/png.h - found
– Looking for semaphore.h
– Looking for semaphore.h - found
– Performing Test HAVE_CXX_WNO_SHADOW
– Performing Test HAVE_CXX_WNO_SHADOW - Success
– Performing Test HAVE_CXX_WNO_UNUSED
– Performing Test HAVE_CXX_WNO_UNUSED - Success
– Performing Test HAVE_CXX_WNO_SIGN_COMPARE
– Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
– Performing Test HAVE_CXX_WNO_UNDEF
– Performing Test HAVE_CXX_WNO_UNDEF - Success
– Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
– Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
– Performing Test HAVE_CXX_WNO_UNINITIALIZED
– Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
– Performing Test HAVE_CXX_WNO_SWITCH
– Performing Test HAVE_CXX_WNO_SWITCH - Success
– Performing Test HAVE_CXX_WNO_PARENTHESES
– Performing Test HAVE_CXX_WNO_PARENTHESES - Success
– Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
– Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
– Performing Test HAVE_CXX_WNO_EXTRA
– Performing Test HAVE_CXX_WNO_EXTRA - Success
– Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
– Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
– Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION
– Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Success
– Performing Test HAVE_CXX_WNO_DEPRECATED
– Performing Test HAVE_CXX_WNO_DEPRECATED - Success
– Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
– Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
– Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
– Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed
– Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
– Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
– 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
– CUDA detected: 10.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
– Found Atlas: /usr/include/aarch64-linux-gnu
– Found Atlas (include: /usr/include/aarch64-linux-gnu, library: /usr/lib/aarch64-linux-gnu/libatlas.so)
– LAPACK(Atlas): LAPACK_LIBRARIES: /usr/lib/aarch64-linux-gnu/liblapack.so;/usr/lib/aarch64-linux-gnu/libcblas.so;/usr/lib/aarch64-linux-gnu/libatlas.so
– LAPACK(Atlas): Support is enabled.
– Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
– Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
– Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
– Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
– Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
– Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - 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_UNUSED_FUNCTION
– Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
– Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
– Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
– Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
– Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
– Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
– Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
– Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
– Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed
– Found JNI: /usr/lib/jvm/default-java/lib/libjawt.so
– VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
– 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
– ADE: Download: v0.1.1d.zip
– OpenCV Python: during development append to PYTHONPATH: /home/jetsontx2/jetson_software/opencv/opencv-4.1.0/release/python_loader
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Caffe: NO
– Protobuf: NO
– Glog: YES
– 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
– Checking for one of the modules ‘freetype2’
– Checking for one of the modules ‘harfbuzz’
– freetype2: YES
– harfbuzz: YES
– HDF5: Using hdf5 compiler wrapper to determine C configuration
– Found HDF5: /usr/lib/aarch64-linux-gnu/hdf5/serial/libhdf5.so;/usr/lib/aarch64-linux-gnu/libpthread.so;/usr/lib/aarch64-linux-gnu/libsz.so;/usr/lib/aarch64-linux-gnu/libz.so;/usr/lib/aarch64-linux-gnu/libdl.so;/usr/lib/aarch64-linux-gnu/libm.so (found version “1.10.0.1”)
– Module opencv_ovis disabled because OGRE3D was not found
– No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
– Found installed version of gflags: /usr/lib/aarch64-linux-gnu/cmake/gflags
– Detected gflags version: 2.2.1
– Checking SFM deps… TRUE
– CERES support is disabled. Ceres Solver for reconstruction API is required.
– Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
– Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
– HDF5: Using hdf5 compiler wrapper to determine C configuration
– Excluding from source files list: modules/imgproc/src/corner.avx.cpp
– Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
– Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
– Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
– Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
– Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
– Excluding from source files list: /modules/dnn/layers/layers_common.avx.cpp
– Excluding from source files list: /modules/dnn/layers/layers_common.avx2.cpp
– Excluding from source files list: /modules/dnn/layers/layers_common.avx512_skx.cpp
– freetype2: YES
– harfbuzz: YES
– Excluding from source files list: modules/features2d/src/fast.avx2.cpp
– Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
– Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
– Checking for modules ‘tesseract;lept’
– No package ‘tesseract’ found
– No package ‘lept’ found
– Tesseract: NO
– Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp
– xfeatures2d/boostdesc: Download: boostdesc_bgm.i
– xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
– xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
– xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
– xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
– xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
– xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
– xfeatures2d/vgg: Download: vgg_generated_48.i
– xfeatures2d/vgg: Download: vgg_generated_64.i
– xfeatures2d/vgg: Download: vgg_generated_80.i
– xfeatures2d/vgg: Download: vgg_generated_120.i
– data: Download: face_landmark_model.dat
– No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
– Found installed version of gflags: /usr/lib/aarch64-linux-gnu/cmake/gflags
– Detected gflags version: 2.2.1
– Checking SFM deps… TRUE
– CERES support is disabled. Ceres Solver for reconstruction API is required.
– Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
– Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed

– General configuration for OpenCV 4.1.0 =====================================
– Version control: unknown

– Extra modules:
– Location (extra): /home/jetsontx2/jetson_software/opencv/opencv_contrib-4.1.0/modules
– Version control (extra): unknown

– Platform:
– Timestamp: 2019-06-11T09:15:17Z
– Host: Linux 4.9.140-tegra aarch64
– CMake: 3.10.2
– CMake generator: Unix Makefiles
– CMake build tool: /usr/bin/make
– Configuration: RELEASE

– CPU/HW features:
– Baseline: NEON FP16
– required: NEON
– disabled: VFPV3

– C/C++:
– Built as dynamic libs?: YES
– C++ Compiler: /usr/bin/c++ (ver 7.4.0)
– C++ flags (Release): -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-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
– C++ flags (Debug): -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-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
– C Compiler: /usr/bin/cc
– C flags (Release): -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-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
– C flags (Debug): -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-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffast-math -ffunction-sections -fdata-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
– Linker flags (Release): -Wl,–gc-sections
– Linker flags (Debug): -Wl,–gc-sections
– ccache: NO
– Precompiled headers: YES
– Extra dependencies: m pthread /usr/lib/aarch64-linux-gnu/libGL.so /usr/lib/aarch64-linux-gnu/libGLU.so cudart_static -lpthread dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-10.0/lib64 -L/usr/lib/aarch64-linux-gnu
– 3rdparty dependencies:

– OpenCV modules:
– To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python3 quality reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
– Disabled: world
– Disabled by dependency: -
– Unavailable: cnn_3dobj java js matlab ovis ts viz
– Applications: apps
– Documentation: NO
– Non-free algorithms: NO

– GUI:
– QT: YES (ver 5.9.5)
– QT OpenGL support: YES (Qt5::OpenGL 5.9.5)
– GTK+: NO
– OpenGL support: YES (/usr/lib/aarch64-linux-gnu/libGL.so /usr/lib/aarch64-linux-gnu/libGLU.so)
– VTK support: NO

– Media I/O:
– ZLib: /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
– JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
– WEBP: build (ver encoder: 0x020e)
– PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
– TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
– JPEG 2000: build (ver 1.900.1)
– OpenEXR: build (ver 1.7.1)
– HDR: YES
– SUNRASTER: YES
– PXM: YES
– PFM: YES

– Video I/O:
– DC1394: YES (2.2.5)
– FFMPEG: YES
– avcodec: YES (57.107.100)
– avformat: YES (57.83.100)
– avutil: YES (55.78.100)
– swscale: YES (4.8.100)
– avresample: NO
– GStreamer: YES (1.14.1)
– v4l/v4l2: YES (linux/videodev2.h)

– Parallel framework: pthreads

– Trace: YES (built-in)

– Other third-party libraries:
– Lapack: YES (/usr/lib/aarch64-linux-gnu/liblapack.so /usr/lib/aarch64-linux-gnu/libcblas.so /usr/lib/aarch64-linux-gnu/libatlas.so)
– Eigen: YES (ver 3.3.4)
– Custom HAL: YES (carotene (ver 0.0.1))
– Protobuf: build (3.5.1)

– NVIDIA CUDA: YES (ver 10.0, CUFFT CUBLAS FAST_MATH)
– NVIDIA GPU arch: 62
– NVIDIA PTX archs:

– OpenCL: YES (no extra features)
– Include path: /home/jetsontx2/jetson_software/opencv/opencv-4.1.0/3rdparty/include/opencl/1.2
– Link libraries: Dynamic load

– Python 2:
– Interpreter: /usr/bin/python2.7 (ver 2.7.15)
– Libraries: /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.15+)
– numpy: /home/jetsontx2/.local/lib/python2.7/site-packages/numpy/core/include (ver 1.16.4)
– install path: lib/python2.7/dist-packages/cv2/python-2.7

– Python 3:
– Interpreter: /home/jetsontx2/pcv_master_env/bin/python3 (ver 3.6.8)
– Libraries: /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.8)
– numpy: /home/jetsontx2/pcv_master_env/lib/python3.6/site-packages/numpy/core/include (ver 1.16.4)
– install path: …/…/…/pcv_master_env/lib/python3.6/site-packages/cv2/python-3.6

– Python (for build): /usr/bin/python2.7

– Java:
– ant: NO
– JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
– Java wrappers: NO
– Java tests: NO

– Install to: /usr/local



– Configuring done
– Generating done
– Build files have been written to: /home/jetsontx2/jetson_software/opencv/opencv-4.1.0/release

During a flash the base sample rootfs is overlaid with some boot files, plus the NVIDIA-specific files. This is one of the NVIDIA-specific files:

/usr/lib/aarch64-linux-gnu/libv4lconvert.so: FAILED

If you still have your “Linux_for_Tegra/” subdirectory from the flash, then you have the driver package (driver package is the real flash software, the GUI is just a front end). Running the command “sudo ./apply_binaries.sh” is what overlays those files over the sample rootfs.

When apply_binaries.sh runs it basically just uses sudo to unpack some of the “Linux_for_Tegra/nv_tegra/” archives. In your case you’ll see what you want by listing this from the “Linux_for_Tegra/nv_tegra/” directory:

bunzip2 < nvidia_drivers.tbz2 | tar --list | grep libv4lconvert.so

Any method which unpacks this and puts it on the TX2 works if sudo is used. It is harmless to reinstall all of those files (the ones which are correct would be replaced with themselves).

  • You can copy it from the "Linux_for_Tegra/rootfs/usr/lib/aarch64-linux-gnu/liv4lconvert.so" location if you have that directory...flash would have used "apply_binaries.sh" to place this here. The last example is just a variation on this.
  • You can copy "nvidia_drivers.tbz2" to the TX2 in "/", and then:
    cd /
    sudo tar xvfj nvidia_drivers.tbz2
    # Optional:
    sudo rm nvidia_drivers.tbz2
    
  • You could run apply_binaries.sh from your host with an option to place content in a blank directory and just scp the file from there. Example (assumes you have account "ubuntu" on the TX2):
    cd /where/ever/it/is/Linux_for_Tegra/
    mkdir ~/deleteme
    sudo ./apply_binaries.sh --root ~/deleteme
    cd ~/deleteme/usr/lib/aarch64-linux-gnu
    scp libv4lconvert.so ubuntu@ip_address_of_tx2/~/Downloads
    ssh ubuntu@ip_address_of_tx2
    cd Downloads
    sudo cp libv4lconvert.so /usr/lib/aarch64-linux-gnu
    sudo chown root.root /usr/lib/aarch64-linux-gnu/libv4lconvert.so
    

After this the sha1sum should be valid.

worked perfectly thanks