Package Base Details: opencv2-opt

Git Clone URL: https://aur.archlinux.org/opencv2-opt.git (read-only, click to copy)
Submitter: dracorp
Maintainer: jerry73204
Last Packager: jerry73204
Votes: 10
Popularity: 0.000406
First Submitted: 2016-10-22 23:27
Last Updated: 2018-11-04 07:39

Latest Comments

1 2 3 Next › Last »

nitrotm commented on 2020-10-20 11:06

The following extra patch is necessary to allow building the highgui module:

--- a/modules/highgui/src/grfmt_jpeg2000.cpp    2018-02-21 19:27:31.000000000 +0100
+++ b/modules/highgui/src/grfmt_jpeg2000.cpp    2020-10-20 12:57:32.135684822 +0200
@@ -338,7 +338,7 @@

     for( y = 0; y < yend - ystart; )
     {
-        jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 );
+        jas_seqent_t* pix_row = jas_matrix_getref( buffer, y / ystep, 0 );
         uchar* dst = data + (y - yoffset) * step - xoffset;

         if( xstep == 1 )
@@ -402,7 +402,7 @@

     for( y = 0; y < yend - ystart; )
     {
-        jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 );
+        jas_seqent_t* pix_row = jas_matrix_getref( buffer, y / ystep, 0 );
         ushort* dst = data + (y - yoffset) * step - xoffset;

         if( xstep == 1 )

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