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

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

Required by (172)

Sources (2)

Latest Comments

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/cuda_compile_generated_gpu_mat.cu.o
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 cuda_compile_generated_gpu_mat.cu.o.cmake:206 (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 https://github.com/opencv/opencv/pull/8582. 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().
Aborting.


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

andrewSC commented on 2016-12-06 16:19

Hi all, I've adopted this package and have made the following changes:
- Removal of ARM support (please comment if you would like it back)
- Added opencv_contrib to the build process

Right now this is a fairly vanilla PKGBUILD. As time goes on and I understand how the community uses the opencv package, I can make changes where appropriate.

If there's options or other things you would like to suggest for addition/removal to the PKGBUILD please feel free to comment! Thanks!

pixelou commented on 2016-10-18 13:02

I had to modify the PKGBUILD to make it build: https://gist.github.com/pixelou/58ff356ee4e6a3b66537347fe6ad4bec (based on @johnphho's submission).
C++11 is required instead of c++98.
OpenCL is explicitely disable because there are many open bugs related to it.
Furthermore, you may want to disable the optimization flags and modify dependencies for compatibility.

orbital_sfear commented on 2016-10-07 18:10

@wallnuss thanks a bunch for the offer but my plate is already full and I'm worried I'd become unresponsive. Please use my suggestion in any way that would help.

wallnuss commented on 2016-09-21 04:24

@johnphho, or @orbital_sfear I can add you as co-maintainers if you are interested in contributing your changes.

johnphho commented on 2016-09-21 03:55

Here is PKGBUILD on top of the existing one: https://gist.github.com/johnphho/2b6764d991d633119d41e63350bb96ba.

This supports cuda and gcc6 but I had to turn off the examples.

If anyone can figure out how to compile the samples that would be great. I keep getting the error:

Error: call of overloaded 'abs(double)' is ambiguous for the c examples.

All comments