Page 1 of 1

cannot get to link a static imagemagick on Mac OS X

Posted: 2010-06-12T11:28:59-07:00
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

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

Posted: 2010-06-12T14:07:08-07:00
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.