Package Details: opencv2 2.4.13.6-3

Git Clone URL: https://aur.archlinux.org/opencv2.git (read-only, click to copy)
Package Base: opencv2
Description: Open Source Computer Vision Library (Legacy Version)
Upstream URL: http://opencv.org/
Licenses: BSD
Conflicts: opencv
Provides: opencv=2.4.13.6
Submitter: reisub
Maintainer: bartus
Last Packager: bartus
Votes: 19
Popularity: 0.000252
First Submitted: 2016-04-25 13:35
Last Updated: 2021-07-16 13:35

Required by (290)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

Thenujan commented on 2022-01-04 11:09

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

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).

bartus commented on 2021-07-17 07:58

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

nedludd commented on 2021-07-16 22:54

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

bartus commented on 2021-07-16 10:10

@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

Here you go:

http://ix.io/3t4X

bartus commented on 2021-07-15 08:17

@nedludd: Can't reproduce, file is located in modules/highgui/src/grfmt_jpeg2000.cpp looks fine and builds without only some rudimental warnings from tbb header (could you please post your build.log, preferably with tool like https://aur.archlinux.org/packages/ix or site like https://paste.c-net.org/ )

[ 26%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.cpp.o
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /build/opencv2/src/opencv-2.4.13.6/modules/core/include/opencv2/core/internal.hpp:197,
                 from /build/opencv2/src/opencv-2.4.13.6/modules/video/src/precomp.hpp:51,
                 from /build/opencv2/src/opencv-2.4.13.6/modules/video/src/motempl.cpp:42:
/usr/include/tbb/tbb.h:21:154: note: ‘#pragma message: TBB Warning: tbb.h contains deprecated functionality. For details, please see Deprecated Features appendix in the TB⮎ B reference manual.’
   21 | #pragma message("TBB Warning: tbb.h contains deprecated functionality. For details, please see Deprecated Features appendix in the TBB reference manual.")

nedludd commented on 2021-07-14 14:47

The compilation failure on grfmt_jpeg2000.cpp is still there. Can you fix @bartus?

bartus commented on 2021-07-06 10:07

Fixed.

stonecraft commented on 2021-07-06 05:28

I managed to build, but not install:

error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: opencv2 and opencv2-samples are in conflict