Page 1 of 1

which library gives access to GetImagePixels function

Posted: 2010-11-18T15:07:02-07:00
by ctyszkiewicz
Hello

I want to wrapp the C++ function which calls the GetImagePixels function declared in magick/image.h . I think that I need the name of shared library through which this function is accessed. If you know the name of this library please let me know.

Best regards

Cuma

Re: which library gives access to GetImagePixels function

Posted: 2010-11-18T22:10:46-07:00
by anthony
-lMagick I believe.

See the IM web site.

Re: which library gives access to GetImagePixels function

Posted: 2010-11-19T12:37:44-07:00
by ctyszkiewicz
I can't find the file lMagick.so

I searched through the all .so files I could find:

The files were gathered in following directories:

/usr/lib/ImageMagick-6.3.7/modules-Q16/filters/
/usr/lib/ImageMagick-6.3.7/modules-Q16/coders/

Asking for the GetImagePixels gives no positive answer:
nm - Ca *.so for each file gives the same response
for example:
nm: /usr/lib/ImageMagick-6.3.7/modules-Q16/filters/analyze.so: no symbols

The compiled demo program which uses the GetImagePixels function works well therefore it must be within some shared library, but where.

Best regardas

Cuma

Re: which library gives access to GetImagePixels function

Posted: 2010-11-21T19:45:42-07:00
by anthony
That was -lMagick Which is a compile time option to use the library libMagick.so

However on my system it is libMagickCore.so.4

I think we may be being a little to low level and specific. I suggest you have a look at the 'demos' folder and the commands in the Makefile of the IM source.