Page 1 of 1

Trying to Build a Static ImageMagick.....

Posted: 2009-10-19T06:41:44-07:00
by Heiler81
Hi there,

I´m trying to build a Static Image Magick so that i can copy it to any other Solaris System without installing all the librarys. (Solaris 10)

./configure --prefix=/opt/ImageMagick-6.5.6-1/ CFALGS=-m32 --without-perl --without-magick-plus-plus --with-quantum-depth=32 --disable-installed --disable-shared --enable-delegate-build

But after i copied it to any other System the message says the the librarys (jpeg, freetype......) are missing!

trying to convert a jpeg!

ld.so.1: convert: Fatal Error: libexpat.so.1: (........)
ld.so.1: convert: Fatal Error: libjpeg.so.7: (.........)
ld.so.1: convert: Fatal Error: (...) /ImageMagick-6.5.6-1/bin/convert: Symbol jpeg_std_error: (.........)
Killed

Can anyone help?

Re: Trying to Build a Static ImageMagick.....

Posted: 2009-10-19T06:43:33-07:00
by Heiler81
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: sparc-sun-solaris2.10
Build system type: sparc-sun-solaris2.10

Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=no no
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=32 32
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 yes
FFTW --with-fftw=yes no
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 (8.70)
Ghostscript fonts --with-gs-font-dir=default /opt/GhostScript-8.70/bin//gs/
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes yes
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=no no
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=no no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

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

Options used to compile and link:
PREFIX = /optImageMagick-6.5.6-1
EXEC-PREFIX = /opt/ImageMagick-6.5.6-1
VERSION = 6.5.6
CC = gcc -std=gnu99
CFLAGS = -g -O2 -Wall -W -D_REENTRANT -pthreads
MAGICK_CFLAGS = -g -O2 -Wall -W -D_REENTRANT -pthreads
CPPFLAGS = -I/opt/ImageMagick-6.5.6-1/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -Wl,-zlazyload -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/magick/.libs -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/magick -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/wand/.libs -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/wand -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/lib -lfreetype -lz
MAGICK_LDFLAGS = -L/opt/OKSfuncd/ImageMagick-6.5.6-1/lib -Wl,-zlazyload -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/magick/.libs -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/magick -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/wand/.libs -L/space/volumes/support/Volume0/IM/ImageMagick-6.5.6-1/wand -L/usr/openwin/lib -R/usr/openwin/lib -L/usr/local/lib -lfreetype -lz
LIBS = -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lpng -lfontconfig -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lsocket -lnsl -lbz2 -lxml2 -lz -lm -lpthread
CXX = g++
CXXFLAGS = -g -O2 -Wall -W -D_REENTRANT -pthreads

Re: Trying to Build a Static ImageMagick.....

Posted: 2009-10-21T00:22:03-07:00
by Heiler81
Ok i got it with a little cheating!

Copyed the needed files from usr/local/lib to a directory in IM. After that, link in startup that LBS dir and it works. Not a very clean way but it works!