Package Details: opencv-cuda 4.1.2-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: 4
Popularity: 1.87
First Submitted: 2018-08-11 08:14
Last Updated: 2019-10-16 16:05

Dependencies (24)

Required by (241)

Sources (4)

Latest Comments

1 2 3 Next › Last »

stevesp commented on 2019-10-29 18:41

@dferio thanks, tried the -DENABLE_PRECOMPILED_HEADERS=OFF before, which didn't work. Using -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON in addition solved it. Thanks!

dferio commented on 2019-10-29 10:56

@stevesp @billypilgrim Add -DENABLE_PRECOMPILED_HEADERS=OFF and -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON to PKGBUILD

Here is the patch:

diff --git a/PKGBUILD b/PKGBUILD
index 25fdcfc..332f158 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -73,7 +73,9 @@ build() {
     -DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so" \
     -DLAPACK_CBLAS_H="/usr/include/cblas.h" \
     -DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
-    -DOPENCV_GENERATE_PKGCONFIG=ON
+    -DOPENCV_GENERATE_PKGCONFIG=ON \
+    -DENABLE_PRECOMPILED_HEADERS=OFF \
+    -DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON
   make
 }

stevesp commented on 2019-10-23 11:59

For me it fails with the exact same compile errors as for dferio on two different arch systems. Is there already a fix known?

dferio commented on 2019-10-17 20:29

It fails to compile:

make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:253: modules/core/CMakeFiles/opencv_core.dir/src/convert.dispatch.cpp.o] Error 1
In file included from /usr/include/c++/9.2.0/ext/string_conversions.h:41,
                 from /usr/include/c++/9.2.0/bits/basic_string.h:6493,
                 from /usr/include/c++/9.2.0/string:55,
                 from /usr/include/c++/9.2.0/stdexcept:39,
                 from /usr/include/c++/9.2.0/array:39,
                 from /home/freemind/.cache/yay/opencv-cuda/src/opencv-4.1.2/modules/core/include/opencv2/core/cvdef.h:700,
                 from /home/freemind/.cache/yay/opencv-cuda/src/opencv-4.1.2/modules/core/include/opencv2/core.hpp:52,
                 from /home/freemind/.cache/yay/opencv-cuda/src/opencv-4.1.2/modules/core/include/opencv2/core/utility.hpp:56,
                 from /home/freemind/.cache/yay/opencv-cuda/src/opencv-4.1.2/modules/core/src/precomp.hpp:49,
                 from /home/freemind/.cache/yay/opencv-cuda/src/opencv-4.1.2/modules/core/src/convert_c.cpp:6:
/usr/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next <stdlib.h>
      |               ^~~~~~~~~~
compilation terminated.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:266: modules/core/CMakeFiles/opencv_core.dir/src/convert_c.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2633: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: opencv-cuda

reikdas commented on 2019-09-07 23:21

In file included from /home/reik/.cache/yay/opencv-cuda/src/opencv-4.1.1/modules/python/src2/cv2.cpp:1657:
/home/reik/.cache/yay/opencv-cuda/src/build/modules/python_bindings_generator/pyopencv_generated_funcs.h: In function ‘PyObject* pyopencv_cv_text_createERFilterNM2(PyObject*, PyObject*, PyObject*)’:
/home/reik/.cache/yay/opencv-cuda/src/build/modules/python_bindings_generator/pyopencv_generated_funcs.h:38305:1: internal compiler error: Segmentation fault
38305 | }
      | ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:18245: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2

reikdas commented on 2019-09-04 14:36

Error-

[ 39%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/eltwise_layer.cpp.o
nvcc error   : 'ptxas' died due to signal 11 (Invalid memory reference)
nvcc error   : 'ptxas' core dumped
CMake Error at cuda_compile_1_generated_remap.cu.o.Release.cmake:279 (message):
  Error generating file
  /home/reik/.cache/yay/opencv-cuda/src/build/modules/cudawarping/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_remap.cu.o


make[2]: *** [modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/build.make:79: modules/cudawarping/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_remap.cu.o] Error 1

billypilgrim commented on 2019-09-03 14:18

Thanks for that. I've updated the PKGBUILD.

billypilgrim commented on 2019-09-03 14:18

Thanks for that. I've updated the PKGBUILD.

DWestCoast commented on 2019-09-03 13:01

Add -DEIGEN_INCLUDE_PATH to PKGBUILD

-DOPENCV_GENERATE_PKGCONFIG=ON \
-DOPENCV_ENABLE_NONFREE=ON \
-DEIGEN_INCLUDE_PATH=/usr/include/eigen3

reikdas commented on 2019-09-02 17:13

fatal error: Eigen/Core: No such file or directory

Is there a way to fix this?