Package Details: opencv2-opt-samples

Git Clone URL: (read-only, click to copy)
Package Base: opencv2-opt
Description: Open Source Computer Vision Library (Legacy Version & /opt directory version) (samples)
Upstream URL:
Licenses: BSD
Provides: opencv2-samples
Submitter: dracorp
Maintainer: jerry73204
Last Packager: jerry73204
Votes: 10
Popularity: 0.001260
First Submitted: 2016-10-22 23:27
Last Updated: 2018-11-04 07:39

Dependencies (9)

Required by (2)

Sources (2)

Latest Comments

1 2 Next › Last »

hottea commented on 2018-11-04 03:18

@jerry73204 hey, could you help me with maintain this pkg?

jerry73204 commented on 2018-11-03 16:44

The PKGBUILD renames share/OpenCV to share/opencv. It causes the cmake config files unusable (See this issue).

In this issue, cmake script assumes /opt/opencv2/share/OpenCV/java/, which parent directory is gone.

Please include this patch in order to fix it.

diff --git a/modules/java/CMakeLists.txt b/modules/java/CMakeLists.txt
index c46f70a..b7c152e 100644
--- a/modules/java/CMakeLists.txt
+++ b/modules/java/CMakeLists.txt
@@ -280,7 +280,7 @@ else(ANDROID)
     set(JAR_INSTALL_DIR java)
-    set(JAR_INSTALL_DIR share/OpenCV/java)
+    set(JAR_INSTALL_DIR share/opencv2/java)

postadelmaga commented on 2018-08-29 07:18

now It compiles.

dracorp commented on 2018-06-21 21:20

Hi, I've disowned package, because I don't have enough time to take care of it.

kova7ev commented on 2018-06-20 10:41

If you don't need ffmpeg dependencies you can disable it by adding in your CMAKE this option: -D WITH_FFMPEG=OFF

postadelmaga commented on 2018-06-20 07:46

Any workaround ? How can I try using ffmpeg2.8 ?

AsGreyWolf commented on 2018-05-29 03:34

Try using ffmpeg2.8.

dracorp commented on 2018-05-22 15:19

The same problem is for opencv2

postadelmaga commented on 2018-05-22 05:39

Same here, built fails at 10%

[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o

dreieck commented on 2018-05-17 11:32

Build fails for me, too:

In file included from /var/tmp/yaourt-tmp-felics/aur-opencv2-opt/src/opencv-
/var/tmp/yaourt-tmp-felics/aur-opencv2-opt/src/opencv- In static member function ‘static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, AVCodecID, int, int, int, double, AVPixelFormat)’:
/var/tmp/yaourt-tmp-felics/aur-opencv2-opt/src/opencv- error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
/var/tmp/yaourt-tmp-felics/aur-opencv2-opt/src/opencv- note: suggested alternative: ‘AV_CODEC_FLAG_GLOBAL_HEADER’
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:180: modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:952: modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().