Package Details: python-opencv-git 4.6.0.r213.gbb64db98d8-1

Git Clone URL: https://aur.archlinux.org/opencv-git.git (read-only, click to copy)
Package Base: opencv-git
Description: Python bindings for OpenCV
Upstream URL: https://opencv.org/
Licenses: BSD
Conflicts: opencv, opencv-samples, python-opencv
Submitter: chenxing
Maintainer: andrewSC
Last Packager: andrewSC
Votes: 43
Popularity: 0.000014
First Submitted: 2012-07-31 00:21 (UTC)
Last Updated: 2022-08-27 19:50 (UTC)

Dependencies (34)

Required by (0)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 13 Next › Last »

carlosnewmusic commented on 2021-09-14 20:15 (UTC)

error build https://pastebin.com/CMUu3JQr

andrewSC commented on 2021-08-14 22:05 (UTC)

Thanks for the heads up abougouffa and all of you for the patience. I've updated the PKGBUILD to include qt5-base as well as the lapacke patch. Can confirm it builds fine in chroot. Let me know if there's any questions or any issues!

abougouffa commented on 2021-08-01 17:02 (UTC) (edited on 2021-08-01 17:02 (UTC) by abougouffa)

Hello @andrewSC, the package doesn't compile, there is a problem on the OpenCV codebase with newer versions of LAPACKE.

You need either to:

  1. disable it by removing the lapacke build dep and adding something like -DWITH_LAPACK=OFF to build options

  2. or much better, patch the file causing the problem (there is a patch in the ArchLinux codebase for this opencv/trunk/opencv-lapack-3.10.patch

I've tested this last option by modifying the PKGBUILD like this:

diff --git a/PKGBUILD b/PKGBUILD
index 5278b43..98f5861 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@

 _name=opencv
 pkgname="$_name-git"
-pkgver=4.1.1.r65.gbf0765fc7f
+pkgver=4.5.1.r0.g1363496c11
 pkgrel=1
 pkgdesc="Open Source Computer Vision Library"
 url="https://opencv.org/"
@@ -30,9 +30,11 @@ optdepends=('opencv-samples: samples'
 conflicts=('opencv')
 provides=("$_name=$pkgver")
 source=('git+https://github.com/opencv/opencv.git'
-        'git+https://github.com/opencv/opencv_contrib.git')
+        'git+https://github.com/opencv/opencv_contrib.git'
+        'https://raw.githubusercontent.com/archlinux/svntogit-packages/master/opencv/trunk/opencv-lapack-3.10.patch')
 sha512sums=('SKIP'
-            'SKIP')
+            'SKIP'
+       'a13dfa91ee423d2ee5f6344ccb8394f96195538b3d668f97c5fdc3ccd84d5ecd54f80bc6fa45685f319ab0d0c9bb5ad533c0f2d1a20d21f3a5afdd1c0239bfa1')

 _cmakeopts=('-DWITH_OPENCL=ON'
             '-DWITH_OPENGL=ON'
@@ -60,6 +62,9 @@ pkgver() {

 prepare() {
   mkdir -p build
+  
+  cd "$srcdir/$_name"
+  patch -p1 < "$srcdir/opencv-lapack-3.10.patch"
 }

 build() {
@@ -85,7 +90,7 @@ build() {

 package() {
     cd build
-    make DESTDIR="$pkgdir" install
+    make -j7 DESTDIR="$pkgdir" install

     # install LICENSE file
     install -Dm644 "$srcdir"/"$_name"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"

andrewSC commented on 2021-05-13 21:51 (UTC)

I will take a look in the next day or so

jfernandz commented on 2021-05-11 22:06 (UTC)

I'm having the very same error than @carlosnewmusic

carlosnewmusic commented on 2021-05-08 02:24 (UTC)

1525 | void LAPACK_dgels_base( | ^~~~~~~~~~~~~~~~~ [ 6%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/service.cc.o make[2]: [modules/core/CMakeFiles/opencv_core.dir/build.make:509: modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o] Error 1 make[2]: Se espera a que terminen otras tareas.... [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/mathlimits.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/substitute.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/unknown_field_set.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/delimited_message_util.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_comparator.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/datapiece.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/default_value_objectwriter.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/field_mask_utility.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_escaping.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_objectwriter.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_stream_parser.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/object_writer.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/proto_writer.cc.o [ 7%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectsource.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectwriter.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/type_info.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/utility.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/json_util.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/message_differencer.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/time_util.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/type_resolver_util.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format.cc.o [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o [ 8%] Linking CXX static library ../lib/liblibprotobuf.a [ 8%] Built target libprotobuf make[1]: [CMakeFiles/Makefile2:4541: modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: [Makefile:166: all] Error 2 ==> ERROR: Se produjo un fallo en build().

cemkaya commented on 2021-05-01 21:13 (UTC) (edited on 2021-05-01 21:14 (UTC) by cemkaya)

I believe there is a typo in the PKGBUILD. Should it not be -DOPENCV_ENABLE_NONFREE=ON \

I also had to compile and install openblas-lapack instead of lapack + blas to successfully compile.

tomasstorck commented on 2021-02-25 16:43 (UTC)

Please consider adding ant as a dependency:

==> Retrieving sources...
  -> Cloning opencv git repo...
(...)
  -> Cloning opencv_contrib git repo...
(...)
==> Validating source files with sha512sums...
    opencv ... Skipped
    opencv_contrib ... Skipped
==> Making package: opencv-git 4.1.1.r65.gbf0765fc7f-1 (Thu 25 Feb 2021 17:35:37)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> ant
  -> java-environment
==> ERROR: Could not resolve all dependencies.
error making: opencv-git

olko commented on 2019-12-23 07:33 (UTC)

Why is SSE3 disabled for x86_64?

PKGBUILD:

[[ "$CARCH" = 'x86_64' ]] && _cmakeopts+=('-DCPU_BASELINE_DISABLE=SSE3 -DCPU_BASELINE_REQUIRE=SSE2')

Shouldn't it be the other way around?

[[ "$CARCH" = 'x86_64' ]] && _cmakeopts+=('-DCPU_BASELINE_DISABLE=SSE2 -DCPU_BASELINE_REQUIRE=SSE3')

At least on my architecture (broadwell) SSE3 is supported.

Samega7Cattac commented on 2019-11-26 15:04 (UTC)

I'm having issues compiling: https://paste.ubuntu.com/p/rHryq4VHhb/