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: 9
Popularity: 0.000000
First Submitted: 2016-10-22 23:27
Last Updated: 2018-11-04 07:39

Latest Comments

1 2 3 Next › Last »

tom commented on 2021-11-12 00:22

build failed:

...

[ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_tagtree.c.o cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C [ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_tsfb.c.o cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C [ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_util.c.o cc1: warning: command-line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C cc1: warning: command-line option ‘-Wno-delete-non-virtual-dtor’ is valid for C++/ObjC++ but not for C /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c: In function ‘jpc_atoaf’: /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:105:20: warning: comparison between pointer and zero character constant [-Wpointer-compare] 105 | if (cp != '\0') { | ^~ /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:105:17: note: did you mean to dereference the pointer? 105 | if (cp != '\0') { | ^ /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:123:24: warning: comparison between pointer and zero character constant [-Wpointer-compare] 123 | if (cp != '\0') { | ^~ /build/opencv2-opt/src/opencv-2.4.13.6/3rdparty/libjasper/jpc_util.c:123:21: note: did you mean to dereference the pointer? 123 | if (cp != '\0') { | ^ [ 6%] Linking C static library ../lib/liblibjasper.a [ 6%] Built target libjasper make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/tmp/mkgkris/build

Galaxy commented on 2021-08-17 09:29

In build section, it is better to set export LDFLAGS="-Wl,-rpath,/opt/${_pkgbase}/lib".

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.