Package Details: opencv-git 3.3.1.r184.gc3cced0f89-1

Git Clone URL: (read-only)
Package Base: opencv-git
Description: Open Source Computer Vision Library
Upstream URL:
Licenses: BSD
Conflicts: opencv
Provides: opencv=3.3.1.r184.gc3cced0f89
Submitter: chenxing
Maintainer: andrewSC
Last Packager: andrewSC
Votes: 40
Popularity: 1.155760
First Submitted: 2012-07-31 00:21
Last Updated: 2017-11-22 00:58

Required by (185)

Sources (2)

Latest Comments

andrewSC commented on 2018-02-26 14:28

trougnouf: Can you provide a dump (via gist or, etc) of the full build on your system with the current/unmodified pkgbuild? I'm not getting errors compiling locally.

trougnouf commented on 2018-02-18 15:14

still getting an error, --expt-relaxed-constexpr should be added to CUDA_NVCC_FLAGS somehow

trougnouf commented on 2018-02-18 14:02

Needs '-DCUDA_HOST_COMPILER=/usr/bin/gcc-6' in _cmakeopts and gcc6 in makedepends

andrewSC commented on 2018-01-05 14:53

hellraise007: Last successful build on my machine was around 1am EDT 05/01/2018: opencv-git-3.4.0.r59.g16821b877c-1-x86_64.pkg.tar

EDIT: Are you having trouble compiling?

hellraise007 commented on 2018-01-05 14:51

Does this package build without errors?

a36233 commented on 2017-11-22 14:56

Please build with gcc-6 because of cuda, please add dependencies and build using CC and CCX pointing to gcc-6 and g++-6.

[ 5%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/
In file included from /opt/cuda/include/host_config.h:50:0,
from /opt/cuda/include/cuda_runtime.h:78,
from <command-line>:0:
/opt/cuda/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
CMake Error at (message):
Error generating

andrewSC commented on 2017-05-12 15:36

davini: I just updated the PKGBUILD. The error you (and anyone using this PKGBUILD) were getting was related to Should be all fixed now. Let me know if there are any other issues.

davini commented on 2017-05-05 17:56

I'm not really sure how to fix this error:

==> Updated version: opencv-git 3.2.0.r571.g06b0fe35d-1
==> Starting build()...
CMake Error at CMakeLists.txt:11 (message):

FATAL: In-source builds are not allowed.

You should create separate directory for build files.

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

Any ideas?

andrewSC commented on 2016-12-16 17:12

cyang: I've successfully built and updated this package on an Intel Core i7-4980HQ (Haswell-H). If someone else has trouble building on Ivy Bridge I can try to target that. Also, did you try adding `-D CMAKE_C_FLAGS="-march=ivybridge"` and `-D CMAKE_CXX_FLAGS="-march=ivybridge"` to cmakeopts already?

cyang commented on 2016-12-16 09:09

I got the following error when building:

In file included from /home/cyang/src/opencv-git/src/opencv/modules/core/include/opencv2/core/hal/intrin.hpp:293:0,
from /home/cyang/src/opencv-git/src/opencv/modules/core/src/precomp.hpp:84,
from /home/cyang/src/opencv-git/src/opencv/modules/core/src/algorithm.cpp:43:
/home/cyang/src/opencv-git/src/opencv/modules/core/include/opencv2/core/hal/intrin_sse.hpp: In function ‘cv::v_float32x4 cv::v_cvt_f32(const cv::v_float16x4&)’:
/home/cyang/src/opencv-git/src/opencv/modules/core/include/opencv2/core/hal/intrin_sse.hpp:1721:42: error: ‘_mm_cvtph_ps’ was not declared in this scope
return v_float32x4(_mm_cvtph_ps(a.val));
/home/cyang/src/opencv-git/src/opencv/modules/core/include/opencv2/core/hal/intrin_sse.hpp: In function ‘cv::v_float16x4 cv::v_cvt_f16(const cv::v_float32x4&)’:
/home/cyang/src/opencv-git/src/opencv/modules/core/include/opencv2/core/hal/intrin_sse.hpp:1726:45: error: ‘_mm_cvtps_ph’ was not declared in this scope
return v_float16x4(_mm_cvtps_ph(a.val, 0));
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:91: modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o] Error 1

I was able to resolve it by adding '-D ENABLE_AVX=ON' to _cmakeopts in the PKGBUILD which for me adds the -mavx and -mf16c compiler flags. Not sure if others are seeing this error, or it is only my configuration/hardware (Intel Ivy Bridge).

All comments