开发者

Use libpng static lib in ImageMagick/GraphicsMagick

I'd like to compile a executable that contains imagemagick and it's delegate li开发者_运维技巧braries like libpng to ease distribution. I easily compile imagemagick into my app but it always seems to use the dynamic libs.

I installed both dynamic and static delegate libs using macports. Is there a way to tell ImageMagick to use the static ones instead of the dynamic?

I'm currently using the following configure parameters:

./configure --prefix=/opt/local --with-quantum-depth=8 --disable-installed --disable-dependency-tracking --without-x --without-perl --enable-static --disable-shared --with-jpeg --with-tiff CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" --disable-openmp --disable-openmp-slow

Thanks, Rui


I couldn't find a solution to this anywhere. Basically I ended up compiling all delegate projects from the scratch and including the *.dylib files inside the app bundle.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜