cannot get to link a static imagemagick on Mac OS X

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
eric_vi
Posts: 23
Joined: 2010-03-08T20:16:39-07:00
Authentication code: 8675308

cannot get to link a static imagemagick on Mac OS X

Post by eric_vi »

I am trying to link ImageMagick built as static into my application so i can deploy it easily...

i have rebuilt imageMagick with the

./configure --disable-shared
make
make install

and the different delegates inside /Library/ImageMagick-6.6.2-4/lib

everything seemed to have been well, here is what i get when i do convert -list configure

CONFIGURE ./configure '--disable-shared' '--disable-dependency-tracking' '--prefix=/Library/ImageMagick-6.6.2-4' 'LDFLAGS=-L/Library/ImageMagick-6.6.2-4/lib'



now i add
LIBS += -L/Library/ImageMagick-6.6.2-4/lib \
-lMagick++

for linking my application...

and i am getting tons of linking error such as :

Code: Select all

Undefined symbols:
"_AcquireQuantumInfo", referenced from:
Magick::Image::writePixels(MagickCore::QuantumType, unsigned char*)in libMagick++.a(Image.o)
Magick::Image::readPixels(MagickCore::QuantumType, unsigned char const*)in libMagick++.a(Image.o)
"_DrawPathCurveToQuadraticBezierSmoothRelative", referenced from:
Magick::PathSmoothQuadraticCurvetoRel::operator()(MagickCore::_DrawingWand*) constin libMagick++.a(Drawable.o)
"_RotateImage", referenced from:
Magick::Image::rotate(double)in libMagick++.a(Image.o)


and much more

i have been spending 2 days on that, i am out of ideas what did i miss.

Thank you for your help
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cannot get to link a static imagemagick on Mac OS X

Post by fmw42 »

try searching the archives. I believe this has been discussed before. for example see viewtopic.php?f=1&t=13145&p=44175&hilit ... Mac#p44175

hope this helps.
Post Reply