cannot find -lopencv_gapi

asked 2019-07-11 07:55:42 -0600

ROSpioneer gravatar image

I'm struggling to compile marker_mapper which uses aruco lib. This is my settings:

GCC 5.5.0 ubuntu 16.04

Opencv 3.3.1 that comes with ROS (I tried other version of V3)

Aruco 3.0.12

I don't really know what missing.. I've been working with this setting mnay times but I can't figure out the issue why marker_mapper doesn't compile

[ 18%] Building CXX object src/CMakeFiles/marker_mapper.dir/mapper_types.cpp.o
[ 18%] Building CXX object src/CMakeFiles/marker_mapper.dir/debug.cpp.o
[ 36%] Building CXX object src/CMakeFiles/marker_mapper.dir/markermapper.cpp.o
[ 36%] Building CXX object src/CMakeFiles/marker_mapper.dir/optimizers/ippe.cpp.o
[ 45%] Building CXX object src/CMakeFiles/marker_mapper.dir/optimizers/fullsceneoptimizer.cpp.o
[ 54%] Building CXX object src/CMakeFiles/marker_mapper.dir/mappers/globalgraph_markermapper.cpp.o
[ 63%] Building CXX object src/CMakeFiles/marker_mapper.dir/mappers/posegraphoptimizer.cpp.o
[ 72%] Building CXX object src/CMakeFiles/marker_mapper.dir/utils/utils3d.cpp.o
[ 81%] Linking CXX shared library libmarker_mapper.so
/usr/bin/ld: cannot find -lopencv_gapi
collect2: error: ld returned 1 exit status
src/CMakeFiles/marker_mapper.dir/build.make:321: recipe for target 'src/libmarker_mapper.so.1.0.12' failed
make[2]: *** [src/libmarker_mapper.so.1.0.12] Error 1
CMakeFiles/Makefile2:117: recipe for target 'src/CMakeFiles/marker_mapper.dir/all' failed
make[1]: *** [src/CMakeFiles/marker_mapper.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
edit retag flag offensive close merge delete

Comments

1

GAPI is available only in OpenCV 4. Most likely an issue with multiple OpenCV versions on your computer.

Eduardo gravatar imageEduardo ( 2019-07-11 08:04:14 -0600 )edit

@Eduardo Because that package could get compiled with version3 it does exist before V4.. how can I solve that issue of having multiple version? I do specify the exact versions in CMakeLists

ROSpioneer gravatar imageROSpioneer ( 2019-07-11 08:10:45 -0600 )edit