nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Working on getting ViewML/Nano-X running on an iPaq
From: Eric Christianson
Date: Fri, 15 Sep 2000 13:28:08 -0600

I have read from the microwindows site, that there is a working version
of viewML on the iPaq. I would like to be able to build this
configuration
as well.

I am currently using the skiff tools on the handhelds.org web site from
compaq as the arm cross compiler.

I have successfully built several versions of nano-X, however, I want
to understand what is the preferred way to build this.
It has been suggested that I use framebuffer support for the screen
driver. What other options underneath framebuffer should be
enabled?  (I suspect VGA fb and Portrait mode)

For the mouse driver, I chose Touch screen. I noticed, however, that
there is a ipaqmouse driver in the config file (not available from make
xconfig). Is this the mouse driver I should use?

For "libraries", I have selected NanoX and not selected any options
underneath. (Do I need the shared library support?)

In cross compiling flnx-0.10 I had no troubles.. just had to update
the CC and CXX entries to use arm-linux-gcc and arm-linux-g++
respectively.

Then comes the rest of the details that maybe only the viewML folks
can help me with. I have used the skiff tools to cross-compile libwww.
I passed in arm-linux-gcc/arm-linux-g++ as the CC and CXX
entries respectively. I also had to edit the configure script to not
exit
when trying to cross compile with --target=arm and --host=arm.

It seems to compile okay, but when I try to build viewML, I end up
getting a linker error:

arm-linux-g++ -g --permissive -DNANOX -D_NANOX
`/home/echristi/projects/ipaq/lib/bin/libwww-config --cflags`
-I/home/echristi/projects/ipaq/flnx-0.10/FL
-I/home/echristi/projects/ipaq/flnx-0.10
-I/home/echristi/projects/ipaq/microwin/src/include -I./fltk -I.
-I../kdecore
-I../kimgio -I../kdeui -I../jscript -I..  -c -o fltk/history.o
fltk/history.cpp
arm-linux-g++ html.o htmlchain.o htmlclue.o htmldata.o htmlfont.o
htmliter.o
htmltable.o htmltoken.o jscript.o htmlview.o htmlframe.o htmlobj.o
debug.o
htmlform.o main.o http.o http_.o ../kdecore/kurl.o ../jscript/builtin.o
../jscript/cpp2bison.o ../jscript/jsexec.o ../jscript/jstree.o
../jscript/t2.o
../jscript/t1.o ../kdeui/kcursor.o fltk/qtimer.o fltk/qobject.o
fltk/qpainter.o
fltk/qdrawutil.o fltk/qfont.o fltk/qrect.o fltk/qregexp.o fltk/qstring.o

fltk/kcharsets.o fltk/qcolor.o fltk/qpixmap.o fltk/qfontinfo.o
fltk/qwidget.o
fltk/history.o -o viewml
/home/echristi/projects/ipaq/flnx-0.10/lib/libfltk.a
-lpthread -L/home/echristi/projects/ipaq/microwin/src/lib -lnano-X
`/home/echristi/projects/ipaq/lib/bin/libwww-config --libs`
collect2: ld terminated with signal 11 [Segmentation fault]
make: *** [main] Error 1

There were no compiler errors along the way, and I believe it's failing
here on linking the viewml binary.  Does anyone have suggestions
as to what I have done wrong? I suspect I have incorrectly linked a
library somewhere along the way that isn't cross-compiled correctly,
but I don't see where that is.

What has been the steps taken to get viewML running on NanoX?
Is there a HOWTO?

Any help would be greatly appreciated.

Thanks,
Eric




nanogui@linuxhacker.org