Last active
April 29, 2016 19:08
-
-
Save lighta/f75bf0ba78fbb0b4094bcd56c75c800b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#our cmake | |
find_package( OpenCV COMPONENTS highgui videoio ) | |
#find_package(OpenCV COMPONENTS world) | |
if (OPENCV_VIDEOIO_FOUND) | |
ADD_EXECUTABLE( capture_tags capture_tags.cpp) | |
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS}) | |
#TARGET_LINK_LIBRARIES(capture_tags tinytag ${OpenCV_LIBS}) | |
TARGET_LINK_LIBRARIES( capture_tags tinytag libopencv_world.so) | |
if ("${OpenCV_VERSION_STATUS}" STREQUAL "-dev") | |
set_target_properties(capture_tags PROPERTIES COMPILE_DEFINITIONS "OPENCV_DEV") | |
endif ("${OpenCV_VERSION_STATUS}" STREQUAL "-dev") | |
message(STATUS "capture_tags dependancy Found opencv world OpenCV_LIBS=${OpenCV_LIBS}") | |
endif (OPENCV_VIDEOIO_FOUND) | |
#the result | |
#in cmake generation | |
-- capture_tags dependancy Found opencv world OpenCV_LIBS=opencv_core;opencv_imgproc;opencv_imgcodecs;opencv_highgui;opencv_videoio | |
#in cmake build | |
58%] Linking CXX executable ../bin/capture_tags | |
/bin/ld: cannot find -lopencv_world | |
/bin/ld: cannot find -lopencv_videostab | |
/bin/ld: cannot find -lopencv_videoio | |
/bin/ld: cannot find -lopencv_video | |
/bin/ld: cannot find -lopencv_superres | |
/bin/ld: cannot find -lopencv_stitching | |
/bin/ld: cannot find -lopencv_shape | |
/bin/ld: cannot find -lopencv_photo | |
/bin/ld: cannot find -lopencv_objdetect | |
/bin/ld: cannot find -lopencv_ml | |
/bin/ld: cannot find -lopencv_highgui | |
/bin/ld: cannot find -lopencv_flann | |
/bin/ld: cannot find -lopencv_features2d | |
/bin/ld: cannot find -lopencv_calib3d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#link with verbose | |
[ 70%] Linking CXX executable ../bin/calibrate_with_tags | |
cd /home/dwos/Documents/git/dwos.codedlight/Build/tinytag/linux_static_x64/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/calibrate_with_tags.dir/link.txt --verbose=1 | |
/bin/c++ -Werror -Wall -Wno-pragmas -O3 -DNDEBUG CMakeFiles/calibrate_with_tags.dir/calibrate_with_tags.cpp.o -o ../bin/calibrate_with_tags -rdynamic ../lib/libtinytag.a /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib/libmvg.a /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib/libopencv_world.so.3.1.0 -lopencv_videostab -lopencv_videoio -lopencv_video -lopencv_superres -lopencv_stitching -lopencv_shape -lopencv_photo -lopencv_objdetect -lopencv_ml /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib/libopencv_world.so.3.1.0 /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib/libopencv_world.so.3.1.0 -lopencv_highgui -lopencv_flann -lopencv_features2d /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib/libopencv_world.so.3.1.0 -lopencv_calib3d /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib64/libceres.a /home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib64/libminiglog.a -lgomp -lpthread -lOpenThreads -Wl,-rpath,/home/dwos/Documents/git/dwos.codedlight/Install/linux/static/Release/x64/lib: | |
/bin/ld: cannot find -lopencv_videostab | |
/bin/ld: cannot find -lopencv_videoio | |
/bin/ld: cannot find -lopencv_video | |
/bin/ld: cannot find -lopencv_superres | |
/bin/ld: cannot find -lopencv_stitching | |
/bin/ld: cannot find -lopencv_shape | |
/bin/ld: cannot find -lopencv_photo | |
/bin/ld: cannot find -lopencv_objdetect | |
/bin/ld: cannot find -lopencv_ml | |
/bin/ld: cannot find -lopencv_highgui | |
/bin/ld: cannot find -lopencv_flann | |
/bin/ld: cannot find -lopencv_features2d | |
/bin/ld: cannot find -lopencv_calib3d | |
collect2: error: ld returned 1 exit status | |
examples/CMakeFiles/calibrate_with_tags.dir/build.make:103: recipe for target 'bin/calibrate_with_tags' failed | |
make[2]: *** [bin/calibrate_with_tags] Error 1 | |
make[2]: Leaving directory '/home/dwos/Documents/git/dwos.codedlight/Build/tinytag/linux_static_x64' | |
CMakeFiles/Makefile2:182: recipe for target 'examples/CMakeFiles/calibrate_with_tags.dir/all' failed | |
make[1]: *** [examples/CMakeFiles/calibrate_with_tags.dir/all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment