Page 1 of 1

make error libMagick++.so: undefined reference

Posted: 2013-01-28T02:52:44-07:00
by criskross
During make i get the following errorcode:

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
Where is the problem? I am using Ubuntu 10.04.4 LTS.

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})
...
Any solution? :)

Re: make error libMagick++.so: undefined reference

Posted: 2013-02-11T02:19:57-07:00
by criskross
So much views but no idea?

Re: make error libMagick++.so: undefined reference

Posted: 2013-05-14T01:01:11-07:00
by criskross
Still no ideas?