Package Details: opencv-cuda 4.1.0-1

Git Clone URL: https://aur.archlinux.org/opencv-cuda.git (read-only)
Package Base: opencv-cuda
Description: Open Source Computer Vision Library with CUDA support
Upstream URL: http://opencv.org/
Licenses: BSD
Conflicts: opencv, opencv-samples
Provides: opencv, opencv-samples
Submitter: billypilgrim
Maintainer: billypilgrim
Last Packager: billypilgrim
Votes: 0
Popularity: 0.000000
First Submitted: 2018-08-11 08:14
Last Updated: 2019-04-09 12:14

Dependencies (24)

Required by (226)

Sources (3)

Latest Comments

1 2 Next › Last »

huyizheng commented on 2019-03-30 10:44

@billypilgrim It built success now. Thx.

Another thing: The cuda in the official repository now depends on gcc8, so you'd better change the PKGBUILD to compile it with gcc8, or add a gcc7 dependency.

I successfully compiled it with gcc8.

billypilgrim commented on 2019-03-29 17:34

I've added a patch which fixes things for me.

Can you let me know if it works for you now, please?

huyizheng commented on 2019-03-29 05:24

Failed to build against cuda 10.1:

/home/abc/.cache/yay/opencv-cuda/src/opencv-4.0.1/modules/core/include/opencv2/core/cvstd_wrapper.hpp(45): error: incomplete type is not allowed
        detected during:
            instantiation of "cv::sfinae::has_parenthesis_operator<C, Ret, Args...>::check [with C=cv::DefaultDeleter<<unnamed>::LookUpTableImpl>, Ret=void, Args=<<unnamed>::LookUpTableImpl *>]" based on template argument <cv::DefaultDeleter<<unnamed>::LookUpTableImpl>> 
(49): here
            instantiation of class "cv::sfinae::has_parenthesis_operator<C, Ret, Args...> [with C=cv::DefaultDeleter<<unnamed>::LookUpTableImpl>, Ret=void, Args=<<unnamed>::LookUpTableImpl *>]" 
(138): here
            instantiation of "cv::Ptr<_Tp> cv::makePtr<_Tp,A1...>(const A1 &...) [with _Tp=<unnamed>::LookUpTableImpl, A1=<cv::_InputArray>]" 
/home/abc/.cache/yay/opencv-cuda/src/opencv_contrib-4.0.1/modules/cudaarithm/src/cuda/lut.cu(207): here

/home/abc/.cache/yay/opencv-cuda/src/opencv-4.0.1/modules/core/include/opencv2/core/cvstd_wrapper.hpp(49): error: template instantiation resulted in unexpected function type of "std::true_type (std::integral_constant<__nv_bool, false> *)" (the meaning of a name may have changed since the template declaration -- the type of the template is "std::true_type (std::is_same<std::decay<decltype((<expression>))>::type, void>::type *)")
        detected during:
            instantiation of "cv::sfinae::has_parenthesis_operator<C, Ret, Args...>::check [with C=cv::DefaultDeleter<<unnamed>::LookUpTableImpl>, Ret=void, Args=<<unnamed>::LookUpTableImpl *>]" based on template argument <cv::DefaultDeleter<<unnamed>::LookUpTableImpl>> 
(49): here
            instantiation of class "cv::sfinae::has_parenthesis_operator<C, Ret, Args...> [with C=cv::DefaultDeleter<<unnamed>::LookUpTableImpl>, Ret=void, Args=<<unnamed>::LookUpTableImpl *>]" 
(138): here
            instantiation of "cv::Ptr<_Tp> cv::makePtr<_Tp,A1...>(const A1 &...) [with _Tp=<unnamed>::LookUpTableImpl, A1=<cv::_InputArray>]" 
/home/abc/.cache/yay/opencv-cuda/src/opencv_contrib-4.0.1/modules/cudaarithm/src/cuda/lut.cu(207): here

/home/abc/.cache/yay/opencv-cuda/src/opencv-4.0.1/modules/core/include/opencv2/core/cvstd_wrapper.hpp(52): error: name followed by "::" must be a class or namespace name
        detected during:
            instantiation of class "cv::sfinae::has_parenthesis_operator<C, Ret, Args...> [with C=cv::DefaultDeleter<<unnamed>::LookUpTableImpl>, Ret=void, Args=<<unnamed>::LookUpTableImpl *>]" 
(138): here
            instantiation of "cv::Ptr<_Tp> cv::makePtr<_Tp,A1...>(const A1 &...) [with _Tp=<unnamed>::LookUpTableImpl, A1=<cv::_InputArray>]" 
/home/abc/.cache/yay/opencv-cuda/src/opencv_contrib-4.0.1/modules/cudaarithm/src/cuda/lut.cu(207): here

3 errors detected in the compilation of "/tmp/tmpxft_00005e8c_00000000-14_lut.compute_75.cpp1.ii".
CMake Error at cuda_compile_1_generated_lut.cu.o.Release.cmake:279 (message):
Error generating file
/home/abc/.cache/yay/opencv-cuda/src/build/modules/cudaarithm/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_lut.cu.o


make[2]: *** [modules/cudaarithm/CMakeFiles/opencv_cudaarithm.dir/build.make:163: modules/cudaarithm/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_lut.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2696: modules/cudaarithm/CMakeFiles/opencv_cudaarithm.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

DCengineer commented on 2019-02-12 18:44

Minor issue: pkgbase is undefined, which means that the source file is -4.0.1.tar.gz instead of opencv-4.0.1.tar.gz. I don't think this affects the build process, but it does cause tar to print a warning and doesn't play nicely with many other utilities.

billypilgrim commented on 2019-01-15 12:58

@spandan2 so it's working for you now then?

spandan2 commented on 2019-01-10 21:01

@billypilgrim this was when I tried to import it in python.. It installed as a pacman package just fine

billypilgrim commented on 2018-12-29 10:32

@spandan2 that seems like a bit of a hack. When were you seeing this error message?

billypilgrim commented on 2018-12-29 10:32

@huyizheng I've added opencv-samples to the provides and conflicts arrays, so it should build ok now.

spandan2 commented on 2018-12-27 21:15

I got this error. libzzip.so.13: cannot open shared object file: No such file or directory

All I had to do was install zziplib(https://www.archlinux.org/packages/extra/x86_64/zziplib/) and then I ran the following

a. cd /usr/lib/

b. ls -l libzzip* to check if the files are there

c. sudo cp -r libzzip* /usr/local/lib

d. cd /usr/local/lib

e. sudo cp -r libzzip-0.so.13 libzzip.so.13

Make sure /usr/local/lib is added to your Library path

huyizheng commented on 2018-12-26 08:50

Installing this package will break the dependency of opencv-samples:

$ LANG=C sudo pacman -U ./opencv-cuda-4.0.1-1-x86_64.pkg.tar loading packages... resolving dependencies... looking for conflicting packages... :: opencv-cuda and opencv are in conflict. Remove opencv? [y/N] y error: failed to prepare transaction (could not satisfy dependencies) :: removing opencv breaks dependency 'opencv=4.0.1' required by opencv-samples