# Opencv 4.5+ c++ on Ubuntu 18.04

**URL:** <https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212>\
**Category:** C++\
**Tags:** build\
**Created:** [September 14, 2021, 4:38pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212 "2021-09-14T16:38:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![design-lion](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@design-lion](https://forum.opencv.org/u/design-lion)\
**Post date:** [September 14, 2021, 4:38pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/1 "2021-09-14T16:38:26Z")

</div>

is there a script for installing opencv 4.5+ c++ on Ubuntu 18.04?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 14, 2021, 4:52pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/2 "2021-09-14T16:52:11Z")

</div>

> [@design-lion](#):
>
> is there a script for installing opencv 4.5+ c++ on Ubuntu 18.04?

if “script” means: install something prebuilt – forget the idea immediately.

[build locally from github src](https://github.com/opencv/opencv_contrib#readme)

---

<div class="post-metadata">

**Author:** ![design-lion](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@design-lion](https://forum.opencv.org/u/design-lion)\
**Post date:** [September 14, 2021, 5:04pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/3 "2021-09-14T17:04:23Z")

</div>

I want to make opencv4+ c++ on Ubuntu18.04 Server. Can I give specific installation dependencies and cmake specific commands? I tried cmake many times and failed.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 14, 2021, 5:13pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/4 "2021-09-14T17:13:10Z")

</div>

> [@design-lion](#):
>
> I tried cmake many times and failed.

show what you tried, and the resp. errors, then we can try to help

---

<div class="post-metadata">

**Author:** ![design-lion](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@design-lion](https://forum.opencv.org/u/design-lion)\
**Post date:** [September 14, 2021, 5:56pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/5 "2021-09-14T17:56:43Z")

</div>

```auto
!sudo apt-get update 

! sudo apt-get install -y cmake build-essential pkg-config ant \
 libtiff5-dev libopenexr-dev libwebp-dev Libpng-dev \
 libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libavresample-dev Libv4l-dev \
  Libgtk-3-dev Libtesseract-dev Libhdf5-dev -y libopenblas-dev libopenblas-base Liblapacke-dev \
 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
 Libtbb-dev 

lists... Done Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package Libpng-dev E: Unable to locate package Libv4l-dev E: Unable to locate package Libgtk-3-dev E: Unable to locate package Libtesseract-dev E: Unable to locate package Libhdf5-dev E: Unable to locate package Liblapacke-dev E: Unable to locate package Libtbb-dev

```

---

<div class="post-metadata">

**Author:** ![design-lion](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@design-lion](https://forum.opencv.org/u/design-lion)\
**Post date:** [September 14, 2021, 5:59pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/6 "2021-09-14T17:59:39Z")

</div>

```auto
%cd opencv/build

!cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D WITH_CUDA=OFF \
    -D OPENCV_EXTRA_MODULES_PATH=/hy-nas/opencv_contrib/modules \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D INSTALL_C_EXAMPLES=OFF \
    -D PYTHON_EXECUTABLE=/usr/bin/python \
    -D BUILD_opencv_python3=ON \
    -D PYTHON3_EXECUTABLE=/usr/bin/python3.8 \
    -D WITH_GSTREAMER=ON \
    -D WITH_TBB=ON \
    -D WITH_LIBV4L=ON .. \
    -D OPENCV_ENABLE_NONFREE=ON \
    -D WITH_PROTOBUF=ON \
    -D BUILD_EXAMPLES=ON ..

hy-nas/opencv/build
-- Detected processor: x86_64
-- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found /usr/bin/python)
-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.3") 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- libjpeg-turbo: VERSION = 2.0.5, BUILD = opencv-4.5.0-libjpeg-turbo
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
-- OpenJPEG: VERSION = 2.3.1, BUILD = opencv-4.5.0-openjp2-2.3.1
-- OpenJPEG libraries will be built from sources: libopenjp2 (version "2.3.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
-- No package 'gtk+-2.0' found
-- IPPICV: Download: ippicv_2020_lnx_intel64_20191018_general.tgz
-- Try 1 failed
CMake Warning at cmake/OpenCVDownload.cmake:202 (message):
  IPPICV: Download failed: 35;"SSL connect error"

  For details please refer to the download log file:

  /hy-nas/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first):
  3rdparty/ippicv/ippicv.cmake:37 (ocv_download)
  cmake/OpenCVFindIPP.cmake:244 (download_ippicv)
  cmake/OpenCVFindLibsPerf.cmake:12 (include)
  CMakeLists.txt:696 (include)

-- 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) 
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Found apache ant: /usr/bin/ant (1.10.5)
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- Could NOT find Pylint (missing: PYLINT_EXECUTABLE) 
-- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE) 
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- OpenCV Python: during development append to PYTHONPATH: /hy-nas/opencv/build/python_loader
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
-- No package 'libavcodec' found
-- No package 'libavformat' found
-- No package 'libavutil' found
-- No package 'libswscale' found
-- FFMPEG is disabled. Required libraries: libavcodec;libavformat;libavutil;libswscale. Missing libraries: libavcodec;libavformat;libavutil;libswscale
-- Checking for module 'libdc1394-2'
-- No package 'libdc1394-2' found
-- Module opencv_alphamat disabled because the following dependencies are not found: Eigen
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- Checking for module 'freetype2'
-- No package 'freetype2' found
-- Checking for module 'harfbuzz'
-- No package 'harfbuzz' found
-- freetype2: NO
-- harfbuzz: NO
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found version "")
-- Julia not found. Not compiling Julia Bindings. 
-- 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.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- Checking for module 'tesseract'
-- No package 'tesseract' found
-- Tesseract: NO
-- Allocator metrics storage type: 'long long'
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /hy-nas/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out cuda4dnn source code
-- xfeatures2d/boostdesc: Download: boostdesc_bgm.i

```

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 14, 2021, 6:05pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/7 "2021-09-14T18:05:06Z")

</div>

can you try again with the cmake output ? it’s incomplete  
(we need to see, if the configuration step failed or not, and why)

---

<div class="post-metadata">

**Author:** ![design-lion](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@design-lion](https://forum.opencv.org/u/design-lion)\
**Post date:** [September 14, 2021, 6:31pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/8 "2021-09-14T18:31:55Z")

</div>

​  
!rm -r opencv/build  
!mkdir opencv/build  
%cd opencv/build  
!cmake -D CMAKE\_BUILD\_TYPE=RELEASE   
-D CMAKE\_INSTALL\_PREFIX=/usr/local   
-D INSTALL\_PYTHON\_EXAMPLES=ON   
-D INSTALL\_C\_EXAMPLES=0FF   
-D OPENCV\_ENABLE\_NONFREE=ON   
-D WITH\_CUDA=ON   
-D WITH\_CUDNN=ON   
-D OPENCV\_DNN\_CUDA=ON   
-D ENABLE\_FAST\_MATH=1   
-D CUDA\_FAST\_MATH=1   
-D CUDA\_ARCH\_BIN=7.5   
-D WITH\_CUBLAS=1   
-D OPENCV\_EXTRA\_MODULES\_PATH=/hy-nas/59/AlphaPose/opencv/opencv\_contrib/modules/   
-D HAVE\_opencv\_python3=ON   
-D PYTHON\_EXECUTABLE=usr/bin/python3.8   
-D BUILD\_EXAMPLES=ON …  
​  
​  
​  
/hy-nas/opencv/build  
– The CXX compiler identification is GNU 7.5.0  
– The C compiler identification is GNU 7.5.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 processor: x86\_64  
– Could NOT find PythonInterp: Found unsuitable version “1.4”, but required is at least “2.7” (found /hy-nas/opencv/build/usr/bin/python3.8)  
– Found PythonInterp: /usr/local/bin/python3 (found suitable version “3.8.10”, minimum required is “3.2”)  
– Found PythonLibs: /usr/lib/x86\_64-linux-gnu/libpython3.8.so (found suitable exact version “3.8.10”)  
– 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\_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\_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 - Failed  
– 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\_WSUGGEST\_OVERRIDE  
– Performing Test HAVE\_CXX\_WSUGGEST\_OVERRIDE - Success  
– Performing Test HAVE\_C\_WSUGGEST\_OVERRIDE  
– Performing Test HAVE\_C\_WSUGGEST\_OVERRIDE - Failed  
– 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\_WNO\_LONG\_LONG  
– Performing Test HAVE\_CXX\_WNO\_LONG\_LONG - Success  
– Performing Test HAVE\_C\_WNO\_LONG\_LONG  
– Performing Test HAVE\_C\_WNO\_LONG\_LONG - 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\_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\_CXX\_MSSE (check file: cmake/checks/cpu\_sse.cpp)  
– Performing Test HAVE\_CXX\_MSSE - Success  
– Performing Test HAVE\_CXX\_MSSE2 (check file: cmake/checks/cpu\_sse2.cpp)  
– Performing Test HAVE\_CXX\_MSSE2 - Success  
– Performing Test HAVE\_CXX\_MSSE3 (check file: cmake/checks/cpu\_sse3.cpp)  
– Performing Test HAVE\_CXX\_MSSE3 - Success  
– Performing Test HAVE\_CXX\_MSSSE3 (check file: cmake/checks/cpu\_ssse3.cpp)  
– Performing Test HAVE\_CXX\_MSSSE3 - Success  
– Performing Test HAVE\_CXX\_MSSE4\_1 (check file: cmake/checks/cpu\_sse41.cpp)  
– Performing Test HAVE\_CXX\_MSSE4\_1 - Success  
– Performing Test HAVE\_CXX\_MPOPCNT (check file: cmake/checks/cpu\_popcnt.cpp)  
– Performing Test HAVE\_CXX\_MPOPCNT - Success  
– Performing Test HAVE\_CXX\_MSSE4\_2 (check file: cmake/checks/cpu\_sse42.cpp)  
– Performing Test HAVE\_CXX\_MSSE4\_2 - Success  
– Performing Test HAVE\_CXX\_MF16C (check file: cmake/checks/cpu\_fp16.cpp)  
– Performing Test HAVE\_CXX\_MF16C - Success  
– Performing Test HAVE\_CXX\_MFMA  
– Performing Test HAVE\_CXX\_MFMA - Success  
– Performing Test HAVE\_CXX\_MAVX (check file: cmake/checks/cpu\_avx.cpp)  
– Performing Test HAVE\_CXX\_MAVX - Success  
– Performing Test HAVE\_CXX\_MAVX2 (check file: cmake/checks/cpu\_avx2.cpp)  
– Performing Test HAVE\_CXX\_MAVX2 - Success  
– Performing Test HAVE\_CXX\_MAVX512F (check file: cmake/checks/cpu\_avx512.cpp)  
– Performing Test HAVE\_CXX\_MAVX512F - Success  
– Performing Test HAVE\_CXX\_MAVX512F\_MAVX512CD (check file: cmake/checks/cpu\_avx512common.cpp)  
– Performing Test HAVE\_CXX\_MAVX512F\_MAVX512CD - Success  
– Performing Test HAVE\_CXX\_MAVX512F\_MAVX512CD\_MAVX512VL\_MAVX512BW\_MAVX512DQ (check file: cmake/checks/cpu\_avx512skx.cpp)  
– Performing Test HAVE\_CXX\_MAVX512F\_MAVX512CD\_MAVX512VL\_MAVX512BW\_MAVX512DQ - Success  
– Performing Test HAVE\_CPU\_BASELINE\_FLAGS  
– Performing Test HAVE\_CPU\_BASELINE\_FLAGS - Success  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_SSE4\_1  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_SSE4\_1 - Success  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_SSE4\_2  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_SSE4\_2 - Success  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_FP16  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_FP16 - Success  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_AVX  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_AVX - Success  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_AVX2  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_AVX2 - Success  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_AVX512\_SKX  
– Performing Test HAVE\_CPU\_DISPATCH\_FLAGS\_AVX512\_SKX - 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  
– Performing Test HAVE\_LINK\_AS\_NEEDED  
– Performing Test HAVE\_LINK\_AS\_NEEDED - Success  
– 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/x86\_64-linux-gnu/libz.so (found suitable version “1.2.11”, minimum required is “1.2.3”)  
– Could NOT find JPEG (missing: JPEG\_LIBRARY JPEG\_INCLUDE\_DIR)  
– Performing Test HAVE\_C\_WNO\_UNUSED\_PARAMETER  
– Performing Test HAVE\_C\_WNO\_UNUSED\_PARAMETER - Success  
– Performing Test HAVE\_C\_WNO\_SIGN\_COMPARE  
– Performing Test HAVE\_C\_WNO\_SIGN\_COMPARE - Success  
– Performing Test HAVE\_C\_WNO\_SHORTEN\_64\_TO\_32  
– Performing Test HAVE\_C\_WNO\_SHORTEN\_64\_TO\_32 - Failed  
– Performing Test HAVE\_C\_WNO\_IMPLICIT\_FALLTHROUGH  
– Performing Test HAVE\_C\_WNO\_IMPLICIT\_FALLTHROUGH - Success  
– libjpeg-turbo: VERSION = 2.0.5, BUILD = opencv-4.5.0-libjpeg-turbo  
– Check size of size\_t  
– Check size of size\_t - done  
– Check size of unsigned long  
– Check size of unsigned long - done  
– Performing Test HAVE\_BUILTIN\_CTZL  
– Performing Test HAVE\_BUILTIN\_CTZL - Success  
– Looking for include file locale.h  
– Looking for include file locale.h - found  
– Looking for include file stdlib.h  
– Looking for include file stdlib.h - found  
– Looking for include file sys/types.h  
– Looking for include file sys/types.h - found  
– Could NOT find TIFF (missing: TIFF\_LIBRARY TIFF\_INCLUDE\_DIR)  
– Looking for assert.h  
– Looking for assert.h - found  
– Looking for dlfcn.h  
– Looking for dlfcn.h - found  
– Looking for fcntl.h  
– Looking for fcntl.h - found  
– Looking for inttypes.h  
– Looking for inttypes.h - found  
– Looking for io.h  
– Looking for io.h - not found  
– Looking for limits.h  
– Looking for limits.h - found  
– Looking for memory.h  
– Looking for memory.h - found  
– Looking for search.h  
– Looking for search.h - found  
– Looking for string.h  
– Looking for string.h - found  
– Looking for strings.h  
– Looking for strings.h - found  
– Looking for sys/time.h  
– Looking for sys/time.h - found  
– Looking for unistd.h  
– Looking for unistd.h - found  
– Performing Test C\_HAS\_inline  
– Performing Test C\_HAS\_inline - Success  
– Check size of signed short  
– Check size of signed short - done  
– Check size of unsigned short  
– Check size of unsigned short - done  
– Check size of signed int  
– Check size of signed int - done  
– Check size of unsigned int  
– Check size of unsigned int - done  
– Check size of signed long  
– Check size of signed long - done  
– Check size of signed long long  
– Check size of signed long long - done  
– Check size of unsigned long long  
– Check size of unsigned long long - done  
– Check size of unsigned char \*  
– Check size of unsigned char \* - done  
– Check size of ptrdiff\_t  
– Check size of ptrdiff\_t - done  
– Check size of INT8  
– Check size of INT8 - failed  
– Check size of INT16  
– Check size of INT16 - failed  
– Check size of INT32  
– Check size of INT32 - failed  
– Looking for floor  
– Looking for floor - found  
– Looking for pow  
– Looking for pow - found  
– Looking for sqrt  
– Looking for sqrt - found  
– Looking for isascii  
– Looking for isascii - found  
– Looking for memset  
– Looking for memset - found  
– Looking for mmap  
– Looking for mmap - found  
– Looking for getopt  
– Looking for getopt - found  
– Looking for memmove  
– Looking for memmove - found  
– Looking for setmode  
– Looking for setmode - not found  
– Looking for strcasecmp  
– Looking for strcasecmp - found  
– Looking for strchr  
– Looking for strchr - found  
– Looking for strrchr  
– Looking for strrchr - found  
– Looking for strstr  
– Looking for strstr - found  
– Looking for strtol  
– Looking for strtol - found  
– Looking for strtol  
– Looking for strtol - found  
– Looking for strtoull  
– Looking for strtoull - found  
– Looking for lfind  
– Looking for lfind - found  
– Performing Test HAVE\_SNPRINTF  
– Performing Test HAVE\_SNPRINTF - Success  
– Check if the system is big endian  
– Searching 16 bit integer  
– Using unsigned short  
– Check if the system is big endian - little endian  
– Performing Test HAVE\_C\_WNO\_UNUSED\_BUT\_SET\_VARIABLE  
– Performing Test HAVE\_C\_WNO\_UNUSED\_BUT\_SET\_VARIABLE - 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\_UNDEF  
– Performing Test HAVE\_C\_WNO\_UNDEF - Success  
– Performing Test HAVE\_C\_WNO\_UNUSED  
– Performing Test HAVE\_C\_WNO\_UNUSED - Success  
– Performing Test HAVE\_C\_WNO\_CAST\_ALIGN  
– Performing Test HAVE\_C\_WNO\_CAST\_ALIGN - 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\_POINTER\_TO\_INT\_CAST  
– Performing Test HAVE\_C\_WNO\_POINTER\_TO\_INT\_CAST - Success  
– Performing Test HAVE\_C\_WNO\_INT\_TO\_POINTER\_CAST  
– Performing Test HAVE\_C\_WNO\_INT\_TO\_POINTER\_CAST - Success  
– Performing Test HAVE\_C\_WNO\_MISLEADING\_INDENTATION  
– Performing Test HAVE\_C\_WNO\_MISLEADING\_INDENTATION - Success  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_DECLARATIONS  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_DECLARATIONS - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_PARAMETER  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_PARAMETER - Success  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_PROTOTYPES  
– Performing Test HAVE\_CXX\_WNO\_MISSING\_PROTOTYPES - Failed  
– Performing Test HAVE\_CXX\_WNO\_UNDEF  
– Performing Test HAVE\_CXX\_WNO\_UNDEF - Success  
– Performing Test HAVE\_C\_STD\_C99  
– Performing Test HAVE\_C\_STD\_C99 - Success  
– 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  
– Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version \>= 2.3.1). OpenJPEG will be built from sources  
– OpenJPEG: VERSION = 2.3.1, BUILD = opencv-4.5.0-openjp2-2.3.1  
– Check if the system is big endian  
– Searching 16 bit integer  
– Using unsigned short  
– Check if the system is big endian - little endian  
– Looking for stdio.h  
– Looking for stdio.h - found  
– Looking for math.h  
– Looking for math.h - found  
– Looking for float.h  
– Looking for float.h - found  
– Looking for time.h  
– Looking for time.h - found  
– Looking for stdarg.h  
– Looking for stdarg.h - found  
– Looking for ctype.h  
– Looking for ctype.h - found  
– Looking for stdint.h  
– Looking for stdint.h - found  
– Looking for inttypes.h  
– Looking for inttypes.h - found  
– Looking for sys/stat.h  
– Looking for sys/stat.h - found  
– Looking for include file malloc.h  
– Looking for include file malloc.h - found  
– Looking for \_aligned\_malloc  
– Looking for \_aligned\_malloc - not found  
– Looking for posix\_memalign  
– Looking for posix\_memalign - found  
– Looking for memalign  
– Looking for memalign - found  
– Performing Test HAVE\_C\_WNO\_STRICT\_PROTOTYPES  
– Performing Test HAVE\_C\_WNO\_STRICT\_PROTOTYPES - Success  
– Performing Test HAVE\_C\_WNO\_CAST\_FUNCTION\_TYPE  
– Performing Test HAVE\_C\_WNO\_CAST\_FUNCTION\_TYPE - Failed  
– OpenJPEG libraries will be built from sources: libopenjp2 (version “2.3.1”)  
– Found ZLIB: /usr/lib/x86\_64-linux-gnu/libz.so (found version “1.2.11”)  
– Could NOT find PNG (missing: PNG\_LIBRARY PNG\_PNG\_INCLUDE\_DIR)  
– 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\_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  
– Performing Test HAVE\_CXX\_WNO\_TAUTOLOGICAL\_COMPARE  
– Performing Test HAVE\_CXX\_WNO\_TAUTOLOGICAL\_COMPARE - Success  
– Performing Test HAVE\_CXX\_WNO\_REORDER  
– Performing Test HAVE\_CXX\_WNO\_REORDER - Success  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_RESULT  
– Performing Test HAVE\_CXX\_WNO\_UNUSED\_RESULT - Success  
– Checking for module ‘gtk±3.0’  
– No package ‘gtk±3.0’ found  
– Checking for module ‘gtk±2.0’  
– No package ‘gtk±2.0’ found  
– Checking for module ‘gthread-2.0’  
– Found gthread-2.0, version 2.56.4  
– IPPICV: Download: ippicv\_2020\_lnx\_intel64\_20191018\_general.tgz

---

<div class="post-metadata">

**Author:** ![design-lion](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@design-lion](https://forum.opencv.org/u/design-lion)\
**Post date:** [September 14, 2021, 6:56pm UTC](https://forum.opencv.org/t/opencv-4-5-c-on-ubuntu-18-04/5212/9 "2021-09-14T18:56:38Z")

</div>

Stop here and can’t carry on
