Code: Select all
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libMagick++.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libMagick++.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status
make[2]: *** [VideoExplorer] Error 1
make[1]: *** [CMakeFiles/VideoExplorer.dir/all] Error 2
make: *** [all] Error 2
My CMake looks like that:
Code: Select all
...
find_package(ImageMagick COMPONENTS Magick++ MagickCore)
IF(ImageMagick_INCLUDE_DIRS)
message(STATUS "Found ImageMagick")
include_directories(${ImageMagick_INCLUDE_DIRS})
ELSE(ImageMagick_INCLUDE_DIRS)
message(STATUS "ImageMagick not FOUND")
ENDIF(ImageMagick_INCLUDE_DIRS )
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${MYSQL_LIBRARIES} ${CRYPTOPP_LIBRARY} ${OpenCV_LIBS} ${ImageMagick_LIBRARIES})
...