Page 1 of 1

ImageMagick 6.4.9-4 (and trunk) not building shared libs?

Posted: 2009-02-16T05:00:46-07:00
by mkoppanen
configure line:

Code: Select all

./configure  --prefix=/tmp/test
Now checking the lib directory:

Code: Select all

ls -l /tmp/test/lib
total 17156
drwxr-xr-x 4 root root     4096 2009-02-16 13:44 ImageMagick-6.4.9
-rw-r--r-- 1 root root  3052322 2009-02-16 13:44 libMagick++.a
-rw-r--r-- 1 root root 11936164 2009-02-16 13:44 libMagickCore.a
-rwxr-xr-x 1 root root     1265 2009-02-16 13:44 libMagickCore.la
-rwxr-xr-x 1 root root     1320 2009-02-16 13:44 libMagick++.la
-rw-r--r-- 1 root root  2523458 2009-02-16 13:44 libMagickWand.a
-rwxr-xr-x 1 root root     1296 2009-02-16 13:44 libMagickWand.la
drwxr-xr-x 2 root root     4096 2009-02-16 13:45 pkgconfig
Has something changed or am I missing something?

Re: ImageMagick 6.4.9-4 (and trunk) not building shared libs?

Posted: 2009-02-16T06:26:49-07:00
by magick
The default shared library build was causing problems for Cygwin, MinGW, etc. so it defaults to a static build now. To fix, use this command:
  • ./configure --prefix=/tmp/test --enable-shared

Re: ImageMagick 6.4.9-4 (and trunk) not building shared libs?

Posted: 2009-02-16T07:10:00-07:00
by mkoppanen
Hi,

thanks for the quick reply. All thou I think it will cause confusion for the majority if the shared libs are not built by default (happened to me at least :)). Would it make sense to revert back to having shared libs built by default and using --disable-shared on platforms where it fails?

This way it would "work out of the box" for the majority and the minority that needs to build without shared libs can use the configure switch.

Re: ImageMagick 6.4.9-4 (and trunk) not building shared libs?

Posted: 2009-02-16T08:57:27-07:00
by magick
Ok, done.

Re: ImageMagick 6.4.9-4 (and trunk) not building shared libs?

Posted: 2009-02-16T09:43:00-07:00
by mkoppanen
Thanks!