ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

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
vishvesh

ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Hi all,
I am facing few issues on running imagemagick

1. I used libMagick++.2.dylib, libMagickCore.2.dylib and libMagickWand.2.dylib in my application when i tried to apply bevel, stroke or Extruded. My application crashed.It printed the following message on xcode.
terminate called after throwing an instance of 'Magick::WarningOption'
what( ImageMagick: Unrecognized image format (RGBA)
2. I tried using ImageMagick from x11.app, It launched but it didn't open : jpeg,tiff and raw images. It threw up a dialog saying
no decode delegate for this image format ' /Users/vishvesh/Desktop/01.jpg' @ constitute c/ReadImages/503:
then it opened an new window with title "unknown format : file path" with a dismiss button.

3. It loaded png images without alpha (24 bits) but when I selected view option and int it double option there was flickering issues in the application.

4. If I load png images with alpha (32 bits) it starts flickers without selecting any options

My machine configuration is :
OS : 10.5.7
Model Name: Mac mini
Model Identifier: Macmini3,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 3 MB
Memory: 3 GB
Bus Speed: 1.07 GHz
Boot ROM Version: MM31.0081.B00
SMC Version (system): 1.35f0
Serial Number (system): YM9122XS19X
I used the latest source code. Code version ImageMagick-6.5.4-10.tar.bz2, from the following link

http://sourceforge.net/projects/imagemagick/files/


If anybody needs the images am ready to mail them. The images are simple images. Please help me fix these issue. All suggestions are welcome.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by fmw42 »

did you install all the delegate libraries for the various image formats?

see

http://www.imagemagick.org/script/advan ... lation.php
http://www.imagemagick.org/download/delegates/
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Thanks for the post I am attaching My configuration details, it is little different from what is given in the page may be because am on Mac and not linux and also because am using 6.5.4. The ones that doesn't match with http://www.imagemagick.org/script/advan ... lation.php have been made bold. There were few warnings which have been posted too
Host system type: i386-apple-darwin9.7.0
Build system type: i386-apple-darwin9.7.0

Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=yes yes
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no (failed tests) // not there in the list
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes no (failed tests)
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no (failed tests)
// I had downloaded the latest version of lcms and installed it.
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no

PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no (failed tests)

Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x=yes yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

X11 Configuration:
X_CFLAGS = -I/usr/X11R6/include
X_PRE_LIBS = -lSM -lICE
X_LIBS = -L/usr/X11R6/lib -R/usr/X11R6/lib
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /sw
EXEC-PREFIX = /sw
VERSION = 6.5.4
CC = gcc -std=gnu99
CFLAGS = -O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch i386 -arch ppc -I/sw/include/ -Wall -W -D_THREAD_SAFE
MAGICK_CFLAGS = -O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch i386 -arch ppc -I/sw/include/ -Wall -W -D_THREAD_SAFE
CPPFLAGS = -I/sw/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/opt/local/lib -L/usr/X11R6/lib -R/usr/X11R6/lib -L/usr/X11/lib -lfreetype -lz -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
MAGICK_LDFLAGS = -L/sw/lib -L/opt/local/lib -L/usr/X11R6/lib -R/usr/X11R6/lib -L/usr/X11/lib -lfreetype -lz -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
LIBS = -lMagickCore -lfreetype -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthread
CXX = g++
CXXFLAGS = -g -O2 -Wall -W -D_THREAD_SAFE
Warnings :
configure: WARNING: fftw3.h: present but cannot be compiled
configure: WARNING: fftw3.h: check for missing prerequisite headers?
configure: WARNING: fftw3.h: see the Autoconf documentation
configure: WARNING: fftw3.h: section "Present But Cannot Be Compiled"
configure: WARNING: fftw3.h: proceeding with the preprocessor's result
configure: WARNING: fftw3.h: in the future, the compiler will take precedence
configure: WARNING: ## ----------------------------------------- ##
configure: WARNING: ## Report this to http://www.imagemagick.org ##
configure: WARNING: ## ----------------------------------------- ##
configure: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jconfig.h: proceeding with the compiler's result
configure: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jerror.h: proceeding with the compiler's result
configure: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jmorecfg.h: proceeding with the compiler's result
configure: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jpeglib.h: proceeding with the compiler's result
configure: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: lcms.h: proceeding with the compiler's result
configure: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: tiff.h: proceeding with the compiler's result
configure: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: tiffio.h: proceeding with the compiler's result
I will download all the dylibs whose options is no and build them again. Few of them are already downloaded and installed
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by fmw42 »

type

convert -list configure

see what is listed under DELEGATES as per my (Mac system)

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib


If you don't have any of these you want, then you need to install the delegate library for them and then recompile IM
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Hi,
type

convert -list configure

see what is listed under DELEGATES as per my (Mac system)

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib
I need to thank you for all the advice you have been giving me. Otherwise I would have given up by now. :)

I tried convert -list configure, i got this.
DELEGATES bzlib fontconfig freetype png x11 xml zlib
that means I need to install " fftw gs jpeg jng jp2 lcms lqr openexr tiff".

Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by fmw42 »

only those that you need or want (esp jpg and tif). also I am on a Mac OSX Tiger and have no trouble with the install. I am running IM 6.5.5.0 Q16 (at the moment HDRI, but usually not).

This may or may not help:

viewtopic.php?f=1&t=10442
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Hi fred,

I need to thank you again. You have been very helpful.
I have got couple of queries, I have installed fink on my system as requried by imagemagick, should i install all the libraries in the /sw/lib or on the /usr/local/lib folder.
secondly is it possible to make xcode projects for imagemagick source code. Your help is greatly appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by fmw42 »

vishvesh wrote:Hi fred,

I need to thank you again. You have been very helpful.
I have got couple of queries, I have installed fink on my system as requried by imagemagick, should i install all the libraries in the /sw/lib or on the /usr/local/lib folder.
secondly is it possible to make xcode projects for imagemagick source code. Your help is greatly appreciated.
You don't need Fink or MacPorts to install and if you do, they go where Fink or MacPorts sets up a special directory. I never used either. I just install as per any Unix install using guides from http://www.imagemagick.org/script/advan ... lation.php

I think the use of Fink or MacPorts adds another layer of complexity and then you are limited to whatever versions of Im or delegate libraries that Fink or MacPorts supports.

./configure (with some added configuration mods)
make
sudo make install

For example for Q16, my ./configure is:

./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--enable-libtool-verbose --disable-dependency-tracking \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr

As suggested by Magick some time ago.

The files go then into /usr/local/bin

You have to have Xcode tools installed to do the install this way.

I have never made any Xcode tools projects, so an a novice at that.

Fred
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

got some issues again :(

i tried : convert -list configure


it still returns "bzlib fontconfig freetype png x11 xml zlib", I have installed jpeg, lcms, openexr and tiff in /usr/lcoal/lib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by fmw42 »

If you installed IM with Fink, then you may likely need to install all the delegates with Fink so that IM know where they are. However, I am not sure of this.

Apparently your installs of the delegates was not done with Fink or did not work correctly. Look at the config.log file in each delegate folder to see if any errors. But I suspect it has to do with your installing IM with FINK and the other delegates without FINK. Try using FINK to install whatever it has for versions of jpeg and tif libraries and any other you may want.

But I am not sure FINK will have all the delegates you may want. You don't have to duplicate my delegates. Use only those you want to use.

Again I am no expert with FINK or MacPorts, so I am just guessing here.
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Fink doesn't have all the delegates needed, I will install IM without fink, I will uninstall fink and try again.
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Hi fred,
Thanks you very much :D . Finally I have got it working thanks to your help. I got it working with and with out fink.

regards,
Vishvesh
vishvesh

Re: ImageMagick-6.5.4-10 issues on MAC OS 10.5.7

Post by vishvesh »

Well Finally I have created xcode projects for ImageMagick. :D
Post Reply