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: 28
Popularity: 0.22
First Submitted: 2016-04-25 13:35 (UTC)
Last Updated: 2023-12-18 21:47 (UTC)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

dbermond commented on 2023-12-02 16:45 (UTC)

@MarsSeed After further investigation, the only relevant option in this subject is 'WITH_LIBV4L'. Option 'WITH_V4L' uses only internal code without linking to v4l libraries and can be enabled (or suppressed). Package updated (again).

dbermond commented on 2023-12-02 16:07 (UTC)

@MarsSeed Implemented, although I think this is not strictly needed in this case as v4l will not hurt anyone, and reproducible environment is user responsibility when it matters, but it can help to reduce memory footprint of some users.

MarsSeed commented on 2023-12-02 12:20 (UTC) (edited on 2023-12-02 12:23 (UTC) by MarsSeed)

Thank you for fixing and enhancing this.

One observation: v4l-utils gets automatically linked to when available. I've built this in an environment together with ffmpeg, which pulled in v4l-utils. (I know ffmpeg itself is not needed for this. But life happens, so people don't always build in a totally clean environment.)

I'd like to suggest that you either declare v4l-utils in depends, or disable linking to it in cmake's configuration (WITH_V4L='OFF' and WITH_LIBV4L='OFF'). Just to ensure a more robust and reproducible build.

Thank you in advance for considering this suggestion.

MarsSeed commented on 2023-11-12 04:18 (UTC)

And python2-numpy is also not really needed and not mandatory, I believe.

MarsSeed commented on 2023-08-03 19:54 (UTC) (edited on 2023-11-12 03:36 (UTC) by MarsSeed)

Based on AUR/opencv2 PKGBUILD, I've found out that eigen2 is not mandatory: this can be built without it. (The latter AUR package is broken.)

bsutherland333 commented on 2022-12-31 01:46 (UTC)

I found that this package will not compile with the latest versions of tbb and ffmpeg, but if you replace those with tbb2020 and ffmpeg4.4 it will.

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.