Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ 78%] Linking CXX executable ../Examples/RGB-D/rgbd_tum #209

Open
chaowu2009 opened this issue Dec 1, 2016 · 2 comments
Open

[ 78%] Linking CXX executable ../Examples/RGB-D/rgbd_tum #209

chaowu2009 opened this issue Dec 1, 2016 · 2 comments

Comments

@chaowu2009
Copy link

chaowu2009 commented Dec 1, 2016

It's almost done. But the last step has issues now. Can somebody help? Thanks. It seems libopencv_core3 is the wrong library built? How should I solve it?

[ 78%] Linking CXX executable ../Examples/RGB-D/rgbd_tum
[ 81%] Linking CXX executable ../Examples/Monocular/mono_euroc
[ 84%] Linking CXX executable ../Examples/Monocular/mono_tum
//usrusr//binbin//ldld:: CMakeFiles/CMakeFilesrgbd_tum.dir//mono_tum.dir/Examples/Monocular/mono_tum.cc.o: undefined Examplesreference to symbol '_ZN2cv6String10deallocateEv'
/opt/ros/kinetic/lib/libopencv_core3.so.3.1: error /adding usrsymbols: DSO missing from command line/
RGB-D/rgbd_tum.cc.o: undefined reference to /symbol '_ZN2cv6String10deallocateEv'
/optbincollect2: error: ld returned 1 exit status
/ros/kinetic/lib/libopencv_core3.so.3.1:/ error addingld symbols:: DSO missing from command line
CMakeFiles/collect2: error: ld returned 1 exit status
mono_euroc.dir/Examples/Monocular/mono_euroc.cc.o: undefined reference to symbol '_ZN2cv6String10deallocateEv'
/opt/ros/kinetic/lib/libopencv_core3.so.3.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/rgbd_tum.dir/build.make:135: recipe for target '../Examples/RGB-D/rgbd_tum' failed
make[2]: *** [../Examples/RGB-D/rgbd_tum] Error 1
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/rgbd_tum.dir/all' failed
CMakeFiles/mono_euroc.dir/build.make:135: recipe for target '../Examples/Monocular/mono_euroc' failed
make[2]: *** [../Examples/Monocular/mono_euroc] Error 1
make[1]: *** [CMakeFiles/rgbd_tum.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mono_euroc.dir/all' failed
make[1]: *** [CMakeFiles/mono_euroc.dir/all] Error 2
CMakeFiles/mono_tum.dir/build.make:135: recipe for target '../Examples/Monocular/mono_tum' failed
make[2]: *** [../Examples/Monocular/mono_tum] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/mono_tum.dir/all' failed
make[1]: *** [CMakeFiles/mono_tum.dir/all] Error 2
[ 87%] Linking CXX executable ../Examples/Monocular/mono_kitti
/usr/bin/ld: CMakeFiles/mono_kitti.dir/Examples/Monocular/mono_kitti.cc.o: undefined reference to symbol '_ZN2cv6String10deallocateEv'
/opt/ros/kinetic/lib/libopencv_core3.so.3.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/mono_kitti.dir/build.make:135: recipe for target '../Examples/Monocular/mono_kitti' failed
make[2]: *** [../Examples/Monocular/mono_kitti] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/mono_kitti.dir/all' failed
make[1]: *** [CMakeFiles/mono_kitti.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@chaowu2009
Copy link
Author

Solve it by myself. It is an error of openCV version.
changed it to the following:
find_package(OpenCV 3.0 REQUIRED)

Ref: #13

@lolz0r
Copy link

lolz0r commented Jan 5, 2017

I had the same issue; your solution solved it. Maybe check in an updated CMakeLists.txt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants