Page 1 of 1
How to install ImageMagick on mipsel-linux
Posted: 2008-08-27T03:50:28-07:00
by mohan_ImageMagick
Hello,
We are planning to use ImageMagick for our application. But unfortunately we are not able to use the library for our requirements. We are unable to install ImageMagick on our Environment using source or binaries available in ImageMagick repository.
Environment: mipsel and armel architecture on Linux OS.
It would be of great help if you could provide the information about how to install ImageMagick on our Environment.
Regards,
Mohan.
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-27T06:02:26-07:00
by magick
Your message does not provide enough information for us to assist you. When you attempted to compile from source, how did the build fail?
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-27T23:16:51-07:00
by mohan_ImageMagick
These are the steps we have done to Build ImageMagick on mipsel. Is there any thing to change in these steps?
OS: Ubuntu 6.06 LTS on x86 architecture.
ImageMagick downloaded version: ImageMagick-6.4.1
We need to cross compile ImageMagick-6.4.1 for mipsel. Our system has x86 architecture.
Configured ImageMagick using the below command
./configure --bindir=/root/Desktop/mohan/IM/ImageMagick-6.4.3/bin/ --libdir=/root/Desktop/mohan/IM/ImageMagick-6.4.3/lib/ CC=/root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ --host=mipsel-linux
Configure step completed successfully with the following result.
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type: mipsel-unknown-linux-gnu
Build system type: i686-pc-linux-gnu
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=yes yes
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no
Delegate Configuration:
BZLIB --with-bzlib=yes no
DJVU --with-djvu=no no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes no (failed tests)
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (8.15.2)
result_ghostscript_font_dir='none'
Ghostscript fonts --with-gs-font-dir=default
Ghostscript lib --with-gslib=yes no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes no
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=no no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=yes /usr/bin/perl
PNG --with-png=yes no (failed tests)
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes no
result_windows_font_dir='none'
Windows fonts --with-windows-font-dir=
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes no (failed tests)
ZLIB --with-zlib=yes no
X11 Configuration:
X_CFLAGS = -I/usr/include
X_PRE_LIBS =
X_LIBS = -L/usr/lib
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.4.1
CC = /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++
CFLAGS = -g -O2 -Wall -W -pthread
MAGICK_CFLAGS = -g -O2 -Wall -W -pthread
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/usr/lib
MAGICK_LDFLAGS = -L/root/Desktop/mohan/IM/ImageMagick-6.4.3/lib -L/usr/lib
LIBS = -lMagickCore -lX11 -lm -lpthread
CXX = g++
CXXFLAGS = -g -O2 -Wall -W -pthread
At the time of compiling i.e make, we encountered the following errors.
magick/annotate.c:1669: error: parse error before `__attribute__'
magick/annotate.c: In function `MagickBooleanType RenderFreetype(...)':
magick/annotate.c:1711: error: cannot declare static function inside another
function
magick/annotate.c: In function `size_t MagickMin(unsigned int, unsigned int)':
magick/annotate.c:1718: error: cannot declare static function inside another
function
magick/annotate.c: In function `char* EscapeParenthesis(const char*)':
magick/annotate.c:1749: error: cannot declare static function inside another
function
magick/annotate.c: In function `MagickBooleanType RenderPostscript(Image*,
const DrawInfo*, const PointInfo*, TypeMetric*)':
magick/annotate.c:1994: error: cannot declare static function inside another
function
magick/annotate.c: In function `MagickBooleanType RenderX11(Image*, const
DrawInfo*, const PointInfo*, TypeMetric*)':
magick/annotate.c:1749: warning: `MagickBooleanType RenderPostscript(Image*,
const DrawInfo*, const PointInfo*, TypeMetric*)' defined but not used
magick/annotate.c:108: error: `MagickBooleanType RenderFreetype(Image*, const
DrawInfo*, const char*, const PointInfo*, TypeMetric*)' used but never
defined
magick/annotate.c:1669: warning: `MagickBooleanType RenderFreetype(...)'
defined but not used
make[1]: *** [magick/magick_libMagickCore_la-annotate.lo] Error 1
make[1]: Leaving directory `/root/Desktop/ImageMagick-6.4.1'
make: *** [all] Error 2
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-28T06:15:10-07:00
by magick
Unfortunately the error line numbers are not matching our source distribution making it difficult to determine what is causing the compile errors. Download
ftp://ftp.imagemagick.org/pub/ImageMagi ... ick.tar.gz and configure and build again and post the errors once more. Once the lines sync with our source distribution we should be able to determine the source of the errors.
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-28T09:43:44-07:00
by subhasish
Paste the complete configuration messages including the initial compiler messages. It could well be a compiler issue.
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-29T02:05:45-07:00
by mohan_ImageMagick
Hello,
I have downloaded ImageMagick from the given ftp site and had run configure and make. Here is the result of make
root@xyz-desktop:~/Desktop/mohan/ImageMagick/ImageMagick-6.4.3# make
make all-am
make[1]: Entering directory `/root/Desktop/mohan/ImageMagick/ImageMagick-6.4.3'
/bin/sh ./libtool --silent --tag=CC --mode=compile /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ -DHAVE_CONFIG_H -I. -I./config -I/usr/include/freetype2 -I/usr/include -g -O2 -Wall -W -pthread -MT coders/coders_art_la-art.lo -MD -MP -MF coders/.deps/coders_art_la-art.Tpo -c -o coders/coders_art_la-art.lo `test -f 'coders/art.c' || echo './'`coders/art.c
mv -f coders/.deps/coders_art_la-art.Tpo coders/.deps/coders_art_la-art.Plo
/bin/sh ./libtool --silent --tag=CC --mode=compile /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -I/usr/include -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-animate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-animate.Tpo -c -o magick/magick_libMagickCore_la-animate.lo `test -f 'magick/animate.c' || echo './'`magick/animate.c
mv -f magick/.deps/magick_libMagickCore_la-animate.Tpo magick/.deps/magick_libMagickCore_la-animate.Plo
/bin/sh ./libtool --silent --tag=CC --mode=compile /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -I/usr/include -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-annotate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-annotate.Tpo -c -o magick/magick_libMagickCore_la-annotate.lo `test -f 'magick/annotate.c' || echo './'`magick/annotate.c
In file included from magick/annotate.c:55:
magick/draw-private.h: In function `PixelPacket GetFillColor(const DrawInfo*,
long int, long int)':
magick/draw-private.h:41: warning: ignoring #pragma omp critical
magick/draw-private.h: In function `PixelPacket GetStrokeColor(const DrawInfo*,
long int, long int)':
magick/draw-private.h:59: warning: ignoring #pragma omp critical
magick/annotate.c: At global scope:
magick/annotate.c:1677: error: parse error before `__attribute__'
magick/annotate.c: In function `MagickBooleanType RenderFreetype(...)':
magick/annotate.c:1719: error: cannot declare static function inside another
function
magick/annotate.c: In function `size_t MagickMin(unsigned int, unsigned int)':
magick/annotate.c:1726: error: cannot declare static function inside another
function
magick/annotate.c: In function `char* EscapeParenthesis(const char*)':
magick/annotate.c:1757: error: cannot declare static function inside another
function
magick/annotate.c: In function `MagickBooleanType RenderPostscript(Image*,
const DrawInfo*, const PointInfo*, TypeMetric*)':
magick/annotate.c:2002: error: cannot declare static function inside another
function
magick/annotate.c: In function `MagickBooleanType RenderX11(Image*, const
DrawInfo*, const PointInfo*, TypeMetric*)':
magick/annotate.c:1757: warning: `MagickBooleanType RenderPostscript(Image*,
const DrawInfo*, const PointInfo*, TypeMetric*)' defined but not used
magick/annotate.c:108: error: `MagickBooleanType RenderFreetype(Image*, const
DrawInfo*, const char*, const PointInfo*, TypeMetric*)' used but never
defined
magick/annotate.c:1677: warning: `MagickBooleanType RenderFreetype(...)'
defined but not used
make[1]: *** [magick/magick_libMagickCore_la-annotate.lo] Error 1
make[1]: Leaving directory `/root/Desktop/mohan/ImageMagick/ImageMagick-6.4.3'
make: *** [all] Error 2
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-29T07:19:00-07:00
by magick
__attribute__ does not seem to be supported by your compiler. Are you running an old version of gcc? __attribute__ is only used if __GNUC__ is defined by your compiler. Try replacing in magick/studio.h,
- # define magick_unused(x) magick_unused_ ## x __attribute__((unused))
with
- # define magick_unused(x) x
and compile again. You may need to do the same in wand/studio.h. See if that helps.
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-30T02:39:54-07:00
by mohan_ImageMagick
Yes. On replacing with
# define magick_unused(x) x in magick/studio.h
__attribute__ error has been cleared but the following error stopped the build.
/bin/sh ./libtool --silent --tag=CC --mode=compile /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -I/usr/include -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-compare.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-compare.Tpo -c -o magick/magick_libMagickCore_la-compare.lo `test -f 'magick/compare.c' || echo './'`magick/compare.c
magick/compare.c: In function `Image* CompareImageChannels(Image*, const
Image*, ChannelType, MetricType, double*, ExceptionInfo*)':
magick/compare.c:196: warning: ignoring #pragma omp parallel
magick/compare.c: In function `MagickBooleanType GetAbsoluteError(const Image*,
const Image*, ChannelType, double*, ExceptionInfo*)':
magick/compare.c:358: warning: ignoring #pragma omp parallel
mv -f magick/.deps/magick_libMagickCore_la-compare.Tpo magick/.deps/magick_libMagickCore_la-compare.Plo
/bin/sh ./libtool --silent --tag=CC --mode=compile /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -I/usr/include -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-composite.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-composite.Tpo -c -o magick/magick_libMagickCore_la-composite.lo `test -f 'magick/composite.c' || echo './'`magick/composite.c
/usr/include/bits/mathinline.h: In function `void HSBComposite(double, double,
double, MagickRealType*, MagickRealType*, MagickRealType*)':
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
magick/composite.c:976: error: unrecognizable insn:
(insn:HI 136 460 137 8 0x40823900 (set (reg/v:DF 36 $f4 [208])
(asm_operands/v:DF ("frndint") ("=t") 0 [
(reg/v:DF 36 $f4 [208])
]
[
(asm_input:DF ("0"))
] ("/usr/include/bits/mathinline.h") 530)) -1 (insn_list 135 (nil))
(nil))
magick/composite.c:976: confused by earlier errors, bailing out
make[1]: *** [magick/magick_libMagickCore_la-composite.lo] Error 1
make[1]: Leaving directory `/root/Desktop/mohan/ImageMagick/ImageMagick-6.4.3'
make: *** [all] Error 2
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-08-30T07:38:23-07:00
by magick
The problem you reported is a bug in your compiler. Try upgrading your compiler or use a cross-compiler on another system with a more modern compiler. In the mean-time you can try commenting out HSBComposite() in magick/composite.c (more than likely you will never need this method) and see if the build can complete.
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-09-01T00:05:22-07:00
by mohan_ImageMagick
I have Commented out HSBComposite() in magick/composite.c, but the build stopped with same type of errors in almost every file.
Is there any other way to get a build of Image Magick on mipsel Linux
This is the Error in distort.c:
/bin/sh ./libtool --silent --tag=CC --mode=compile /root/Desktop/Qt-install/opt/crosstool/gcc-3.3.5-glibc-2.3.2/mipsel-linux/bin/mipsel-linux-c++ -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -I/usr/include -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-distort.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-distort.Tpo -c -o magick/magick_libMagickCore_la-distort.lo `test -f 'magick/distort.c' || echo './'`magick/distort.c
magick/distort.c: In function `long unsigned int poly_number_terms(double)':
magick/distort.c:132: warning: unused parameter `double order'
magick/distort.c: In function `double* GenerateCoefficients(const Image*,
DistortImageMethod*, long unsigned int, const double*, long unsigned int,
ExceptionInfo*)':
magick/distort.c:314: warning: `long unsigned int number_coefficients' might be
used uninitialized in this function
magick/distort.c: In function `Image* DistortImage(const Image*,
DistortImageMethod, long unsigned int, const double*, MagickBooleanType,
ExceptionInfo*)':
magick/distort.c:1734: warning: converting to `long unsigned int' from `double'
magick/distort.c:1735: warning: converting to `long unsigned int' from `double'
magick/distort.c:1736: warning: converting to `long int' from `double'
magick/distort.c:1737: warning: converting to `long int' from `double'
/usr/include/bits/mathinline.h:541: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:541: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:541: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:541: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:530: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:541: error: impossible register constraint in
`asm'
/usr/include/bits/mathinline.h:541: error: impossible register constraint in
`asm'
magick/distort.c:2118: error: unrecognizable insn:
(insn:HI 2037 2036 2038 155 0x40b33ac0 (set (reg/v:DF 36 $f4 [669])
(asm_operands/v:DF ("frndint") ("=t") 0 [
(reg/v:DF 36 $f4 [669])
]
[
(asm_input:DF ("0"))
] ("/usr/include/bits/mathinline.h") 541)) -1 (insn_list 2036 (nil))
(nil))
magick/distort.c:2118: confused by earlier errors, bailing out
make[1]: *** [magick/magick_libMagickCore_la-distort.lo] Error 1
make[1]: Leaving directory `/root/Desktop/mohan/ImageMagick/ImageMagick-6.4.3'
make: *** [all] Error 2
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-09-01T06:43:29-07:00
by magick
There is a bug in your compiler. Post a bug report to your compiler vendor.
Re: How to install ImageMagick on mipsel-linux
Posted: 2008-09-01T23:38:56-07:00
by mohan_ImageMagick
Ok. I have tried a binary available on Debain Packages
imagemagick_6.0.6.2-2.9_mipsel.deb
And also Downloaded various dependent libraries it reported. On completion of installation tried running various Image Magick commands (i.e. animate,convert,identify. These are the binaries that were available in .deb package) but it reported as Bus Error and terminated.
Is there any package that consists of complete Binary files and dependent libraries for Image Magick on mipsel-linux or is there any other way to get ImageMagick on mipsel.