Ask Your Question

Revision history [back]

failing cmake configure for opencv on Jetson TX2

I'm trying to build opencv on Jetson TX2 and run the cmake configure like this, and the output goes like below. apsync@apsync:~/GitHub/opencv/build$ cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules .. -- Looking for ccache - not found -- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) -- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.8") -- Checking for module 'gtk+-3.0' -- No package 'gtk+-3.0' found -- 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 module 'libavresample' -- No package 'libavresample' found -- Checking for module 'libgphoto2' -- No package 'libgphoto2' found -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off -- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR) -- A library with BLAS API found. -- A library with LAPACK API found. -- 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 CMake Error at cmake/OpenCVModule.cmake:288 (message): No modules has been found: /home/apsync/GitHub/opencv/opencv_contrib/modules Call Stack (most recent call first): cmake/OpenCVModule.cmake:368 (_glob_locations) modules/CMakeLists.txt:7 (ocv_glob_modules)

-- Excluding from source files list: modules/core/src/convert.sse4_1.cpp -- Excluding from source files list: modules/core/src/convert.avx2.cpp -- Excluding from source files list: modules/imgproc/src/undistort.avx2.cpp -- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp -- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp -- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp -- Excluding from source files list: modules/imgproc/src/filter.avx2.cpp -- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp -- Excluding from source files list: modules/imgproc/src/corner.avx.cpp -- Excluding from source files list: modules/objdetect/src/haar.avx.cpp -- Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx.cpp -- Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx2.cpp -- Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx512_skx.cpp

-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp

-- General configuration for OpenCV 4.0.0-pre =====================================

-- Version control: 3.4.2-101-gfa66c6b

-- Platform: -- Timestamp: 2018-07-12T02:36:37Z -- Host: Linux 4.4.38-tegra aarch64 -- CMake: 3.5.1 -- 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 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 -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): -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: /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 -fdiagnostics-show-option -pthread -fomit-frame-pointer -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-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO -- Precompiled headers: YES -- Extra dependencies: dl m pthread rt

-- 3rdparty dependencies:

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

-- Non-free algorithms: NO

-- GUI: -- GTK+: YES (ver 2.24.30) -- GThread : YES (ver 2.48.2) -- GtkGlExt: 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 80) -- WEBP: build (ver encoder: 0x020e) -- PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.2.54) -- TIFF: build (ver 42 - 4.0.9) -- JPEG 2000: /usr/lib/aarch64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES

-- PXM: YES

-- Video I/O: -- DC1394: 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) -- libv4l/libv4l2: NO -- v4l/v4l2: linux/videodev2.h

-- gPhoto2: NO

-- Parallel framework: pthreads

-- Trace: YES (built-in)

-- Other third-party libraries: -- Lapack: NO -- Eigen: YES (ver 3.3.4) -- Custom HAL: YES (carotene (ver 0.0.1))

-- Protobuf: build (3.5.1)

-- OpenCL: YES (no extra features) -- Include path: /home/apsync/GitHub/opencv/3rdparty/include/opencl/1.2

-- Link libraries: Dynamic load

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

-- packages path: lib/python2.7/dist-packages

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

-- Java:
-- ant: NO -- JNI: NO -- Java wrappers: NO

-- Java tests: NO

-- Matlab: NO

-- Install to: /usr/local

-- -----------------------------------------------------------------

-- Configuring incomplete, errors occurred! See also "/home/apsync/GitHub/opencv/build/CMakeFiles/CMakeOutput.log". See also "/home/apsync/GitHub/opencv/build/CMakeFiles/CMakeError.log".

click to hide/show revision 2
None

updated 2018-07-12 10:16:33 -0600

berak gravatar image

failing cmake configure for opencv on Jetson TX2

I'm trying to build opencv on Jetson TX2 and run the cmake configure like this, and the output goes like below.

 apsync@apsync:~/GitHub/opencv/build$ cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
 -- Looking for ccache - not found
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") 
-- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.8") 
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- 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 module 'libavresample'
--   No package 'libavresample' found
-- Checking for module 'libgphoto2'
--   No package 'libgphoto2' found
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing:  Atlas_CLAPACK_INCLUDE_DIR) 
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- 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
CMake Error at cmake/OpenCVModule.cmake:288 (message):
  No modules has been found:
  /home/apsync/GitHub/opencv/opencv_contrib/modules
Call Stack (most recent call first):
  cmake/OpenCVModule.cmake:368 (_glob_locations)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

(ocv_glob_modules) -- Excluding from source files list: modules/core/src/convert.sse4_1.cpp -- Excluding from source files list: modules/core/src/convert.avx2.cpp -- Excluding from source files list: modules/imgproc/src/undistort.avx2.cpp -- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp -- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp -- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp -- Excluding from source files list: modules/imgproc/src/filter.avx2.cpp -- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp -- Excluding from source files list: modules/imgproc/src/corner.avx.cpp -- Excluding from source files list: modules/objdetect/src/haar.avx.cpp -- Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx.cpp <BUILD>/modules/dnn/layers/layers_common.avx.cpp -- Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx2.cpp <BUILD>/modules/dnn/layers/layers_common.avx2.cpp -- Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx512_skx.cpp

<BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp -- Excluding from source files list: modules/features2d/src/fast.avx2.cpp

modules/features2d/src/fast.avx2.cpp -- -- General configuration for OpenCV 4.0.0-pre =====================================

===================================== -- Version control: 3.4.2-101-gfa66c6b

3.4.2-101-gfa66c6b -- -- Platform: -- Timestamp: 2018-07-12T02:36:37Z -- Host: Linux 4.4.38-tegra aarch64 -- CMake: 3.5.1 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make

/usr/bin/make -- Configuration: Release

Release -- -- CPU/HW features: -- Baseline: NEON FP16 -- required: NEON

NEON -- disabled: VFPV3

VFPV3 -- -- 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 -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): -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: /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 -fdiagnostics-show-option -pthread -fomit-frame-pointer -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-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO -- Precompiled headers: YES -- Extra dependencies: dl m pthread rt

rt -- 3rdparty dependencies:

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

NO -- Non-free algorithms: NO

NO -- -- GUI: -- GTK+: YES (ver 2.24.30) -- GThread : YES (ver 2.48.2) -- GtkGlExt: NO

NO -- VTK support: NO

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 80) -- WEBP: build (ver encoder: 0x020e) -- PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.2.54) -- TIFF: build (ver 42 - 4.0.9) -- JPEG 2000: /usr/lib/aarch64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES

YES -- PXM: YES

YES -- -- Video I/O: -- DC1394: 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) -- libv4l/libv4l2: NO -- v4l/v4l2: linux/videodev2.h

linux/videodev2.h -- gPhoto2: NO

NO -- -- Parallel framework: pthreads

pthreads -- -- Trace: YES (built-in)

(built-in) -- -- Other third-party libraries: -- Lapack: NO -- Eigen: YES (ver 3.3.4) -- Custom HAL: YES (carotene (ver 0.0.1))

0.0.1)) -- Protobuf: build (3.5.1)

(3.5.1) -- -- OpenCL: YES (no extra features) -- Include path: /home/apsync/GitHub/opencv/3rdparty/include/opencl/1.2

/home/apsync/GitHub/opencv/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load

load -- -- Python 2: -- Interpreter: /usr/bin/python2.7 (ver 2.7.12) -- Libraries: /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.12) -- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0)

1.11.0) -- packages path: lib/python2.7/dist-packages

lib/python2.7/dist-packages -- -- Python (for build): /usr/bin/python2.7

/usr/bin/python2.7 -- -- Java:
-- ant: NO -- JNI: NO -- Java wrappers: NO

NO -- Java tests: NO

NO -- -- Matlab: NO

NO -- -- Install to: /usr/local

-- -----------------------------------------------------------------

/usr/local -- ----------------------------------------------------------------- -- -- Configuring incomplete, errors occurred! See also "/home/apsync/GitHub/opencv/build/CMakeFiles/CMakeOutput.log". See also "/home/apsync/GitHub/opencv/build/CMakeFiles/CMakeError.log".

"/home/apsync/GitHub/opencv/build/CMakeFiles/CMakeError.log".