Package Details: opencv2-opt 2.4.13.6-2

Git Clone URL: https://aur.archlinux.org/opencv2-opt.git (read-only)
Package Base: opencv2-opt
Description: Open Source Computer Vision Library (Legacy Version & /opt directory version)
Upstream URL: http://opencv.org/
Licenses: BSD
Provides: opencv2
Submitter: dracorp
Maintainer: hottea (jerry73204)
Last Packager: jerry73204
Votes: 9
Popularity: 0.851684
First Submitted: 2016-10-22 23:27
Last Updated: 2018-11-04 07:39

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/libopencv_java2413.so, 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)
   if(WIN32)
     set(JAR_INSTALL_DIR java)
   else(WIN32)
-    set(JAR_INSTALL_DIR share/OpenCV/java)
+    set(JAR_INSTALL_DIR share/opencv2/java)
   endif(WIN32)
   install(FILES ${JAR_FILE} DESTINATION ${JAR_INSTALL_DIR} COMPONENT java)
 endif(ANDROID)

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-2.4.13.3/modules/highgui/src/cap_ffmpeg.cpp:45:
/var/tmp/yaourt-tmp-felics/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp: 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-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:2214:25: 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-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:2214:25: note: suggested alternative: ‘AV_CODEC_FLAG_GLOBAL_HEADER’
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                         ^~~~~~~~~~~~~~~~~~~~~~~~
                         AV_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().
    Aborting...