Generally about cross compiling :
Files from /usr/include/ should probably not be used :
( using headers may be harmless with the right version.)
To cross compile e.g. 'freetype-2.3.9' , you will have to
do './configure -- without-zlib --<other-options> '
Freetype has an internal zlib, which then will be used.
Quote:
In file included from /usr/include/freetype2/freetype/freetype.h:33,
from /usr/include/freetype2/freetype/ftoutln.h:25,.....
../usr/include/freetype2/freetype/config/ftconfig.h:2:32: multiarch-dispatch.h:..
|
In the above quotation from your compilation you are not using
the 'freetype' in /usr/local/gcc-3.4.6-glibc-2.3.6/arm-linux/ .?
So please do this as the first command, when cross compiling :
'export PATH=$PATH:/usr/local/gcc-3.4.6-glibc-2.3.6/arm-linux/lib
( if that is the correct path to e.g. libfreetype.so ).
This new path is temporary, closing the terminal will reset the
path to ' /lib:/usr/lib:/usr/local/lib ' ( + other libs in the
system path.)
.....
.....
'./configure : please also do './configure --help'
to see e.g. --disable-abiword-output --disable-utils etc. etc.)
.....
Example configure to avoid the 'multiarch-dispatch.h' header :
( multiarch-utils is : ".. utilities to dispatch binaries and
include files during RPM package build." )
./configure --disable-splash-output --disable-option-checking --disable-multiarch-dispatch --disable-gdk --disable-poppler-qt --disable-poppler-qt4 --disable-gtk-test --disable-cairo-output --disable-poppler-glib --disable-multiarch
( It is always a good idea to run a test compile on the host,
so see, what happens. The above works on pslos2009 with the
'multiarch-dispatch.h' header moved away. )
.....
Other dependencies : libpoppler will link against libxml2, libfontconfig, libjpeg,
libopenjpeg . ( libxml2 + libfontconfig is a must. )
The used libs : to be cross compiled too.
.....
Example libpoppler for arm
http://packages.debian.org/squeeze/libpoppler4
http://packages.debian.org/lenny/libpoppler3
http://packages.debian.org/lenny/libpoppler1
http://packages.debian.org/etch/libpoppler0c2
.....