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.
Search Criteria
Package Details: opencv2 2.4.13.6-3
Package Actions
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 |
Submitter: | reisub |
Maintainer: | bartus |
Last Packager: | bartus |
Votes: | 19 |
Popularity: | 0.000000 |
First Submitted: | 2016-04-25 13:35 (UTC) |
Last Updated: | 2021-07-16 13:35 (UTC) |
Dependencies (12)
- gtkglext (gtkglext-pangox)
- intel-tbb (tbb2019, tbb2020, onetbb-git, onetbb)
- libdc1394
- openexr (openexr2, openexr-git)
- xine-lib (xine-lib_for_enigma2, xine-lib-hg)
- cmake (cmake-git) (make)
- mesa (mesa-minimal+-git, mesa-d3d12, mesa-panfork-git, mesa-git-adreno, mesa-steamos, mesa-minimal-git, mesa-git, mesa-amdonly-gaming-git, mesa-rusticl-git, mesa-amber) (make)
- python2-numpy (make)
- eigen2 (optional)
- libcl (optional) – For coding with OpenCL
- opencv-samples (optional)
- python2-numpy (optional) – Python 2.x interface
Required by (312)
- actiona (requires opencv) (make)
- alice-vision-git (requires opencv)
- amdapp-sdk-opencv (requires opencv)
- animeloop-cli (requires opencv)
- arenatracker
- arenatracker-git
- aruco (requires opencv)
- autopsy (requires opencv) (optional)
- autopsy-bin (requires opencv) (optional)
- backscrub-git (requires opencv)
- ballontranslator-git (requires opencv) (make)
- basalt-monado-git (requires opencv)
- bigsh0t-plugins-git (requires opencv) (make)
- bigsh0t-plugins-git (requires opencv) (optional)
- bigsh0t-plugins-release-git (requires opencv) (make)
- bigsh0t-plugins-release-git (requires opencv) (optional)
- busysteg-git
- butterflow
- caffe (requires opencv)
- caffe (requires opencv) (make)
- Show 292 more...
Sources (1)
bsutherland333 commented on 2022-12-31 01:46 (UTC)
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
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).
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
Pinned Comments
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