installation of opencv3 on tx1

Hi Experts

Quick question? I want to install opencv3 for tx1 and I would use this guide:

http://dev.t7.ai/jetson/opencv/

Do I need to change anything in the script?

(I have already installed python3)

Another question: How much space do I need on the TX1 to install opencv3 on the tx1?

Any hints?

sojohans,

Do you mean you need to use opencv in python3?

Please try with “-DBUILD_opencv_python3=ON”

Hi WayneWWW

Yes I have already installed python3.

sojohans,

Hi WayneWWW

I tried to install opencv 3 with the above guide. But it returned an error (see below). Can you see what the problem is? (Thanks).

ubuntu@tegra-ubuntu:/home/nvidia/opencv-3.2.0/release$ cmake -D WITH_CUDA=ON -D CUDA_ARCH_BIN=“8.0” -D CUDA_ARCH_PTX="" -D WITH_OPENGL=OFF -D WITH_LIBV4L=ON -D BUILD_EXAMPLES=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D ENABLE_PRECOMPILED_HEADERS=OFF -D BUILD_opencv_python3=ON CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local …
– The CXX compiler identification is GNU 5.4.0
– The C compiler identification is GNU 5.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
– Detected version of GNU GCC: 54 (504)
– 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_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_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_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
– FP16: Compiler support is available
– Looking for pthread.h
– Looking for pthread.h - 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.8”, minimum required is “1.2.3”)
– Found TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (found version “4.0.6”)
– Found JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so
– 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
– Found Jasper: /usr/lib/aarch64-linux-gnu/libjasper.so (found version “1.900.1”)
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version “1.2.8”)
– Found PNG: /usr/lib/aarch64-linux-gnu/libpng.so (found version “1.2.54”)
– 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 - Failed
– Checking for module ‘gtk±3.0’
– No package ‘gtk±3.0’ found
– Checking for module ‘gtk±2.0’
– Found gtk±2.0, version 2.24.30
– Checking for module ‘gthread-2.0’
– Found gthread-2.0, version 2.48.1
– Checking for module ‘gstreamer-base-1.0’
– Found gstreamer-base-1.0, version 1.8.3
– Checking for module ‘gstreamer-video-1.0’
– Found gstreamer-video-1.0, version 1.8.3
– Checking for module ‘gstreamer-app-1.0’
– Found gstreamer-app-1.0, version 1.8.3
– Checking for module ‘gstreamer-riff-1.0’
– Found gstreamer-riff-1.0, version 1.8.3
– Checking for module ‘gstreamer-pbutils-1.0’
– Found gstreamer-pbutils-1.0, version 1.8.3
– Checking for module ‘libdc1394-2’
– Found libdc1394-2, version 2.2.4
– Checking for module ‘libv4l1’
– Found libv4l1, version 1.10.0
– Checking for module ‘libv4l2’
– Found libv4l2, version 1.10.0
– 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
– Checking for module ‘libgphoto2’
– No package ‘libgphoto2’ found
– CUDA detected: 8.0
– CUDA NVCC target flags: -gencode;arch=compute_80,code=sm_80;-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)
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– 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 exact version “2.7.12”)
– Found PythonInterp: /usr/bin/python3 (found suitable version “3.5.2”, minimum required is “3.4”)
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.5m.so (found suitable exact version “3.5.2”)
– Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
– 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)
– 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
– Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
– Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - 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_UNUSED_BUT_SET_VARIABLE
– Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
– Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
– Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
– Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
– Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed

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

– Platform:
– Timestamp: 2018-08-02T12:56:59Z
– Host: Linux 4.4.38-tegra aarch64
– CMake: 3.5.1
– CMake generator: Unix Makefiles
– CMake build tool: /usr/bin/make
– Configuration: Release

– C/C++:
– Built as dynamic libs?: YES
– C++ Compiler: /usr/bin/c++ (ver 5.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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -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 -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -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 -Wno-narrowing -Wno-comment -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 -Wno-narrowing -Wno-comment -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: /usr/lib/aarch64-linux-gnu/libpng.so /usr/lib/aarch64-linux-gnu/libz.so /usr/lib/aarch64-linux-gnu/libtiff.so /usr/lib/aarch64-linux-gnu/libjasper.so /usr/lib/aarch64-linux-gnu/libjpeg.so gtk-x11-2.0 gdk-x11-2.0 pangocairo-1.0 atk-1.0 cairo gdk_pixbuf-2.0 gio-2.0 pangoft2-1.0 pango-1.0 gobject-2.0 glib-2.0 fontconfig freetype gthread-2.0 gstbase-1.0 gstreamer-1.0 gstvideo-1.0 gstapp-1.0 gstriff-1.0 gstpbutils-1.0 dc1394 v4l1 v4l2 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg dl m pthread rt cudart nppc nppi npps cufft -L/usr/local/cuda-8.0/lib64
– 3rdparty dependencies: libwebp IlmImf tegra_hal

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

– GUI:
– QT: NO
– GTK+ 2.x: YES (ver 2.24.30)
– GThread : YES (ver 2.48.1)
– GtkGlExt: NO
– OpenGL support: NO
– VTK support: NO

– Media I/O:
– ZLib: /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.8)
– JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so (ver )
– WEBP: build (ver 0.3.1)
– PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.2.54)
– TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 - 4.0.6)
– JPEG 2000: /usr/lib/aarch64-linux-gnu/libjasper.so (ver 1.900.1)
– OpenEXR: build (ver 1.7.1)
– GDAL: NO
– GDCM: NO

– Video I/O:
– DC1394 1.x: NO
– DC1394 2.x: YES (ver 2.2.4)
– FFMPEG: YES
– 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
– GStreamer:
– base: YES (ver 1.8.3)
– video: YES (ver 1.8.3)
– app: YES (ver 1.8.3)
– riff: YES (ver 1.8.3)
– pbutils: YES (ver 1.8.3)
– OpenNI: NO
– OpenNI PrimeSensor Modules: NO
– OpenNI2: NO
– PvAPI: NO
– GigEVisionSDK: NO
– Aravis SDK: NO
– UniCap: NO
– UniCap ucil: NO
– V4L/V4L2: Using libv4l1 (ver 1.10.0) / libv4l2 (ver 1.10.0)
– XIMEA: NO
– Xine: NO
– gPhoto2: NO

– Parallel framework: pthreads

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

– NVIDIA CUDA
– Use CUFFT: YES
– Use CUBLAS: NO
– USE NVCUVID: NO
– NVIDIA GPU arch: 80
– NVIDIA PTX archs:
– Use fast math: NO

– OpenCL:
– Include path: /home/nvidia/opencv-3.2.0/3rdparty/include/opencl/1.2
– Use AMDFFT: NO
– Use AMDBLAS: NO

– Python 2:
– Interpreter: /usr/bin/python2.7 (ver 2.7.12)

– Python 3:
– Interpreter: /usr/bin/python3 (ver 3.5.2)
– Libraries: /usr/lib/aarch64-linux-gnu/libpython3.5m.so (ver 3.5.2)
– numpy: /home/ubuntu/.local/lib/python3.5/site-packages/numpy/core/include (ver 1.14.5)
– packages path: lib/python3.5/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: NO
– Performance tests: NO
– C/C++ Examples: NO

– Install path: /usr/local

– cvconfig.h is in: /home/nvidia/opencv-3.2.0/release



– Configuring done
– Generating done
– Build files have been written to: /home/nvidia/opencv-3.2.0/release
ubuntu@tegra-ubuntu:/home/nvidia/opencv-3.2.0/release$ make -j4
Scanning dependencies of target opencv_cudev
Scanning dependencies of target libwebp
Scanning dependencies of target carotene_objs
Scanning dependencies of target IlmImf
[ 0%] Building CXX object modules/cudev/CMakeFiles/opencv_cudev.dir/src/stub.cpp.o
[ 0%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/sum.cpp.o
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/io.c.o
[ 0%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Half/half.cpp.o
[ 0%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/warp_perspective.cpp.o
[ 0%] Linking CXX shared library …/…/lib/libopencv_cudev.so
[ 0%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/count_nonzero.cpp.o
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/webp.c.o
[ 0%] Built target opencv_cudev
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/vp8.c.o
[ 0%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/reduce.cpp.o
[ 0%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/sobel.cpp.o
[ 0%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexThrowErrnoExc.cpp.o
[ 1%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/accumulate.cpp.o
[ 1%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/resize.cpp.o
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/quant.c.o
[ 1%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/magnitude.cpp.o
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/buffer.c.o
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/alpha.c.o
[ 2%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/add.cpp.o
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/layer.c.o
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/tree.c.o
[ 2%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/separable_filter.cpp.o
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/frame.c.o
[ 2%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexBaseExc.cpp.o
[ 2%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/norm.cpp.o
[ 2%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/channel_extract.cpp.o
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/vp8l.c.o
[ 3%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/integral.cpp.o
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/idec.c.o
[ 3%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/threshold.cpp.o
[ 3%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosix.cpp.o
[ 3%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPosix.cpp.o
[ 3%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/remap.cpp.o
[ 3%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/mul.cpp.o
[ 3%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThread.cpp.o
[ 3%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/common.cpp.o
[ 4%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphore.cpp.o
[ 4%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutexPosix.cpp.o
[ 4%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosixCompat.cpp.o
[ 4%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/dot_product.cpp.o
[ 4%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPool.cpp.o
[ 4%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/warp_affine.cpp.o
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_neon.c.o
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutex.cpp.o
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_sse2.c.o
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathColorAlgo.cpp.o
[ 6%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/convert.cpp.o
[ 6%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/cpu.c.o
[ 6%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec.c.o
[ 6%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/template_matching.cpp.o
[ 6%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc.c.o
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathFun.cpp.o
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathRandom.cpp.o
[ 7%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/min_max.cpp.o
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o
[ 7%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/fill_minmaxloc.cpp.o
[ 7%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/blur.cpp.o
[ 7%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/fast.cpp.o
[ 7%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling_sse2.c.o
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o
[ 7%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling.c.o
[ 7%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/scharr.cpp.o
[ 8%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_sse2.c.o
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfZipCompressor.cpp.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/absdiff.cpp.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/channels_combine.cpp.o
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/yuv.c.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/convolution.cpp.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/in_range.cpp.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/flip.cpp.o
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_neon.c.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/gaussian_blur.cpp.o
[ 9%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/convert_depth.cpp.o
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless.c.o
[ 10%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/meanstddev.cpp.o
[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIntAttribute.cpp.o
[ 10%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/cmp.cpp.o
[ 10%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/bitwise.cpp.o
[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticitiesAttribute.cpp.o
[ 10%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/laplacian.cpp.o
[ 10%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/opticalflow.cpp.o
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling_neon.c.o
[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHeader.cpp.o
[ 10%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/median_filter.cpp.o
[ 11%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/canny.cpp.o
[ 12%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVecAttribute.cpp.o
[ 12%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/div.cpp.o
[ 12%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/convert_scale.cpp.o
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/token.c.o
[ 12%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/add_weighted.cpp.o
[ 12%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfInputFile.cpp.o
[ 12%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/colorconvert.cpp.o
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/quant.c.o
[ 12%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/morph.cpp.o
[ 12%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/minmaxloc.cpp.o
[ 13%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/pyramid.cpp.o
[ 13%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/phase.cpp.o
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/analysis.c.o
[ 14%] Building CXX object 3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/sub.cpp.o
[ 14%] Built target carotene_objs
[ 14%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOutputFile.cpp.o
[ 14%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelListAttribute.cpp.o
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/cost.c.o
Scanning dependencies of target tegra_hal
[ 15%] Linking CXX static library …/…/lib/libtegra_hal.a
[ 15%] Built target tegra_hal
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/webpenc.c.o
[ 15%] Generating opencl_kernels_core.cpp, opencl_kernels_core.hpp
[ 15%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o
nvcc fatal : Unsupported gpu architecture ‘compute_80’
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:206 (message):
Error generating
/home/nvidia/opencv-3.2.0/release/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o

modules/core/CMakeFiles/opencv_core.dir/build.make:63: recipe for target ‘modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o’ failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
CMakeFiles/Makefile2:1339: recipe for target ‘modules/core/CMakeFiles/opencv_core.dir/all’ failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/alpha.c.o
[ 15%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMultiView.cpp.o
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/iterator.c.o
[ 15%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStandardAttributes.cpp.o
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/filter.c.o
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/layer.c.o
[ 16%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/tree.c.o
[ 16%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfThreading.cpp.o
[ 16%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/frame.c.o
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaYca.cpp.o
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/vp8l.c.o
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelList.cpp.o
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/picture.c.o
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/config.c.o
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledInputFile.cpp.o
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/histogram.c.o
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfDoubleAttribute.cpp.o
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFloatAttribute.cpp.o
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/syntax.c.o
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIO.cpp.o
[ 18%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/backward_references.c.o
[ 18%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/muxinternal.c.o
[ 18%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFrameBuffer.cpp.o
[ 18%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/muxedit.c.o
[ 18%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/muxread.c.o
[ 19%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHuf.cpp.o
[ 19%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/rescaler.c.o
[ 19%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCode.cpp.o
[ 19%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/quant_levels.c.o
[ 19%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/bit_reader.c.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/bit_writer.c.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/utils.c.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/quant_levels_dec.c.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/color_cache.c.o
[ 20%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledRgbaFile.cpp.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/huffman.c.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/filters.c.o
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/huffman_encode.c.o
[ 20%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPxr24Compressor.cpp.o
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/thread.c.o
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringVectorAttribute.cpp.o
[ 21%] Linking C static library …/lib/liblibwebp.a
[ 21%] Built target libwebp
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFramesPerSecond.cpp.o
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMatrixAttribute.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledOutputFile.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImage.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledMisc.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCRgbaFile.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressionAttribute.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStdIO.cpp.o
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTestFile.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMisc.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPizCompressor.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaFile.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileOffsets.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOpaqueAttribute.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRationalAttribute.cpp.o
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCodeAttribute.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressor.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmapAttribute.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfScanLineInputFile.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRational.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRleCompressor.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfB44Compressor.cpp.o
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticities.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfWav.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAcesFile.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCode.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileDescriptionAttribute.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLut.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLineOrderAttribute.cpp.o
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImageAttribute.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmap.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringAttribute.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfConvert.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfBoxAttribute.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCodeAttribute.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAttribute.cpp.o
[ 26%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVersion.cpp.o
[ 27%] Linking CXX static library …/lib/libIlmImf.a
[ 27%] Built target IlmImf
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2

Looks you have wrong CUDA arch. For TX1, it should be compute_53. Try setting: CUDA_ARCH_BIN=“5.3”

Ok and thanks can I just re-use the cmake commard ? Or do I need clean up something?

Again thanks for the hint…
Soren

Probably just reconfiguring with cmake and rebuilding with make could do that properly, however for being 100% sure, if you have time I’d advise to reconfigure and rebuild in a new empty directory.

Hi,

I think I got it to work - I can now import cv2 and get the on onboard camera to work…

Thanks,

Sojohan

Hi experts

Another question I need to install the tracking API for opencv 3.2.

In order to do this I will use the cmake command again with :

-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.2.0/modules \

I have initially installed open cv in folder release.

Is it enough to just delete this folder and define a new folder to run the above cmake command?

Thanks,

Sojohans

You need first to get opencv_contrib.

Then reconfigure adding the contrib modules path and build.

Hi Honey_Patouceul

Thanks; do you know a link to a blog that explains this in more detail?

Thanks again,

Sojohans

I ran a text detection program which uses EAST model on TX1 kit. I encountered the problem of readnet module.
Lab5@tegra-ubuntu:~/Desktop/SEM_VII/TermProject$ python text_detection.py --image lebron_james.jpg --east frozen_east_text_detection.pb
[INFO] loading EAST text detector…
Traceback (most recent call last):
File “text_detection.py”, line 49, in
net = cv2.dnn.readNet(args[“east”])
AttributeError: ‘module’ object has no attribute ‘readNet’
Lab5@tegra-ubuntu:~/Desktop/SEM_VII/TermProject$

I read solution to it of upgrading OpenCV to OpenCV (Version : 4).
To do the needful I followed this particular site:
https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu/

During the step of cmake I encountered the following error:

(cv) Lab5@tegra-ubuntu:~/opencv-4.0.0/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/Lab5/opencv-4.0.0/cmake \ -D WITH_CUDA=ON -D CUDA_ARCH_BIN=“5.3” -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 BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D WITH_QT=ON -D WITH_OPENGL=ON …
CMake Warning at cmake/OpenCVUtils.cmake:611 (message):
Unexpected option: ENABLE_FAST_MATH (=ON)

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

– Looking for ccache - not found
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version “1.2.11”, minimum required is “1.2.3”)
– Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
– Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version “1.2.11”)
CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package):
By not providing “FindQt5Core.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Qt5Core”, but
CMake did not find one.

Could not find a package configuration file provided by “Qt5Core” with any
of the following names:

Qt5CoreConfig.cmake
qt5core-config.cmake

Add the installation prefix of “Qt5Core” to CMAKE_PREFIX_PATH or set
“Qt5Core_DIR” to a directory containing one of the above files. If
“Qt5Core” provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:635 (include)

qmake: could not exec ‘/usr/lib/aarch64-linux-gnu/qt4/bin/qmake’: No such file or directory
CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message):
Found unsuitable Qt version “” from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
cmake/OpenCVFindLibsGUI.cmake:34 (find_package)
CMakeLists.txt:635 (include)

[b]
– Configuring incomplete, errors occurred!
See also “/home/Lab5/opencv-4.0.0/build/CMakeFiles/CMakeOutput.log”.
See also “/home/Lab5/opencv-4.0.0/build/CMakeFiles/CMakeError.log”.
/b Lab5@tegra-ubuntu:~/opencv-4.0.0/build$

Please help me to resolve this isuues as soon as possible.