problem with crosscompile IM on ARM processor

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
elvila

problem with crosscompile IM on ARM processor

Post by elvila »

Hi,

I want to cross-compile the IM on Arm processor. After ./configure & make & make install,i download the bin file "composite " and "identify" to my device.

After i execute "identify -list format",i got this result:
Format Module Mode Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images

and after i try to identify some jpg file,it gave:
identify: no decode delegate for this image format `src.jpg' @ constitute.c/ReadImage/526.


I search the web,it seems i didn't install the jpeg library correctly.

then i execute : identify -list configure ,and see:
DELEGATES freetype jpeg png zlib
LIBS -lMagickCore -lfreetype -ljpeg -lz -lm


I download libjpeg-6b.tar.bz2 and libpng-1.2.16.tar.bz2 from your support list and cross-compile them to get so files. then remake the IM,but nothing changed. I really don't know what's wrong with my steps.

Is there any tips?

PS.i use --enable-shared options and the jpeg configuration also use this option.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: problem with crosscompile IM on ARM processor

Post by magick »

Look at the last lines of output from the configure script. If the JPEG delegate library is validated you'll see
  • JPEG v1 --with-jpeg=yes yes
If it says 'no' inspect config.log and look for the reason the library failed to validate. Fix the problem and rerun the configure script until the library validates. Finally compile and install. To verify JPEG is supported at run time type
  • identify -list format
We get
  • JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
If you do get a mode of rw- ImageMagick cannot find its configuration files or its a permission problem. Type
  • convert -debug configure image.jpg null:
and inspect the debugging output. It tells you where ImageMagick is looking for its configuration files and coder modules (e.g. jpeg.so).
elvila

Re: problem with crosscompile IM on ARM processor

Post by elvila »

Thanks for your reply.

I read the config.log and find:
Delegate Configuration:
BZLIB --with-bzlib=yes no
Autotrace --with-autotrace=no no
DJVU --with-djvu=no no
DPS --with-dps=yes no
FlashPIX --with-fpx=no no
FontConfig --with-fontconfig=no no
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (8.60)
Ghostscript fonts --with-gs-font-dir=default /usr/share/fonts/default/Type1/
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=no no
LQR --with-lqr=no no
Magick++ --with-magick-plus-plus=no no
OpenEXR --with-openexr=no no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=no no
TIFF --with-tiff=no no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x=no no
XML --with-xml=no no
ZLIB --with-zlib=yes yes

does it mean i have jpeg v1 lib?
elvila

Re: problem with crosscompile IM on ARM processor

Post by elvila »

The problem is solved!

It's my fault,i forgot download the config and modules-Q16 files to my board.

the jpeg can work now ,but still cannot recognize png files.

I will keep working on it.

Thanks for your help!!
Post Reply