QT Compiled Library

Silent Warrior
dear All,
i am stuck to compile the tslib and qt on my ubuntu 9.10 machine, i have
tried a lot search forum and also step by step from below link
http://www.sereno-online.com/site/2010/05/01/qt-4-6-2-installation-proce...
but failed :( :(

please does any one have compiled QT library so that i will put it on my
mini2440 and run my qt application.

or guide me on ubuntu 9.10.

please help.......................

davef
As paolo recommends 9.10 how about posting the errors you get?

Silent Warrior
thanks you davef for your kind reply,

my error is tslib i can't compile it on my ubuntu 9.10. please can some one
tell me from where i can download it and a step by step guide as i am new
on linux :( ...............

davef
"Can't" as in you get errors or "can't" as in you don't know how?

Silent Warrior
ok let me explain it.

i follow the below link
http://www.sereno-online.com/site/2010/05/01/qt-4-6-2-installation-proce...

now it give me error on tslib so then i follow the below link to install
tslib 
http://linux-dvbh.blogspot.com/2006/12/tslib-download-and-cross-compile-...

but same error again i have also set the environment variable in my qmake
file like 
QMAKE_INCDIR +=/usr/local/tslib/include
QMAKE_LIBDIR +=/usr/local/tslib/lib

but same error as i download the compiled tslib from
http://mini2440.sv-design.at/

but i can't configure the qt yet, below is my Qmake file 
///////////////////////////////////////////////////////////
#
# qmake configuration for building with arm-linux-g++
#

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

QMAKE_INCDIR += ~/Desktop/tslib/src
QMAKE_LIBDIR += ~/Desktop/tslib/lib


# modifications to g++.conf
QMAKE_CC                = arm-none-linux-gnueabi-gcc
QMAKE_CXX               = arm-none-linux-gnueabi-g++
QMAKE_LINK              = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB        = arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR                = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY           = arm-none-linux-gnueabi-objcopy
QMAKE_RANLIB     = arm-none-linux-gnueabi-ranlib

load(qt_config)
//////////////////////////////////////////////////////////

i tried a lot of forum but failed, i think this just because of tslib which
i think i am doing something wrong, i also check 
http://www.opentom.org/Tslib
this link but no luck till yet.......

do  you want me now to upload my complete screen error image???

davef
I think unless someone sees the error message it will be difficult for them
to suggest what to try.

There have been a number of threads on here about tslib and the problems
people have had.  

I didn't get very far with this process as I didn't want to up-grade my
Ubuntu 9.04

paolo has been quite helpful, maybe a note on his blog would sort it for
you.

Silent Warrior
okey here is the error 

The tslib functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR and QMAKE_LIBDIR in
 /root/Desktop/qt/mkspecs/qws/linux-arm-g++.


i have test it with QMAKE that i post above but no luck...

:(

Silent Warrior
dear sir i i am configuring it like below.

./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix
/usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support
-no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools

Silent Warrior
ohh dear i am so sorry its my bad the actually path should be like
/root/Desktop/tslib/lib 
and i am giving it ~/Desktop/tslib/lib

problem solved but now when i make it, it give me following error any idea.


release-shared/moc.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/moc] Error 1
make[1]: Leaving directory `/root/Desktop/qt/src/tools/moc'
make: *** [sub-moc-make_default-ordered] Error 2


any idea.............

paolo
@Silent Warrior
Have you tried with this option 
-no-mouse-tslib
instead of
-qt-mouse-tslib

in this case you can use the pre built ts library.

I did another installation few days ago (with -no-mouse-tslib) with Ubuntu
10.04 and it works fine.

Let me know if this fix the problem...

paolo

Silent Warrior
ok gr8 let me and do it now then will let you know :)

Silent Warrior
paolo: thank you so much i have successfully compile it
thanksssssssssssssss

now i have the build library in my /usr/local/QT now what should i do
further ??

should i move this folder to my mini2440 board??? its about 64.4MB 


once again thanks a lot boss :):):)

paolo
Good!
I moved all the DLLs to the SD card (I bought 4 GB SD card for few euros)
and I'm running the apps from there.
...remember the env variables as I wrote in the guide...

Have Fun!
Paolo

Silent Warrior
dear Paolo now when i run my QT Application on target device it give me the
following error...

Error: line one: "&" unexpected (expected ")")

any idea..

thanks in advance

ilpaso
Hi all,

I compiled Qt 4.6.2 on ubuntu 10.04 with mini2440 as target.

Now the problem is an "illegal instruction" running a Qt application on the
mini2440.

I follow the guide:
http://www.sereno-online.com/site/2010/05/01/qt-4-6-2-installation-proce...
and I changed File: /mkspecs/common/g++.conf
Change this line
QMAKE_CFLAGS_RELEASE += -O2
With:
QMAKE_CFLAGS_RELEASE += -O0

Any idea

Thanks
ilpaso