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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

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

Post 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?
Mikko Koppanen
My blog: http://valokuva.org
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

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

Post 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.
Mikko Koppanen
My blog: http://valokuva.org
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Ok, done.
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

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

Post by mkoppanen »

Thanks!
Mikko Koppanen
My blog: http://valokuva.org
Post Reply