Package Details: ros-kinetic-opencv3 3.3.1-3

Git Clone URL: https://aur.archlinux.org/ros-kinetic-opencv3.git (read-only)
Package Base: ros-kinetic-opencv3
Description: ROS - OpenCV 3.x.
Upstream URL: http://opencv.org
Licenses: BSD
Conflicts: lapacke
Submitter: zootboy
Maintainer: None
Last Packager: zootboy
Votes: 2
Popularity: 0.000003
First Submitted: 2017-07-08 04:18
Last Updated: 2018-01-02 22:22

Sources (1)

Pinned Comments

zootboy commented on 2018-01-22 22:48

I've uploaded a new package to the AUR:

https://aur.archlinux.org/packages/ros-kinetic-opencv3-native/

This should pull in the native opencv package instead of forcing you to build it from scratch. Give it a try and let me know if it happens to break anything.

Latest Comments

« First ‹ Previous 1 2

djringjr commented on 2017-11-19 21:47

No rule to make target '/usr/lib/libhpdf.so', needed by 'lib/libopencv_viz3.so.3.3.1'. Stop.

zootboy commented on 2017-11-18 23:57

I pushed the latest version to the AUR. See if that helps with your issue.

xico commented on 2017-11-16 10:21

For CUDA 9 you need version 3.3.1, otherwise there are issues with finding some libraries.

Suggested changes to build with GCC 6: https://github.com/etlapale/ros-kinetic-opencv3

patrickelectric commented on 2017-10-20 09:25

this version do not work with cuda 9.

VladR commented on 2017-08-10 20:04

@angelterrones - I can confirm I had the same issue and doing the steps you described here worked like a charm.

The error I got was related to GCC version unsupported by nvcc but I didn't get the error related to the stdlib include that you got.

If you have any questions regarding my setup that I might clarify, just ask.

angelterrones commented on 2017-07-16 13:26

I was able to compile adding -DCUDA_NVCC_FLAGS="-ccbin gcc-5" to the PKGBUILD, and removing the -fno-plt flag in makepkg.conf because that flag is new in gcc 7. But this will compile the cuda code with gcc5, and the host (CPU) code with gcc7.

zootboy commented on 2017-07-16 05:57

I ran some tests with a fresh VM, and I was able to trigger the bug, but not reliably. I haven't managed to pin down what triggers it, so I still can't offer a real fix. In the meantime, I applied the ENABLE_PRECOMPILED_HEADERS, plus a few missing deps.

There is a gcc5 package that CUDA seems to use, maybe you could patch the build to use that instead of the default gcc?

angelterrones commented on 2017-07-15 22:36

System is fully up-to-date. I rebuild the package manually (deleting all but the tar.gz and PKGBUILD file). And yes, the PC was rebooted.

Thx :/

zootboy commented on 2017-07-15 21:58

Sorry, but I'm unable to reproduce this. Can you try making sure your system is fully up-to-date (pacman -Syu, all .pacnew files merged, rebooted), then try rebuilding the package manually (i.e. via makepkg, not with an AUR helper)?

As for the CUDA issue, I'm afraid you're on your own with that. I don't have any systems that use CUDA.

angelterrones commented on 2017-07-15 20:53

Hi.
I'm unable to compile this. Error:

Scanning dependencies of target pch_Generate_opencv_viz
[ 5%] Generating precomp.hpp
[ 5%] Generating precomp.hpp.gch/opencv_viz_Release.gch
In file included from /usr/include/c++/7.1.1/ext/string_conversions.h:41:0,
from /usr/include/c++/7.1.1/bits/basic_string.h:6159,
from /usr/include/c++/7.1.1/string:52,
from /usr/include/c++/7.1.1/stdexcept:39,
from /usr/include/c++/7.1.1/array:39,
from /usr/include/c++/7.1.1/tuple:39,
from /usr/include/c++/7.1.1/bits/stl_map.h:63,
from /usr/include/c++/7.1.1/map:61,
from /tmp/yaourt-tmp-aterrones/aur-ros-kinetic-opencv3/src/build/modules/viz/precomp.hpp:49:
/usr/include/c++/7.1.1/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
make[2]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:64: modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1
make[1]: *** [CMakeFiles/Makefile2:2919: modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 5%] Built target pch_Generate_opencv_ml
[ 5%] Built target pch_Generate_opencv_video
[ 5%] Built target pch_Generate_opencv_surface_matching
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Probably a gcc 7 bug.
Using -DENABLE_PRECOMPILED_HEADERS=OFF give another bug for CUDA, because CUDA needs GCC 5, and the system GCC is 7:

[ 0%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /opt/cuda/include/cuda_runtime.h:78:0,
from <command-line>:0:
/opt/cuda/include/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
^~~~~
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:206 (message):
Error generating
/tmp/yaourt-tmp-aterrones/aur-ros-kinetic-opencv3/src/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o


make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:65: modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1844: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 0%] Built target opencv_matlab_sources
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...