Package Base Details: opencv-contrib

Git Clone URL: https://aur-dev.archlinux.org/opencv-contrib.git (read-only)
Submitter: zimi
Maintainer: zimi
Last Packager: zimi
Votes: 8
Popularity: 0.824016
First Submitted: 2015-11-29 22:45
Last Updated: 2016-06-29 18:35

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

pitan commented on 2016-06-16 04:10

workaround,

---------------
% git diff
diff --git a/.SRCINFO b/.SRCINFO
index a37521d..b4dc110 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@
pkgbase = opencv-contrib
pkgdesc = Open Source Computer Vision Library including additional 'contrib' modules
pkgver = 3.1.0
- pkgrel = 1
+ pkgrel = 2
url = http://opencv.org/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index f947352..7fe12e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,8 +12,8 @@ arch=('i686' 'x86_64')
license=('BSD')
url="http://opencv.org/"
depends=('intel-tbb' 'openexr' 'xine-lib' 'libdc1394' 'gtkglext')
-makedepends=('cmake' 'python2-numpy' 'mesa' 'eigen2')
-optdepends=('eigen2'
+Makedepends=('cmake' 'python2-numpy' 'mesa' 'eigen3-hg')
+optdepends=('eigen3-hg'
'libcl: For coding with OpenCL'
'python2-numpy: Python 2.x interface')

@@ -37,9 +37,12 @@ _cmakeopts=('-D WITH_OPENCL=ON'
'-D CMAKE_BUILD_TYPE=Release'
'-D CMAKE_INSTALL_PREFIX=/usr'
'-D CMAKE_SKIP_RPATH=ON'
+ '-D ENABLE_PRECOMPILED_HEADERS=OFF'
+ '-D EIGEN_INCLUDE_PATH=/usr/include/eigen3'
# Settings for neural network module'
'-D BUILD_opencv_dnn=ON'
- '-D BUILD_LIBPROTOBUF_FROM_SOURCES=ON')
+ '-D BUILD_LIBPROTOBUF_FROM_SOURCES=ON'
+ '-D BUILD_opencv_python3=ON')


# SSE only available from Pentium 3 onwards (i686 is way older)

olejorgenb commented on 2016-06-06 14:25

Regarding the vtkRenderingOpenGL problem: https://github.com/Itseez/opencv/issues/6180 got me one step closer.

But now the build fails with:
/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>

...

Torin commented on 2016-05-29 00:11

I have the same compilation error as lagarkane and kikislater, using gcc 6.1.1.

lagarkane commented on 2016-05-18 14:08

Same problem here since gcc 6.1.1:

[ 9%] Generating precomp.hpp.gch/opencv_core_Release.gch
In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0,
from /usr/include/c++/6.1.1/algorithm:62,
from /tmp/yaourt-tmp-bruno/aur-opencv-contrib/src/opencv-3.1.0/modules/core/include/opencv2/core/base.hpp:53,
from /tmp/yaourt-tmp-bruno/aur-opencv-contrib/src/opencv-3.1.0/modules/core/include/opencv2/core.hpp:54,
from /tmp/yaourt-tmp-bruno/aur-opencv-contrib/src/opencv-3.1.0/modules/core/include/opencv2/core/utility.hpp:52,
from /tmp/yaourt-tmp-bruno/aur-opencv-contrib/src/opencv-3.1.0/modules/core/precomp.hpp:49:
/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.

kikislater commented on 2016-05-17 11:38

libc6 error :

[ 1%] Generating precomp.hpp.gch/opencv_core_Release.gch
In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0,
from /usr/include/c++/6.1.1/algorithm:62,
from /tmp/yaourt-tmp-kiki/aur-opencv-contrib/src/opencv-3.1.0/modules/core/include/opencv2/core/base.hpp:53,
from /tmp/yaourt-tmp-kiki/aur-opencv-contrib/src/opencv-3.1.0/modules/core/include/opencv2/core.hpp:54,
from /tmp/yaourt-tmp-kiki/aur-opencv-contrib/src/opencv-3.1.0/modules/core/include/opencv2/core/utility.hpp:52,
from /tmp/yaourt-tmp-kiki/aur-opencv-contrib/src/opencv-3.1.0/modules/core/precomp.hpp:49:
/usr/include/c++/6.1.1/cstdlib:75:25: erreur fatale : stdlib.h : Aucun fichier ou dossier de ce type
#include_next <stdlib.h>

jerry73204 commented on 2016-05-03 11:11

I got building failed if ccache is installed. I made a clean chroot to solve this problem, but still looking for better solution.
Besides, there comes a compilation error if 'eigen' package is not installed.
I think we may replace the dependency 'eigen2' with 'eigen'.
Please add "-D BUILD_opencv_python3=ON" cmake option to enable Python 3.x support.

sl1pkn07 commented on 2016-04-30 17:01

CMake Error at /usr/lib/cmake/vtk-7.0/vtkModuleAPI.cmake:120 (message):
Requested modules not available:

vtkRenderingOpenGL
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-7.0/VTKConfig.cmake:88 (vtk_module_config)
cmake/OpenCVDetectVTK.cmake:6 (find_package)
CMakeLists.txt:597 (include)


-- Configuring incomplete, errors occurred!

is problem of vtk?

zimi commented on 2016-04-25 14:54

There's an OpenCV 3.1 package in extra now:

https://www.archlinux.org/packages/extra/x86_64/opencv/

nylocx commented on 2016-04-20 11:12

Hi, for me the package compiles fine (no CUDA) but the move magic of the /usr/share/OpenCV directory breaks CMake for me. I had to remove the moving and replace /usr/share/opencv with /usr/share/OpenCV to make it work again. Maybe you are using another build tool? Or did you patch the OpenCVModules.cmake and forgot to add the patch?


-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/opencv/OpenCVModules.cmake:186 (message):
The imported target "opencv_java" references the file

"/usr/share/OpenCV/java/libopencv_java310.so"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/share/opencv/OpenCVModules.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/share/opencv/OpenCVConfig.cmake:86 (include)
main/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/alex/ls7/build-LiveStatistics-Qt5-Debug/CMakeFiles/CMakeOutput.log".

archdria commented on 2016-03-10 15:01

In fact the issue comes when building the examples.
It is a known problem:
https://github.com/Itseez/opencv/issues/5859
Apparently adding "-lGL -lGLU" at the end of the line in file "opencv-3.1.0/build/samples/gpu/CMakeFiles/example_gpu_opengl.dir/link.txt" solves it.
I don't know if it is worth it adding a patch in the PKGBUILD...