Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
taob
Posts: 13
Joined: 2007-01-09T22:26:05-07:00
Location: Toronto, ON

Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Post by taob »

Since the Cygwin package of IM is stuck at 6.4.0 from almost 18 months ago, I decided to install the ImageMagick-i686-pc-cygwin.tar.gz binary package. It went into /usr/local/ImageMagick-6.5.6/, and $MAGICK_HOME is set appropriately. Yet the "convert logo: logo.gif" test case does not work. I ran with a "-debug all", watched the convert.exe process with ProcMon, made symlinks all over the place to help IM find dependent files, etc.

So far, still no luck. Before I go any further with this myself and post debug messages here, has anyone run into this problem and have a fix? It seems like this should be a very simple procedure, but I'm obviously missing something.

System is 64-bit Windows 7 Ultimate RTM, Cygwin 1.7 beta. Thanks!
Brian
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Post by magick »

We'll take a look at the ImageMagick Cygwin binary distribution, however, in the mean-time try building it from source. Type
taob
Posts: 13
Joined: 2007-01-09T22:26:05-07:00
Location: Toronto, ON

Re: Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Post by taob »

I noticed the Cygwin distro of IM has all the .a files renamed as .dll, which I tried with 6.5.6, but that didn't help. I'll try building it from source next... hopefully getting gcc up and running on Cygwin won't be too difficult. ;)
Brian
taob
Posts: 13
Joined: 2007-01-09T22:26:05-07:00
Location: Toronto, ON

Re: Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Post by taob »

Took a bit of fiddling to get PerlMagick to build (it did not know to include -lz or -lgomp), but 6.5.6 is installed now. I'm still getting the same error though:

Code: Select all

$ convert -version
Version: ImageMagick 6.5.6-8 2009-10-04 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

$ convert -debug exception logo: /tmp/logo.gif
2009-10-04T23:14:44-04:00 0:00.061 0.046u 6.5.6 Exception convert[2812]: module.c/OpenModule/1168/Exception
  unable to load module `/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders/magick.la': can't open the module
2009-10-04T23:14:44-04:00 0:00.151 0.140u 6.5.6 Exception convert[2812]: module.c/OpenModule/1168/Exception
  unable to load module `/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders/magick.la': can't open the module
2009-10-04T23:14:44-04:00 0:00.213 0.203u 6.5.6 Exception convert[2812]: module.c/OpenModule/1168/Exception
  unable to load module `/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders/magick.la': can't open the module
2009-10-04T23:14:44-04:00 0:00.272 0.265u 6.5.6 Exception convert[2812]: module.c/OpenModule/1168/Exception
  unable to load module `/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders/magick.la': can't open the module
2009-10-04T23:14:44-04:00 0:00.332 0.327u 6.5.6 Exception convert[2812]: module.c/OpenModule/1168/Exception
  unable to load module `/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders/magick.la': can't open the module
2009-10-04T23:14:44-04:00 0:00.391 0.390u 6.5.6 Exception convert[2812]: module.c/OpenModule/1168/Exception
  unable to load module `/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders/magick.la': can't open the module
2009-10-04T23:14:44-04:00 0:00.402 0.390u 6.5.6 Exception convert[2812]: blob.c/OpenBlob/2480/Exception
  unable to open image `logo:': No such file or directory
2009-10-04T23:14:44-04:00 0:00.408 0.405u 6.5.6 Exception convert[2812]: convert.c/ConvertImageCommand/2822/Exception
  missing an image filename `/tmp/logo.gif'
convert: unable to open image `logo:': No such file or directory @ blob.c/OpenBlob/2480.
convert: missing an image filename `/tmp/logo.gif' @ convert.c/ConvertImageCommand/2822.
The magick.la file exists and is readable, as does magick.a. Contents of magick.la:

Code: Select all

# magick.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='magick.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' /usr/local/lib/libMagickCore.la /usr/lib/libtiff.la /usr/lib/libjpeg.la -lz -lgdi32 -lgomp -lpthread'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for magick.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/local/lib/ImageMagick-6.5.6/modules-Q16/coders'
What else can I look at?
Brian
taob
Posts: 13
Joined: 2007-01-09T22:26:05-07:00
Location: Toronto, ON

Re: Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Post by taob »

Oh great, if I google for "problems building imagemagick for cygwin", this thread turns up as the first hit for me. :lol:
Brian
taob
Posts: 13
Joined: 2007-01-09T22:26:05-07:00
Location: Toronto, ON

Re: Problems with IM 6.5.6 on Cygwin 1.7 + Windows 7 RTM

Post by taob »

Yeah, I think there is something about shared libs/DLL's with Cygwin and Windows that I'm not quite grasping yet. If I do a "./configure --disable-shared --without-perl" and install the resulting build, everything seems to work fine. Of course, the binaries are each about 8 MB, but whatever...
Brian
Post Reply