OpenCV version : 4.8.0
Ubuntu version : 22.04
Cmake GUI version : 3.22.1
Building failed history with this version :
with OpenGL
: ON (previously causing building error until I changed GTK to GTK2)OpenCV module
: included (previously causing build error until I disabledBUILD_opencv_xphoto
)make -j8
: causing building error until I switch tomake
only
Current settings :
General configuration for OpenCV 4.8.0 =====================================
Version control: unknown
Extra modules:
Location (extra): /home/hiro/Documents/opencv/extra/opencv_contrib-4.x/modules
Version control (extra): unknown
Platform:
Timestamp: 2023-11-09T18:46:20Z
Host: Linux 6.2.0-36-generic x86_64
CMake: 3.22.1
CMake generator: Unix Makefiles
CMake build tool: /bin/gmake
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (18 files): + SSSE3 SSE4_1
SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (37 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
AVX512_SKX (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
C/C++:
Built as dynamic libs?: YES
C++ standard: 11
C++ Compiler: /bin/c++ (ver 11.4.0)
C++ flags (Release): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /bin/cc
C flags (Release): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
Linker flags (Debug): -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
ccache: YES
Precompiled headers: NO
Extra dependencies: m pthread cudart_static dl rt nppc nppial nppicc nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-11.8/lib64 -L/usr/lib/x86_64-linux-gnu
3rdparty dependencies:
OpenCV modules:
To be built: alphamat aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc intensity_transform java line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz wechat_qrcode xfeatures2d ximgproc xobjdetect
Disabled: world xphoto
Disabled by dependency: -
Unavailable: cvv julia matlab ovis python2
Applications: tests perf_tests apps
Documentation: NO
Non-free algorithms: YES
GUI: GTK2
GTK+: YES (ver 2.24.33)
GThread : YES (ver 2.72.4)
GtkGlExt: YES (ver 1.2.0)
OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so)
VTK support: YES (ver 9.1.0)
Media I/O:
ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x020f)
PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37)
TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.3.0)
JPEG 2000: OpenJPEG (ver 2.4.0)
OpenEXR: /usr/lib/x86_64-linux-gnu/libImath-2_5.so /usr/lib/x86_64-linux-gnu/libIlmImf-2_5.so /usr/lib/x86_64-linux-gnu/libIex-2_5.so /usr/lib/x86_64-linux-gnu/libHalf-2_5.so /usr/lib/x86_64-linux-gnu/libIlmThread-2_5.so (ver 2_5)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: YES (2.2.6)
FFMPEG: YES
avcodec: YES (58.134.100)
avformat: YES (58.76.100)
avutil: YES (56.70.100)
swscale: YES (5.9.100)
avresample: NO
GStreamer: YES (1.20.3)
v4l/v4l2: YES (linux/videodev2.h)
Parallel framework: TBB (ver 2021.5 interface 11102)
Trace: YES (with Intel ITT)
Other third-party libraries:
Intel IPP: 2021.8 [2021.8.0]
at: /home/hiro/Documents/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
Intel IPP IW: sources (2021.8.0)
at: /home/hiro/Documents/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
VA: YES
Lapack: YES (/usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libcblas.so /usr/lib/x86_64-linux-gnu/libatlas.so)
Eigen: YES (ver 3.4.0)
Custom HAL: NO
Protobuf: build (3.19.1)
Flatbuffers: builtin/3rdparty (23.5.9)
NVIDIA CUDA: YES (ver 11.8, CUFFT CUBLAS)
NVIDIA GPU arch: 35 37 50 52 60 61 70 75 80 86 89 90
NVIDIA PTX archs:
cuDNN: NO
OpenCL: YES (INTELVA)
Include path: /home/hiro/Documents/opencv/source/opencv-4.8.0/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python 3:
Interpreter: /bin/python3 (ver 3.10.12)
Libraries: /usr/lib/x86_64-linux-gnu/libpython3.10.so (ver 3.10.12)
numpy: /home/hiro/.local/lib/python3.10/site-packages/numpy/core/include (ver 1.22.4)
install path: lib/python3.10/dist-packages/cv2/python-3.10
Python (for build): /bin/python3
Java:
ant: /bin/ant (ver 1.10.12)
Java: NO
JNI: /usr/lib/jvm/java-18-openjdk-amd64/include /usr/lib/jvm/java-18-openjdk-amd64/include/linux /usr/lib/jvm/java-18-openjdk-amd64/include
Java wrappers: YES (ANT)
Java tests: YES
OpenCV failed to find CuDNN and Java is written as NO for some reason. For information :
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
CuDNN version is 8.9.6 from tar source.
Previously installed using .deb package but OpenCV failed to find it as well.
java -version
openjdk version "18.0.2-ea" 2022-07-19
OpenJDK Runtime Environment (build 18.0.2-ea+9-Ubuntu-222.04)
OpenJDK 64-Bit Server VM (build 18.0.2-ea+9-Ubuntu-222.04, mixed mode, sharing)
ant -version
Apache Ant(TM) version 1.10.12
Error : no matching function error
[ 57%] Building CXX object modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/fast_icp.cpp.o
/home/hiro/Documents/opencv/extra/opencv_contrib-4.x/modules/rgbd/src/fast_icp.cpp: In member function āvirtual void cv::kinfu::GetAbInvoker::operator()(
const cv::Range&) constā:
/home/hiro/Documents/opencv/extra/opencv_contrib-4.x/modules/rgbd/src/fast_icp.cpp:242:38: error: no matching function for call to āv_and(cv::hal_baselin
e::simd128_cpp::v_float32, cv::hal_baseline::simd128_cpp::v_float32)ā
242 | if(!v_check_all(v_and(v_ge(oldCoords, v_setzero_f32()), v_lt(oldCoords, vframe))))
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.... (ommited)
/home/hiro/Documents/opencv/source/opencv-4.8.0/modules/core/include/opencv2/core/hal/intrin.hpp:817:5: note: in expansion of macro āOPENCV_HAL_WRAP_BIN_
OP_LOGICā
817 | OPENCV_HAL_WRAP_BIN_OP_LOGIC(v_int64)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hiro/Documents/opencv/extra/opencv_contrib-4.x/modules/rgbd/src/fast_icp.cpp:312:38: error: no matching function for call to āv_or(cv::hal_baseline
::v_float32x4&, cv::hal_baseline::v_float32x4)ā
312 | v_float32x4 vd = v_or(VxNv, v_float32x4(0, 0, 0, dotp));
In file included from /home/hiro/Documents/opencv/extra/opencv_contrib-4.x/modules/rgbd/src/precomp.hpp:22,
from /home/hiro/Documents/opencv/extra/opencv_contrib-4.x/modules/rgbd/src/fast_icp.cpp:7:
.... (ommited)
make[2]: *** [modules/rgbd/CMakeFiles/opencv_rgbd.dir/build.make:197: modules/rgbd/CMakeFiles/opencv_rgbd.dir/src/fast_icp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7338: modules/rgbd/CMakeFiles/opencv_rgbd.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Any suggestion ?