Package Details: opencv2 2.4.13.7-5

Git Clone URL: https://aur.archlinux.org/opencv2.git (read-only, click to copy)
Package Base: opencv2
Description: Open Source Computer Vision Library (version 2.x)
Upstream URL: https://opencv.org/
Licenses: BSD
Submitter: reisub
Maintainer: dbermond
Last Packager: dbermond
Votes: 29
Popularity: 0.65
First Submitted: 2016-04-25 13:35 (UTC)
Last Updated: 2023-12-18 21:47 (UTC)

Latest Comments

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

Thenujan commented on 2022-01-04 11:09 (UTC)

Build fails with

[  7%] Building CXX object modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o
In file included from /var/tmp/pamac-build-thenujan/opencv2/src/opencv-2.4.13.6/modules/core/src/precomp.hpp:50,
                 from /var/tmp/pamac-build-thenujan/opencv2/src/build/modules/core/opencv_core_pch_dephelp.cxx:1:
/var/tmp/pamac-build-thenujan/opencv2/src/opencv-2.4.13.6/modules/core/include/opencv2/core/internal.hpp:195:12: fatal error: tbb/tbb_stddef.h: No such file or directory
  195 | #  include "tbb/tbb_stddef.h"
      |            ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/build.make:85: modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o] Error 1

TheStroyer commented on 2021-12-16 16:54 (UTC)

The opencv git repository is huge. Would you consider doing the cloning manually, with "git clone --depth 1 ...'? It seems like makepkg doesn't want to implement passing git flags for some reason (see https://bugs.archlinux.org/task/34677).

FalconProgrammer commented on 2021-12-10 11:47 (UTC)

As per what has been mentioned in the opencv2 package, I needed to add these flags to _cmakeopts in order to get this compiled.

        '-D BUILD_JASPER=ON'
        '-D CMAKE_CXX_FLAGS="-std=gnu++11"')

@tom - the BUILD_JASPER line should fix your error.

tom commented on 2021-11-12 00:22 (UTC)

build failed:

...

[ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_tagtree.c.o cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C [ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_tsfb.c.o cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C [ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_util.c.o cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c: In function ‘jpc_atoaf’: /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:105:20: warning: comparison between pointer and zero character constant [-Wpointer-compare] 105 | if (cp != '\0') { | ^~ /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:105:17: note: did you mean to dereference the pointer? 105 | if (cp != '\0') { | ^ /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:123:24: warning: comparison between pointer and zero character constant [-Wpointer-compare] 123 | if (cp != '\0') { | ^~ /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:123:21: note: did you mean to dereference the pointer? 123 | if (cp != '\0') { | ^ [ 6%] Linking C static library ../lib/liblibjasper.a [ 6%] Built target libjasper make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/tmp/mkgkris/build

Galaxy commented on 2021-08-17 09:29 (UTC)

In build section, it is better to set export LDFLAGS="-Wl,-rpath,/opt/${_pkgbase}/lib".

bartus commented on 2021-07-17 07:58 (UTC)

@nedludd: I've fixed PKGBUILD, should work with jasper installed now.

nedludd commented on 2021-07-16 22:54 (UTC)

I uninstalled jasper and opencv2 built properly. Thanks for the tip!

bartus commented on 2021-07-16 10:10 (UTC) (edited on 2021-07-16 10:33 (UTC) by bartus)

@nedludd: I've jasper:2.0 installed, it's incompatible with opencv2 but gets dragged into by cmake and introduce the issue. ~I can't see immediate solution, you can build opencv2 in clean chroot with extra-x86_64-build provided with devtools package, or uninstall jasper for a moment to build opencv2.~

[Edit] Fixed: malformed cmake flags 5feaf8edb556, force build jasper locally 00d6b2f8ccb2

nedludd commented on 2021-07-15 14:46 (UTC)

Here you go:

http://ix.io/3t4X