Package Base Details: opencv3-opt

Git Clone URL: https://aur.archlinux.org/opencv3-opt.git (read-only, click to copy)
Submitter: MichaelChou
Maintainer: bionade24
Last Packager: bionade24
Votes: 5
Popularity: 0.000033
First Submitted: 2019-02-13 12:43
Last Updated: 2021-07-04 08:24

Pinned Comments

bionade24 commented on 2021-07-04 08:23

Please stop marking this package out of date if there's an issue with this PKGBUILD. This is not what OOD requests are for, so I'll always just remove the OOD marking before doing anything.

I value the comments here as much, they're not enforcing it less.

Latest Comments

1 2 3 4 Next › Last »

bionade24 commented on 2021-07-04 08:23

Please stop marking this package out of date if there's an issue with this PKGBUILD. This is not what OOD requests are for, so I'll always just remove the OOD marking before doing anything.

I value the comments here as much, they're not enforcing it less.

fmauch commented on 2021-04-11 06:22

@MichaelChou I've updated the package on a fork: https://github.com/fmauch/aur_opencv3-opt

If you could fix this asap, this would be great, as this is currently failing inside our CI/CD pipeline.

fmauch commented on 2021-04-07 15:04

This currently doesn't build due to changed API in lapack.

extra/opencv provides a patch file for this: https://github.com/archlinux/svntogit-packages/blob/packages/opencv/trunk/opencv-lapack-3.9.1.patch

Using this works for me.

fmauch commented on 2021-02-08 14:34

gtk3 should not only be a make dependency, as libraries are linked against it (e.g. libhighgui). If gtk3 gets removed after building this, applications linking against this library will get undefined references.

MichaelChou commented on 2020-11-17 06:00

Updated to v3.4.12. Thanks @Windfisch again!

Windfisch commented on 2020-11-15 11:49

In OpenCV 3.4.12, the jpeg2000_jasper patch hsa been merged into upstream and should not be necessary any more to apply in the PKGBUILD.

weissBai commented on 2020-10-17 19:26

it seems to be working after i installed tesseract :)


I had error with building opencv_imgproc:

...

[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/median_blur.avx2.cpp.o
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/morph.avx2.cpp.o
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/smooth.avx2.cpp.o
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/sumpixels.avx2.cpp.o
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/undistort.avx2.cpp.o
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/sumpixels.avx512_skx.cpp.o
[ 36%] Linking CXX shared library ../../lib/libopencv_imgproc.so
[ 36%] Built target opencv_imgproc
make: *** [Makefile:182: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

MichaelChou commented on 2020-10-15 05:47

@maximmasterr @savnkk

I built this today with up-to-date system packages (around 2020-10-15 05:00 UTC). One machine is with intel cpu and has built this package before. The other machine is a new amd cpu machine with a clean newly installed arch system. On both machines, this package was successfully built.

Maybe some wired issues related to your building environments?

savnkk commented on 2020-10-05 08:04

I had issues compiling. I was getting the following error. /usr/bin/ld: ndefined reference to `tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' when it compiles opencv_version.

I think tbb isn't properly declared in its target-link-libaries.

For now, I have turned off tbb in the PKGBUILD -DWITH_TBB=ON \ -DWITH_TBB=OFF \

maximmasterr commented on 2020-08-31 12:11

I have error with installing opencv3-opt

/usr/bin/ld: ../../lib/libopencv_core.so.3.4.11: undefined reference to `cv::hal::opt_SSE4_1::div32f(float const*, unsigned long, float const*, unsigned long, float*, unsigned long, int, int, double const*)'

And many lines like that Here is log until make

==> Making package: opencv3-opt 3.4.11-1 (Пн 31 авг 2020 15:09:19)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found opencv-3.4.11.tar.gz
  -> Found opencv_contrib-3.4.11.tar.gz
  -> Found jpeg2000_jasper.patch
==> Validating source files with sha256sums...
    opencv-3.4.11.tar.gz ... Passed
    opencv_contrib-3.4.11.tar.gz ... Passed
    jpeg2000_jasper.patch ... Passed
==> Extracting sources...
  -> Extracting opencv-3.4.11.tar.gz with bsdtar
  -> Extracting opencv_contrib-3.4.11.tar.gz with bsdtar
==> Starting prepare()...
patching file opencv-3.4.11/modules/imgcodecs/src/grfmt_jpeg2000.cpp
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- Detected processor: x86_64
-- Looking for ccache - found (/usr/bin/ccache)
-- Found ZLIB: /lib64/libz.so (found suitable version "1.2.11", minimum required is "1.2.3") 
-- Found ZLIB: /lib64/libz.so (found version "1.2.11") 
-- Found OpenEXR: /usr/lib/libIlmImf-2_5.so
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindOpenGL.cmake:305 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /lib64/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /lib64/libOpenGL.so
    OPENGL_glx_LIBRARY: /lib64/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  cmake/OpenCVFindLibsGUI.cmake:76 (find_package)
  CMakeLists.txt:692 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- 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'
--   Package 'libavresample', required by 'virtual:world', not found
-- Found TBB (cmake): /usr/lib/libtbb.so.2
-- found Intel IPP (ICV version): 2020.0.0 [2020.0.0 Gold]
-- at: /var/tmp/pamac-build-max/opencv3-opt/src/build/3rdparty/ippicv/ippicv_lnx/icv
-- found Intel IPP Integration Wrappers sources: 2020.0.0
-- at: /var/tmp/pamac-build-max/opencv3-opt/src/build/3rdparty/ippicv/ippicv_lnx/iw
-- LAPACK(LAPACK/Generic): LAPACK_LIBRARIES: /lib64/liblapack.so;/lib64/libblas.so
-- LAPACK(LAPACK/Generic): Support is enabled.
-- Found apache ant: /bin/ant (1.10.8)
-- Found VTK 8.2.0 (/usr/lib/cmake/vtk-8.2/UseVTK.cmake)
-- OpenCV Python: during development append to PYTHONPATH: /var/tmp/pamac-build-max/opencv3-opt/src/build/python_loader
-- Caffe:   NO
-- Protobuf:   NO
-- Glog:   NO
-- freetype2:   YES (ver 23.2.17)
-- harfbuzz:    YES (ver 2.7.1)
-- Module opencv_ovis disabled because OGRE3D was not found
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- 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: Glog/Gflags
-- Checking for module 'tesseract'
--   Package 'tesseract', required by 'virtual:world', not found
-- Tesseract:   NO
-- Allocator metrics storage type: 'long long'
-- Excluding from source files list: <BUILD>/modules/core/arithm.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/core/matmul.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/accum.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/box_filter.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/filter.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/color_hsv.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/color_rgb.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/color_yuv.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/median_blur.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/morph.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/imgproc/smooth.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/features2d/sift.sse4_1.cpp
-- 
-- General configuration for OpenCV 3.4.11 =====================================
--   Version control:               54cd1eb-dirty
-- 
--   Extra modules:
--     Location (extra):            /var/tmp/pamac-build-max/opencv3-opt/src/opencv_contrib-3.4.11/modules
--     Version control (extra):     54cd1eb-dirty
-- 
--   Platform:
--     Timestamp:                   2020-08-31T10:54:42Z
--     Host:                        Linux 5.7.17-2-MANJARO x86_64
--     CMake:                       3.18.2
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               RELEASE
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3 POPCNT
--       requested:                 DETECT
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (0 files):          + 
--       SSE4_2 (1 files):          + SSE4_2
--       FP16 (0 files):            + SSE4_2 FP16 AVX
--       AVX (5 files):             + SSE4_2 AVX
--       AVX2 (28 files):           + SSE4_2 FP16 FMA3 AVX AVX2
--       AVX512_SKX (4 files):      + SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++11:                       YES
--     C++ Compiler:                /usr/bin/c++  (ver 10.2.0)
--     C++ flags (Release):         -D_FORTIFY_SOURCE=2 -march=native -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt   -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 -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  -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -D_FORTIFY_SOURCE=2 -march=native -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt   -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 -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  -fvisibility=hidden -fvisibility-inlines-hidden -g  -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -D_FORTIFY_SOURCE=2 -march=native -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -D_FORTIFY_SOURCE=2 -march=native -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -fvisibility=hidden -g  -DDEBUG -D_DEBUG
--     Linker flags (Release):      -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -Wl,--gc-sections -Wl,--as-needed  
--     Linker flags (Debug):        -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -Wl,--gc-sections -Wl,--as-needed  
--     ccache:                      YES
--     Precompiled headers:         NO
--     Extra dependencies:          dl m pthread rt /lib64/libGL.so /lib64/libGLU.so
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core cvv datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy hdf hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python3 reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab viz xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    world
--     Disabled by dependency:      -
--     Unavailable:                 cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev js matlab ovis sfm ts
--     Applications:                apps
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   GUI: 
--     QT:                          YES (ver 5.15.0)
--       QT OpenGL support:         YES (Qt5::OpenGL 5.15.0)
--     GTK+:                        NO
--     OpenGL support:              YES (/lib64/libGL.so /lib64/libGLU.so)
--     VTK support:                 YES (ver 8.2.0)
-- 
--   Media I/O: 
--     ZLib:                        /lib64/libz.so (ver 1.2.11)
--     JPEG:                        /lib64/libjpeg.so (ver 80)
--     WEBP:                        /lib64/libwebp.so (ver encoder: 0x020f)
--     PNG:                         /lib64/libpng.so (ver 1.6.37)
--     TIFF:                        /lib64/libtiff.so (ver 42 / 4.1.0)
--     JPEG 2000:                   /lib64/libjasper.so (ver 2.0.17)
--     OpenEXR:                     /usr/lib/libImath-2_5.so /usr/lib/libIlmImf-2_5.so /usr/lib/libIex-2_5.so /usr/lib/libHalf-2_5.so /usr/lib/libIlmThread-2_5.so (ver 2_5)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
-- 
--   Video I/O:
--     DC1394:                      YES (ver 2.2.6)
--     FFMPEG:                      YES
--       avcodec:                   YES (ver 58.91.100)
--       avformat:                  YES (ver 58.45.100)
--       avutil:                    YES (ver 56.51.100)
--       swscale:                   YES (ver 5.7.100)
--       avresample:                NO
--     GStreamer:                   YES
--       base:                      YES (ver 1.16.2)
--       video:                     YES (ver 1.16.2)
--       app:                       YES (ver 1.16.2)
--       riff:                      YES (ver 1.16.2)
--       pbutils:                   YES (ver 1.16.2)
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    linux/videodev2.h
-- 
--   Parallel framework:            TBB (ver 2020.3 interface 11103)
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Intel IPP:                   2020.0.0 Gold [2020.0.0]
--            at:                   /var/tmp/pamac-build-max/opencv3-opt/src/build/3rdparty/ippicv/ippicv_lnx/icv
--     Intel IPP IW:                sources (2020.0.0)
--               at:                /var/tmp/pamac-build-max/opencv3-opt/src/build/3rdparty/ippicv/ippicv_lnx/iw
--     Lapack:                      YES (/lib64/liblapack.so /lib64/libblas.so)
--     Eigen:                       YES (ver 3.3.7)
--     Custom HAL:                  NO
--     Protobuf:                    build (3.5.1)
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                /var/tmp/pamac-build-max/opencv3-opt/src/opencv-3.4.11/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.18)
--     Libraries:                   /lib64/libpython2.7.so (ver 2.7.18)
--     numpy:                       /home/max/.local/lib/python2.7/site-packages/numpy/core/include (ver 1.16.6)
--     install path:                lib/python2.7/site-packages/cv2/python-2.7
-- 
--   Python 3:
--     Interpreter:                 /usr/bin/python3 (ver 3.8.5)
--     Libraries:                   /lib64/libpython3.8.so (ver 3.8.5)
--     numpy:                       /home/max/.local/lib/python3.8/site-packages/numpy/core/include (ver 1.18.5)
--     install path:                lib/python3.8/site-packages/cv2/python-3.8
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Java:                          
--     ant:                         /bin/ant (ver 1.10.8)
--     JNI:                         /usr/lib/jvm/default/include /usr/lib/jvm/default/include/linux /usr/lib/jvm/default/include
--     Java wrappers:               YES
--     Java tests:                  NO
-- 
--   Install to:                    /opt/opencv3
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/pamac-build-max/opencv3-opt/src/build