I'll try to be more accurate...and sorry for this LONG post...
I'll try to explain as clear as possible the steps i perform to cross compile:
things to take notice:
1) my username is "michele"
2) my desktop (due to my ubuntu language) is called "Scrivania" (instead of Desktop)
3) i'm trying to cross compile for ARM9
Ok... i've prepared on my desktop a folder called "newamule" and inside i've these folders (of course...the sources of the packages!!!)
amule
cryptopp
libpng-1.5.2
tmp
wxWidgets-2.8.12
zlib-1.2.5
So...opened a shell and:
1) within zlib folder:
----------------------------------
CC=arm-linux-gnueabi-gcc ./configure
make
make install prefix=/home/michele/Scrivania/newamule/tmp
2) within libpng:
---------------------------
./configure --host=arm-linux-gnueabi --prefix=/home/michele/Scrivania/newamule/tmp LDFLAGS=-L/home/michele/Scrivania/newamule/tmp/lib CPPFLAGS=-I/home/michele/Scrivania/newamule/tmp/include
make
make install
3) within wxwidgets:
-----------------------------------
export TARGET=arm-linux-gnueabi
export BUILDDIR=/home/michele/Scrivania/newamule/
./configure --host=$TARGET --prefix=$BUILDDIR/tmp --with-libiconv-prefix=$BUILDDIR/tmp --enable-unicode --disable-shared --enable-unicode --without-subdirs --disable-gui --disable-expat --enable-largefile
make
make install
4) within amule:
---------------------------
./configure --host=arm-linux-gnueabi --with-wx-config=/home/michele/Scrivania/newamule/tmp/bin/wx-config --with-crypto-prefix=/home/michele/Scrivania/newamule/cryptopp --prefix=/home/michele/Scrivania/newamule/tmp --enable-amulecmd --enable-amule-daemon --enable-webserver --disable-alcc --disable-monolithic --enable-optimize --enable-mmap --disable-ed2k --enable-static --disable-amule-gui --disable-upnp --disable-nls --disable-debug --disable-alc --disable-cas --disable-wxcas --with-libpng-prefix=/home/michele/Scrivania/newamule/tmp/ --with-zlib=/home/michele/Scrivania/newamule/tmp
make
then when performing make i get the error about zlib (the .confure says it's all ok).
I hope someone can try my config

and give me some suggestions...
I'm really going MAD!!!!
