Ask Your Question

Include ImageMagick headers file in catkin pakage

asked 2014-04-07 22:47:17 -0500

DPK27 gravatar image

I am trying to include the header files of ImageMagick in my catkin package.

I am using include_directories() function in CMakeLists.text file. like this :

find_package(ImageMagick COMPONENTS magick) include_directories(include ${ImageMagick_INCLUDES} )

still its giving the error no such file or directory.

What to do to resolve this??

edit retag flag offensive close merge delete


First of all if you don't use the "REQUIRED" keyword you can't even be sure that the package has been found. And second you should output the content of the variable ImageMagick_INCLUDES to check what it actually contains. It might just be empty because either the package was not found or the variable name is actually wrong and should be different.

Dirk Thomas gravatar image Dirk Thomas  ( 2014-04-08 07:18:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-07 23:12:29 -0500

BennyRe gravatar image

I'm whether a catkin expert nor have I ever used ImageMagick but after a short search I found this CMakeLists.txt.

They do

find_package(ImageMagick COMPONENTS Magick++ REQUIRED)

This might help you.

edit flag offensive delete link more


CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):

Could NOT find ImageMagick (missing: ImageMagick_Magick++_LIBRARY)
(found version "6.7.7-10")

DPK27 gravatar image DPK27  ( 2014-04-07 23:16:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-04-07 22:47:17 -0500

Seen: 464 times

Last updated: Apr 07 '14