Package Details: opencv2 2.4.13.7-7

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-3-Clause
Submitter: reisub
Maintainer: dbermond
Last Packager: dbermond
Votes: 33
Popularity: 0.062173
First Submitted: 2016-04-25 13:35 (UTC)
Last Updated: 2025-04-04 11:04 (UTC)

Latest Comments

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

bartus commented on 2022-03-14 10:35 (UTC)

Sorry lads, I'm at the Polish Ukraine border helping allocate refugees. Expect no update until this hell is over, wish us luck. Have no time nor access to my rig and AUR keys to test/post updates. If you have a patch, ping me on email - I'll add you as co-maintainer. Posted with my old script - https://github.com/bartoszek/aur-post

ArchBoxHero commented on 2022-02-07 22:45 (UTC) (edited on 2022-02-21 03:09 (UTC) by ArchBoxHero)

I can confirm what Thenujan is getting with the

[  9%] Building CXX object modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o
In file included from /home/me/AUR/opencv2/src/opencv-2.4.13.6/modules/core/src/precomp.hpp:50,
                 from /home/me/AUR/opencv2/src/build/modules/core/opencv_core_pch_dephelp.cxx:1:
/home/me/AUR/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
make[2]: Leaving directory '/home/me/AUR/opencv2/src/build'
make[1]:  [CMakeFiles/Makefile2:1927: modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/all] Error 2
make[1]: Leaving directory '/home/me/AUR/opencv2/src/build'
make: *** [Makefile:166: all] Error 2
make: Leaving directory '/home/me/AUR/opencv2/src/build'
==> ERROR: A failure occurred in build().
    Aborting...

I see this from 2019. It doesn't help me but maybe someone: bug from 2019 inline link.

I've tried adding those flags and following some of those hints linked in the # github issues there and the # stackovereflow link there too but couldn't didn't help.

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

<deleted-account> 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.