Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - opencv-git

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: opencv-git 3.2.0.r133.ga2fed4c79-1

Git Clone URL: https://aur-dev.archlinux.org/opencv-git.git (read-only)
Package Base: opencv-git
Description: Open Source Computer Vision Library
Upstream URL: http://opencv.org/
Licenses: BSD
Conflicts: opencv, opencv-git
Provides: opencv=3.2.0.r133.ga2fed4c79
Submitter: chenxing
Maintainer: andrewSC
Last Packager: andrewSC
Votes: 38
Popularity: 0.301779
First Submitted: 2012-07-31 00:21
Last Updated: 2017-02-03 14:37

Required by (139)

Sources (2)

Pinned Comments

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!

Latest Comments

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

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.

orbital_sfear commented on 2016-09-20 23:23

@Petron is right, to elborate on his response:

Manually apply the patch. Edit the PKGBUILD file, inside prepare() comment and add the following:
patch -p1 -i "${srcdir}/fsh.patch"

Change to:
# patch -p1 -i "${srcdir}/fsh.patch"

sed 's/OpenCV\/doc/doc\/opencv/' -i `grep -lr OpenCV\/doc * | grep CMakeLists.txt\$`
sed 's/share\/OpenCV/share\/opencv/' -i `grep -lr share\/OpenCV * | grep CMakeLists.txt\$`
sed 's/share\/OpenCV/share\/opencv/' -i `find . | grep opencv_run_all_tests_unix.sh.in\$`


Rerun the install: packer -S opencv-git

petronny commented on 2016-08-30 11:03

Forget the patch and replace it with

sed 's/OpenCV\/doc/doc\/opencv/' -i CMakeLists.txt
sed 's/share\/OpenCV/share\/opencv/' -i CMakeLists.txt
sed 's/share\/OpenCV/share\/opencv/' -i cmake/templates/opencv_run_all_tests_unix.sh.in

in prepare()

yhoyhoj commented on 2016-06-22 20:33

I got the same problem as @jat255, the fsh.patch file seems outdated, and it is not an offset of 11 lines anymore.
I modified it and it works.
Here is the modified version : http://pastebin.com/JZiDFERM
md5 sum : 12203576f2c864aeb9d9494c887e02c7