nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Successfully cross compiling ViewML for Assabet
From: #YANG XIAOYONG#
Date: Fri, 2 Feb 2001 00:04:41 +0800

Here is how I cross compile the ViewML. Just share with those who are
looking for solutions.
1. Cross-compiled FLNX
2. Copy the libjpeg.a file the ~/flnx/lib directory
3. Cross-compiled libwww:
#./configure
#export AR=/skiff/local/bin/arm-linux-ar
(Same for AS, CC, CXX, GXX, LD, NM, RANLIB, STRIP)
#make -e
#make install
4. Cross-compiled ViewML:
#PATH=/skiff/local/bin:$PATH
#./configure
--with-microwin=/home/yxy/microwin/src
--with-fltk=/home/yxy/flnx
--host=arm-linux

5. modify the file makeinclude in the ~/viewml0.18 directory
"LIBS = -L/skiff/local/arm-linux/lib -lpthread  -L/home/yxy/microwin/src/lib
-lnano-X -lmwengine -lmwdrivers -lmwfonts -L/home/yxy/flnx/lib -lfltk -ljpeg
`/usr/local/bin/libwww-config --libs`"
It should be in one line.

6.#export AR=/skiff/local/bin/arm-linux-ar
(Same for AS, CC, CXX, GXX, LD, NM, RANLIB, STRIP)
#make -e 
then check the viewml binary in the src directory

Note: 
I am using the skiff cross compiler form www.handhelds.org
Please feel free to give comments.
Regards,
Xiaoyong

nanogui@linuxhacker.org