Quote:
./configure --host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu --build=i686-pc-linux-gnu --prefix=/home/siva/#Desktop/Printer/ --with-includes=/usr/include --enable-threads --without-omni --without-x
|
--with-includes=/usr/include will probably mean,
that you are also linking to libs in /usr/lib/ ? ?
If so, you will get the error : 'File in wrong format'.
To link only against libs compiled for arm, please start all
terminal sessions with :
export LD_LIBRARY_PATH=$PATH:/opt/armlibs:/usr/local/armlibs:..etc.
( Please replace everything with actual path.)
The 'export LD_LIBRARY_PATH...' means : only these path's
will be used.
The system PATH:/lib:/usr/lib:/usr/local/lib ... : not used
for this terminal session.
.....
.....
Example ghostscript compiled for arm
http://packages.debian.org/lenny/arm/libgs8/filelist
http://packages.debian.org/lenny/libgs8
And see that it has about 10 dependencies, which again
have about 12 dependencies.
So unless you can use some of these arm libs, you will
have to cross compile a lot of files for ghostscript.
Remark : The mentioned libgs8 is for libc-2.7 or later.
.....
If you want to use some files from Debian packages,
unpack with : ar -x <package.deb>
.....