Package Details: opencv4 4.14.0-2

Git Clone URL: https://aur.archlinux.org/opencv4.git (read-only, click to copy)
Package Base: opencv4
Description: Open Source Computer Vision Library (version 4.x)
Upstream URL: https://github.com/opencv/opencv
Licenses: Apache-2.0
Submitter: xiota
Maintainer: xiota (chaotic-aur)
Last Packager: chaotic-aur
Votes: 0
Popularity: 0.000000
First Submitted: 2026-07-07 02:13 (UTC)
Last Updated: 2026-08-26 09:03 (UTC)

Dependencies (49)

Sources (6)

Latest Comments

founderio commented on 2026-08-14 06:41 (UTC) (edited on 2026-08-14 06:41 (UTC) by founderio)

Building with ffmpeg 9 fails with these errors:
error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_framerates’
error: ‘AVCodec’ {aka ‘struct AVCodec’} has no member named ‘pix_fmts’

There is a PR (https://github.com/opencv/opencv/pull/29533) for the next opencv version, 4.15.0 which fixes this.
Downloading and applying the patch from https://github.com/opencv/opencv/pull/29533.patch fixes the build.

okoks9011 commented on 2026-07-23 07:37 (UTC)

prepare() fails: three patches are already applied upstream in opencv_contrib-4.14.0

Building the current PKGBUILD stops during prepare():

patching file modules/cudacodec/CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n]

I extracted opencv_contrib-4.14.0.tar.gz and verified that the changes from these three patches are already present in the upstream tarball:

  • fix-cudacodec-dependencies.patch
  • fix-cccl-namespace.patch
  • fix-thrust-tuple.patch

Fix that worked for me: remove the corresponding patch calls from prepare() in PKGBUILD. With that change the package builds and installs successfully — no other modifications needed.

xiota commented on 2026-07-07 03:24 (UTC) (edited on 2026-07-07 21:14 (UTC) by xiota)

Files following pattern /usr/lib/libopencv_*.so.4* are safe to overwrite if pacman complains.

Following may help if headers are not found when rebuilding other packages.

export CFLAGS+=" -I/usr/include/opencv4"
export CXXFLAGS+=" -I/usr/include/opencv4"