Hello,

I am trying to cross-compile Image Magick for an ARM platform. I just want to 
use the convert command to convert RGB files to JPEG file.

I have configured the sources with the typical ./configure command in order to 
build the right Makefiles.

6 years ago, a contributor to the mailing list advised to configure like this:
./configure CC=arm-linux-gcc CFLAGS="" CXX=arm-linux-g++
CXXFLAGS="" LDFLAGS="-L/usr/local/arm/2.95.3/arm-linux/lib"
--without-x --host=arm --without-gs-font-dir --without-perl --without-zlib
I have changed the CC and LDFALGS for adaptation to my Freescale cross chain. 
There happens that the project seems to compile properly but I got HUGE binary 
files. For example, the convert command is about 4.5 MB whereas it is very very 
smaller with shared libs on Ubuntu. I guess that shared libraries have not been 
used during the build! (the file command told me it is a bin with static libs) 
I am unable to instruct the configure process to use shared libraries. Is there 
a way of doing it? Do I have to build those shared libraries somewhere and from 
which sources?

Moreover, I noticed that the command is not able to convert a rgb file to a 
jpeg file on the ARM whereas this works fine on the Ubuntu. Every rgb file is 
converted into a... rgb file this why I suspect some missing libraries not to 
be called without any warning from the app.

My cross system bins are located here:

fr...@franz-macbookpro:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin$
 ls -all
total 7896
drwxr-xr-x  2 root root   4096 2010-03-31 23:17 .
drwxr-xr-x 11 root root   4096 2010-03-31 23:17 ..
-rwxr-xr-x  1 root root 465401 2007-05-09 20:27 arm-none-linux-gnueabi-addr2line
-rwxr-xr-x  2 root root 436451 2007-05-09 20:27 arm-none-linux-gnueabi-ar
-rwxr-xr-x  2 root root 746982 2007-05-09 20:27 arm-none-linux-gnueabi-as
-rwxr-xr-x  2 root root 136447 2007-05-09 20:27 arm-none-linux-gnueabi-c++
-rwxr-xr-x  1 root root 464829 2007-05-09 20:27 arm-none-linux-gnueabi-c++filt
-rwxr-xr-x  1 root root 132718 2007-05-09 20:27 arm-none-linux-gnueabi-cpp
-rwxr-xr-x  2 root root 136447 2007-05-09 20:27 arm-none-linux-gnueabi-g++
-rwxr-xr-x  2 root root 132335 2007-05-09 20:27 arm-none-linux-gnueabi-gcc
-rwxr-xr-x  2 root root 132335 2007-05-09 20:27 arm-none-linux-gnueabi-gcc-4.1.2
-rwxr-xr-x  1 root root  16302 2007-05-09 20:25 arm-none-linux-gnueabi-gccbug
-rwxr-xr-x  1 root root  27379 2007-05-09 20:27 arm-none-linux-gnueabi-gcov
-rwxr-xr-x  1 root root 526172 2007-05-09 20:27 arm-none-linux-gnueabi-gprof
-rwxr-xr-x  2 root root 733879 2007-05-09 20:27 arm-none-linux-gnueabi-ld
-rwxr-xr-x  2 root root 476345 2007-05-09 20:27 arm-none-linux-gnueabi-nm
-rwxr-xr-x  1 root root 621110 2007-05-09 20:27 arm-none-linux-gnueabi-objcopy
-rwxr-xr-x  2 root root 717557 2007-05-09 20:27 arm-none-linux-gnueabi-objdump
-rwxr-xr-x  2 root root 436451 2007-05-09 20:27 arm-none-linux-gnueabi-ranlib
-rwxr-xr-x  1 root root 238367 2007-05-09 20:27 arm-none-linux-gnueabi-readelf
-rwxr-xr-x  1 root root 416980 2007-05-09 20:27 arm-none-linux-gnueabi-size
-rwxr-xr-x  1 root root 416428 2007-05-09 20:27 arm-none-linux-gnueabi-strings
-rwxr-xr-x  2 root root 621110 2007-05-09 20:27 arm-none-linux-gnueabi-strip

I wonder whether the CXXFLAGS must be instructed with my g++ compiler bin or if 
gcc is smart enough to use g++ without this flag (the initial contributor to 
this list did not instruct this flag).

Thanks for your help,

Sure that it is the very first time I have been trying to cross-compile a 
project for my ARM evalboard without preparing the Makefile myself. Be 
indulgent! There must always be a first time.

I am ready to give you more information if required to help cross-compile this 
project.

Franz
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to