errors with qt463 and tslib

peter a
I`m a bit of a newbie on Linux, But with time and a lot of google-ing I
normally get there in the end, But try to fully compile QT_463 as got me
beaten .

my system is a mini2240, running debian on a sd card.

My first problem was compiling Tslib , because my I was follow compiled
native code.

After a bit more reading I finished up with :-

./configure --host=arm-linux --target=arm --prefix=/usr/local/tslib
--enable-shared

I tried copying to my mini2240 and it works, so know it compiled the binary
o.k

Now I started on compiling the Qt_463 :

I`ve change /../mkspecs/qws/linux-arm-g++/qmake.conf to :

QMAKE_CC        = /usr/local/arm/4.3.2/bin/arm-linux-gcc
QMAKE_CXX        = /usr/local/arm/4.3.2/bin/arm-linux-g++
QMAKE_LINK        = /usr/local/arm/4.3.2/bin/arm-linux-g++
QMAKE_LINK_SHLIB     = /usr/local/arm/4.3.2/bin/arm-linux-g++

QMAKE_AR        = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY      =
/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-objcopy
QMAKE_RANLIB     = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-ranlib
          
QMAKE_INCDIR  += /usr/local/tslib/include
QMAKE_LIBDIR  += /usr/local/tslib/lib

QMAKE_CFLAGS += -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t
-mtune=arm920t
QMAKE_CXXFLAGS += -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t
-mtune=arm920t

Which should be o.k ?

And a Change to  /../mkspecs/common/g++.conf

And used the configure line

./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix
/usr/local/Qt -qt-mouse-tslib -little-endian -opensource –shared

I get a error 

usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-
none-linux-gnueabi/bin/ld:
warning:          libts-1.0.so.0, needed by /qt/qt/lib/libQtGui.so, not
found (try using -rpath or -rpath-link)
/qt/qt/lib/libQtGui.so: undefined reference to `ts_read_raw'
/qt/qt/lib/libQtGui.so: undefined reference to `ts_open'
/qt/qt/lib/libQtGui.so: undefined reference to `ts_fd'
/qt/qt/lib/libQtGui.so: undefined reference to `ts_config'
/qt/qt/lib/libQtGui.so: undefined reference to `ts_close'
/qt/qt/lib/libQtGui.so: undefined reference to `ts_read'
collect2: ld returned 1 exit status
make[3]: *** [animatedtiles] Error 1
make[3]: Leaving directory `/qt/qt/examples/animation/animatedtiles'
make[2]: *** [sub-animatedtiles-make_default] Error 2
make[2]: Leaving directory `/qt/qt/examples/animation'
make[1]: *** [sub-animation-make_default] Error 2
make[1]: Leaving directory `/qt/qt/examples'
make: *** [sub-examples-make_default-ordered] Error 2

any ideas :-

thank in advance Peter

davef
Peter,

First, I'd check that your ts_files are cross-compiled, ie 

file ts_claibrate

I assume --target=arm uses linux as a default. Generally, that is
-target=arm-linux or --target=arm-linux  Maybe, someone could explain why
sometimes a - and sometimes a -- in front of options.

I have seen comments about having to rename libraries in one of the 4.6.2
threads on here or at 

http://billforums.station51.net/

which seems to be your problem.

Also, I notice a mix of arm-linux and arm-none-linux-gnueabi.  I think they
both end up pointing to the same executables but is there some reason for
the way you have done it?

I am struggling through this as well.

HTH

Dave

peter a
I`ve been going around a loop for days, so I`ve just about seen ever post
on how to set it up.

That was my first problem .
It is cross compiling and not native compiling.

I moved the compiled build to the mini2240 and it works, so I know it
compiled o.k.
 
Oops  , I missing there was 10 pages to
http://billforums.station51.net/viewtopic.php?f=8&t=15&start=10

Thinks I`ll read more until I find a missing clue to my problem.