Qt 4.6.2 for dummies

Screwface
Dear all,

I'm quite a newbie with this wonderfull board.
I'd like to replace the original Qtopia 2.2.0 by Qt 4.6.2 to experience it.

I've searched for information on the net but I'm not sure to have
understood everything. Please correct me if I'm wrong.

1) Tslib is a kind of library which handles the touchscreen
2) It is possible to use Qt with a mouse or Tslib instead of the mouse
3) The original Qtopia image already contains Tslib
4) It is possible to use Qt in replacement of Qtopia in the original image

So I already went on
http://blog.cor-net.org/embedded/mini2440/qt-45-on-mini2440/ but didn't
understand everything.

So I installed arm-linux-gcc 4.3.2,
Downloaded Qt 4.6.2 and unpacked it in a folder, modified qmake.conf file
to use arm-none-linux-gnueabi

Then I went in this folder and tried ./configure as follows
 [charlene@Thoroughbred qt-everywhere-opensource-src-4.6.2]$
./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

then I get an error message at the end:
The tslib functionality test failed!You might need to modify the include
and library search paths by editingQMAKE_INCDIR and QMAKE_LIBDIR
in/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/
linux-arm-g++.


I've noticed this at the beginning of the process, I don't know if it is
linked :
You have not explicitly asked to use pkg-config and are
cross-compiling.pkg-config will not be used to automatically query
cflag/lib parameters for dependencies

I'm working under Fedora 12.

Can someone explain me how to proceed step by step, or turn on my light?

Thanks!

Vinicius Kamakura
you need to first cross compile tslib, then add in the qws/linux-arm-g++
its include dir in the include path. do not add the include path in the
compile params.

regards,
vk

screwface
Hi,

I managed to compile tslib library. Now in the source folder, I get a build
folder in which I cand find bin, etc, include and lib folders
I went in my qt source folder, tried to build but still the same error
message.

Now, I configure with :
./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 -L
/home/charlene/Téléchargements/tslib/build/lib/ -L
/home/charlene/Téléchargements/tslib/build/include/

and it goes to the end.
Then gmake raises this error

arm-none-linux-gnueabi-g++
-Wl,-rpath-link,/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.
2/lib
-fno-exceptions -Wl,-O1 -Wl,-rpath,/usr/local/Qt/lib
-Wl,-rpath,/usr/local/Qt/lib -o animatedtiles
.obj/release-shared-emb-arm/main.o
.obj/release-shared-emb-arm/qrc_animatedtiles.o   
-L/home/charlene/Téléchargements/tslib/build/lib/
-L/home/charlene/Téléchargements/tslib/build/include/
-L/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib
-L/home/charlene/Telechargements/tslib/build/lib -lQtGui
-L/home/charlene/Téléchargements/tslib/build/lib/
-L/home/charlene/Téléchargements/tslib/build/include/
-L/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib
-L/home/charlene/Telechargements/tslib/build/lib -lQtNetwork -lQtCore
-lpthread 
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm
-none-linux-gnueabi/bin/ld:
warning: libts-0.0.so.0, needed by
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o,
not found (try using -rpath or -rpath-link)
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o:
undefined reference to `ts_read_raw'
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o:
undefined reference to `ts_open'
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o:
undefined reference to `ts_fd'
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o:
undefined reference to `ts_config'
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o:
undefined reference to `ts_close'
/home/charlene/Téléchargements/qt-everywhere-opensource-src-4.6.2/lib/libQtGui.s
o:
undefined reference to `ts_read'
collect2: ld returned 1 exit status

Do I miss somthing ?

Thanks

Yayati Ekbote
Hi Paolo, 
i corrected my command by removing inappropriate spaces....but then i get
this....

[root@localhost qt-everywhere-opensource-src-4.6.2]# ./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
Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

o

-prefix/usr/local/Qt: invalid command-line switch
-qt-mouse-tslib-little-endian: unknown argument
-no-cups-no-largefile: invalid command-line switch
-optimized-qmake-no-openssl: invalid command-line switch

You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies


Usage:  configure [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>]
[-libdir <dir>]
        [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-datadir
<dir>]
        [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
        [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
        [-debug-and-release] [-developer-build] [-shared] [-static]
[-no-fast] [-fast] [-no-largefile]
        [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
        [-accessibility] [-no-stl] [-stl] [-no-sql-<driver>]
[-sql-<driver>]
        [-plugin-sql-<driver>] [-system-sqlite] [-no-qt3support]
[-qt3support]
        [-platform] [-D <string>] [-I <string>] [-L <string>] [-help]
        [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff]
[-qt-libtiff] [-system-libtiff]
        [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng]
[-qt-libmng]
        [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg]
[-make <part>]
        [-nomake <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath]
[-continue]
        [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups]
[-no-iconv]
        [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked]
        [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse]
[-no-sse2]
        [-qtnamespace <namespace>] [-qtlibinfix <infix>]
[-separate-debug-info] [-armfpa]
        [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns]
[-xmlpatterns]
        [-no-multimedia] [-multimedia] [-no-phonon] [-phonon]
[-no-phonon-backend] [-phonon-backend]
        [-no-audio-backend] [-audio-backend] [-no-openssl] [-openssl]
[-openssl-linked]
        [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit]
[-no-javascript-jit] [-javascript-jit]
        [-no-script] [-script] [-no-scripttools] [-scripttools]
[-no-declarative] [-declarative]

        [additional platform specific options (see below)]


Installation options:

 These are optional, but you may specify install directories.

    -prefix <dir> ...... This will install everything relative to <dir>
                         (default
/usr/local/Trolltech/QtEmbedded-4.6.2-arm)

    -hostprefix [dir] .. Tools and libraries needed when developing
                         applications are installed in [dir]. If [dir] is
                         not given, the current build directory will be
used.

  * -prefix-install .... Force a sandboxed "local" installation of
                         Qt. This will install into
                         /usr/local/Trolltech/QtEmbedded-4.6.2-arm, if this
option is
                         disabled then some platforms will attempt a
                         "system" install by placing default values to
                         be placed in a system location other than
                         PREFIX.

 You may use these to separate different parts of the install:

    -bindir <dir> ......... Executables will be installed to <dir>
                            (default PREFIX/bin)
    -libdir <dir> ......... Libraries will be installed to <dir>
                            (default PREFIX/lib)
    -docdir <dir> ......... Documentation will be installed to <dir>
                            (default PREFIX/doc)
    -headerdir <dir> ...... Headers will be installed to <dir>
                            (default PREFIX/include)
    -plugindir <dir> ...... Plugins will be installed to <dir>
                            (default PREFIX/plugins)
    -datadir <dir> ........ Data used by Qt programs will be installed to
<dir>
                            (default PREFIX)
    -translationdir <dir> . Translations of Qt programs will be installed
to <dir>
                            (default PREFIX/translations)
    -sysconfdir <dir> ..... Settings used by Qt programs will be looked for
in <dir>
                            (default PREFIX/etc/settings)
    -examplesdir <dir> .... Examples will be installed to <dir>
                            (default PREFIX/examples)
    -demosdir <dir> ....... Demos will be installed to <dir>
                            (default PREFIX/demos)

 You may use these options to turn on strict plugin loading.

    -buildkey <key> .... Build the Qt library and plugins using the
specified
                         <key>.  When the library loads plugins, it will
only
                         load those that have a matching key.

Configure options:

 The defaults (*) are usually acceptable. A plus (+) denotes a default
value
 that needs to be evaluated. If the evaluation succeeds, the feature is
 included. Here is a short explanation of each option:

 *  -release ........... Compile and link Qt with debugging turned off.
    -debug ............. Compile and link Qt with debugging turned on.
    -debug-and-release . Compile and link two versions of Qt, with and
without
                         debugging turned on (Mac only).

    -developer-build.... Compile and link Qt with Qt developer options
(including auto-tests exporting)

    -opensource......... Compile and link the Open-Source Edition of Qt.
    -commercial......... Compile and link the Commercial Edition of Qt.


 *  -shared ............ Create and use shared Qt libraries.
    -static ............ Create and use static Qt libraries.

 *  -no-fast ........... Configure Qt normally by generating Makefiles for
all
                         project files.
    -fast .............. Configure Qt quickly by generating Makefiles only
for
                         library and subdirectory targets.  All other
Makefiles
                         are created as wrappers, which will in turn run
qmake.

    -no-largefile ...... Disables large file support.
 +  -largefile ......... Enables Qt to access files larger than 4 GB.

 *  -no-exceptions ..... Disable exceptions on compilers that support it.
    -exceptions ........ Enable exceptions on compilers that support it.

    -no-accessibility .. Do not compile Accessibility support.
 *  -accessibility ..... Compile Accessibility support.

    -no-stl ............ Do not compile STL support.
 *  -stl ............... Compile STL support.

    -no-sql-<driver> ... Disable SQL <driver> entirely.
    -qt-sql-<driver> ... Enable a SQL <driver> in the QtSql library, by
default
                         none are turned on.
    -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to
                         at run time.

                         Possible values for <driver>:
                         [  db2 ibase mysql oci odbc psql sqlite sqlite2
sqlite_symbian tds ]

    -system-sqlite ..... Use sqlite from the operating system.

    -no-qt3support ..... Disables the Qt 3 support functionality.
 *  -qt3support ........ Enables the Qt 3 support functionality.

    -no-xmlpatterns .... Do not build the QtXmlPatterns module.
 +  -xmlpatterns ....... Build the QtXmlPatterns module.
                         QtXmlPatterns is built if a decent C++ compiler
                         is used and exceptions are enabled.

    -no-multimedia ..... Do not build the QtMultimedia module.
 +  -multimedia ........ Build the QtMultimedia module.

    -no-audio-backend .. Do not build the platform audio backend into
QtMultimedia.
 +  -audio-backend ..... Build the platform audio backend into QtMultimedia
if available.

    -no-phonon ......... Do not build the Phonon module.
 +  -phonon ............ Build the Phonon module.
                         Phonon is built if a decent C++ compiler is used.
    -no-phonon-backend.. Do not build the platform phonon plugin.
 +  -phonon-backend..... Build the platform phonon plugin.

    -no-svg ............ Do not build the SVG module.
 +  -svg ............... Build the SVG module.

    -no-webkit ......... Do not build the WebKit module.
 +  -webkit ............ Build the WebKit module.
                         WebKit is built if a decent C++ compiler is used.

    -no-javascript-jit . Do not build the JavaScriptCore JIT compiler.
 +  -javascript-jit .... Build the JavaScriptCore JIT compiler.

    -no-script ......... Do not build the QtScript module.
 +  -script ............ Build the QtScript module.

    -no-scripttools .... Do not build the QtScriptTools module.
 +  -scripttools ....... Build the QtScriptTools module.

 +  -no-declarative .....Do not build the declarative module.
    -declarative ....... Build the declarative module.

    -platform target ... The operating system and compiler you are building
                         on (qws/linux-x86-g++).

                         See the README fi...stripped-down

Lars Thornqvist
Ciao!

Did you get this to work? I have the exact same problem;

_____________________________________________________________________
You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies
______________________________________________________________________

I also get this when running make:
______________________________________________________________________
.........
[with T = QAbstractAnimation*]':
../../include/QtCore/qatomic_i386.h:132: error: impossible constraint in
'asm'
make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 1
make[1]: Leaving directory `/home/lt/qtsdk-2010.02_EMB/qt/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
lt@ubuntu:~/qtsdk-2010.02_EMB/qt$ 
______________________________________________________________________

Any advice is highly appreciated!

Screwface
Dear all,

I finally managed to compile both tslib and Qt without error.  I'll make a
detailed tuto when I'll get everything working.

Now I have tslib/build and /usr/local/Qt folders on my host, but I don't
know what is the next step. I would like to replace Qtopia 2.2.0 on the
board, I mean having Qt 4.6.2 in nand. I can't use uboot + sdcard.
I also don't know how Qt works, how to launch an ewample or demo.

Can somebody explain me?

Thanks for your help

Yayati Ekbote
Hi,

Qtopia is a graphical environment for Linux on mobile phones, handheld PC
or multimedia and embedded devices. Just like windows on MSDOS.....thus
applications made in Qt can be executed on Qtopia environment...i.e. Qtopia
provides all the API needed...

plz check the following link...

http://doc.trolltech.com/qtopia2.2/html/overview.html

So,i suppose u need to have a version of Qtopia which can run Qt 4.6.2
applications on it.....

Lars Thörnqvist
Screwface,

Did you have the same issues as I above? Can you please hint me on how you
did to get past them??? Im so very stuck :(



Many thanks in advance!

Lars T

Screwface
Hi Lars

I used this command line :

./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 .

In your error message, I can see qatomic_i386.h, I don't know if this means
you ar compiling for x86 architecture instead of arm ?

To answer you Yayati, I'm not sure it is possible to launch Qt 4.6.2
application with Qtopia 2.2.0, it's like running Windows XP apps on Win
3.1.
But I have in mind Qtopia is some kind of graphical environment for PDA,
not supported anymore. I thought Qt 4.6.2 was a newer library, newer than
Qtopia 2.2.0 which allows to launch apps as we can see on youtube with the
widget demo.

But your remark makes me hesitate:
-Qt is only a library and it is only used to develop graphical apps on the
host, and once the app compiled, only this application is used on the
target ?

-Or Qt is a kind on Windows program in which you can launch the app you
developped on the host?

I'm a bit confused

Thanks for your help

Lars Thörnqvist
Attachment: qmake.conf.txt (925 Byte)
Ciao Screwface,

Still can't get past this point in my qt compilation! Any advice is highly
appreciated!

Thanks in advance,

Lars T

 

System setup:

Host system: Ubuntu 9.10

Target System: MCIMX25PDK - Freescale I.MX255

These have passed ok!

Building Qt/X11     --> Installed in folder   /home/lt/qtsdk-2010-02
Building Qt/QVFB    --> Installed in folder   /home/lt/qtsdk-2010-02.2
Testing QVFb


Building Qt/Target   -- Installed in folder    /home/lt/qtsdk-2010-02_EMB

1)  ln -s /home/lt/ltib/rootfs /tftpboot/ltib
2)  sudo /etc/init.d/nfs-kernel-server restart
3)  I copy qmake.conf and platformdefs.h -->
/home/lt/qtsdk-2010.02_EMB/qt/mkspecs/qws/linux-arm-g++-imx
4)  export
PATH=$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-ntpl-3/arm-none-linux-gn
ueabi/bin
5)  ./configure -embedded arm -xplatform qws/linux-arm-g++-imx -release
-prefix /usr/local/Trolltech/Qt-4.6.2_IMX -qt-gfx-linuxfb -qt-kbd-tty
-qt-mouse-tslib -little-endian -host-little-endian

6)  make

Here it fails
________________________________________________________________________________
_____________________________________________________________________
d src/tools/uic/ && make -f Makefile 
make[1]: Entering directory `/home/lt/qtsdk-2010.02_EMB/qt/src/tools/uic'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/lt/qtsdk-2010.02_EMB/qt/src/tools/uic'
cd src/corelib/ && make -f Makefile 
make[1]: Entering directory `/home/lt/qtsdk-2010.02_EMB/qt/src/corelib'
arm-none-linux-gnueabi-g++ -c -include .pch/release-shared-emb-arm/QtCore
-pipe -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden
-Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB
-DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
-DQT_MOC_COMPAT -DELF_INTERPRETER=\"/lib/ld-linux.so.2\"
-DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++-imx -I.
-I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm
-Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4
-I.moc/release-shared-emb-arm -I/home/lt/ltib/rootfs/usr/include -o
.obj/release-shared-emb-arm/qabstractanimation.o
animation/qabstractanimation.cpp
../../include/QtCore/qatomic_i386.h: In destructor 'QList<T>::~QList()
[with T = QAbstractAnimation*]':
../../include/QtCore/qatomic_i386.h:132: error: impossible constraint in
'asm'
make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 1
make[1]: Leaving directory `/home/lt/qtsdk-2010.02_EMB/qt/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
lt@ubuntu:~/qtsdk-2010.02_EMB/qt$ 
________________________________________________________________________________
_____________________________________________________________________


I attach qmake.conf(.txt to be able to attach it)

Screwface
Lars,


I'm affraid I can not help you. I'm a newbie with all that stuff. I managed
to compile Tslib and Qt but I don't know what is the next step and how all
is supposed to work. If I find something which could help you, I'll let you
know.

Regards

Yayati Ekbote
Hi screface,

I made changes to qmake.conf according the one you provided. But it gives
me this 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
 /opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-
arm-g++.
[root@localhost qt-everywhere-opensource-src-4.6.2]# 

Plz guide further..

Compiling qt app  for arm device is a 3 step procedure.

First, you create a qt app on the host machine i.e x86 machine. the DVD
provided with the friendly arm device has the qt2 designer and libraries to
create the application.

Second, you compile the code for x86 platform using the qmake for x86.This
step is done to test the application before porting it to arm device. We
use the virtual framebuffer to view the output on the PC(x86)platform as to
how the application will look or work on device. If you feel that your code
is 100% correct then you can skip this step.

Third, you compile the same code for arm platform using qmake for arm. Once
you compile the code for arm platform using qmake for arm, a binary is
created in
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin.

Now you copy the binary and port it to the device. And if your code is
right the app will run on the device.

igalloway
Hope you don't mind.
Shamelessly promoting our QT seminar series on ARM hardware. This would be
a useful introduction to using the latest QT Embedded release. This seminar
series is currently held in North America.
 //www.futureelectronics.com/en/promotions/EventsAndSeminars/Pages/FreescaleQTSe
minar.aspx

consequence
Hello Screwface 
did you prepared the tutorial

Screwface
Hi!

Unfortunately not! I managed to compile the library and tslib, but I'm
stuck, I do not understand how to put all that stuff on the board and run a
simple example, I'm still searching for explanation to understand.

Paradon
Hi,

I agree with screwface on this one, I am able to complete the cross
compilation and also install qt for virtual framebuffer but have no idea on
how to put it on the board.

I am using ltib to make the linux kernel that runs fine on the board.
Maybe it is so easy as Yayati described, have not had the time to test it
yet.

elucches
Hi screwface, Paradon,
I'm starting to read http://doc.trolltech.com/qtopia1.7/html/overview.html
because I'm also interested in this topic, maybe it helps you?
Regards,
E

Sekhar
@Yakati

To recover fromt he testlib failed error, you just need to remove
tstlib-qt-mouse from the ./configure command. Dont worry QT will take the
default tstlib.

I also have a doubt as screwface has. I m using a DM6446 TI board and I
went through configure make and make install steps. Now my doubt is that
how Can I run the examples and demos on the board as we are running  hello
world program

EPascual
Just for what it worths, I coud eliminate the tslib problem just by
modifying qmake.conf so that QMAKE_CC et al macros include the full path to
the tools, like this :

TOOLS_BIN = /home/eric/mini2440/arm/gcc/4.3.2/bin
# modifications to g++.conf
QMAKE_CC                = $$TOOLS_BIN/arm-linux-gcc
QMAKE_CXX               = $$TOOLS_BIN/arm-linux-g++
QMAKE_LINK              = $$TOOLS_BIN/arm-linux-g++

When trying to understand what was wrong, while analyzing error messages I
could notice that for some obscure reason the configure process failed to
invoke the tools when trying the tslib tests, even though they were in the
path. Thus the fix I tried, and it worked. And I could repeat the scenario
several times, so I don't think it was just by chance.

Don't ask me why it works, because I'm far for a Linux expert. Just a
curious guy ;)

For those who can read French, I tried to document as much as possible the
procedure I used for producing Qt 4.6.1 and 4.6.1 libs here : 
http://www.pobot.org/Qt4-6-embedded-sur-la-mini2440.html

For the others, maybe Google translate can help.

Marcio Lima
I am trying to use qtopia in mini2440. I have spent a whole day just to
setup the environment and cross-compile the source.

Now I get the following error when I try to make install. I am sure that
the problem is that the cross-compiler is trying to compile a 386 assembler
code. I don[t know why! 

Here is the error?
cd src/tools/bootstrap/ && make -f Makefile install
make[1]: Entering directory `/opt/qtsdk-2010.05/qt/src/tools/bootstrap'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/opt/qtsdk-2010.05/qt/src/tools/bootstrap'
cd src/tools/moc/ && make -f Makefile install
make[1]: Entering directory `/opt/qtsdk-2010.05/qt/src/tools/moc'
install -m 755 -p "../../../bin/moc" "/usr/local/Qt/bin/moc"
strip "/usr/local/Qt/bin/moc"
make[1]: Leaving directory `/opt/qtsdk-2010.05/qt/src/tools/moc'
cd src/tools/rcc/ && make -f Makefile install
make[1]: Entering directory `/opt/qtsdk-2010.05/qt/src/tools/rcc'
install -m 755 -p "../../../bin/rcc" "/usr/local/Qt/bin/rcc"
strip "/usr/local/Qt/bin/rcc"
make[1]: Leaving directory `/opt/qtsdk-2010.05/qt/src/tools/rcc'
cd src/tools/uic/ && make -f Makefile install
make[1]: Entering directory `/opt/qtsdk-2010.05/qt/src/tools/uic'
install -m 755 -p "../../../bin/uic" "/usr/local/Qt/bin/uic"
strip "/usr/local/Qt/bin/uic"
make[1]: Leaving directory `/opt/qtsdk-2010.05/qt/src/tools/uic'
cd src/corelib/ && make -f Makefile install
make[1]: Entering directory `/opt/qtsdk-2010.05/qt/src/corelib'
/media/b1cc59e2-c2f4-4a5e-acee-fc4dada4edbe/opt/Boardcon/4.3.3/bin/arm-linux-g++

-c -include .pch/release-shared-emb-arm/QtCore -pipe -fno-exceptions -O0
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC
-DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT
-DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION
-DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DHB_EXPORT=Q_CORE_EXPORT
-DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include
-I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal
-I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5
-I../3rdparty/md4 -I.moc/release-shared-emb-arm -I../../include -o
.obj/release-shared-emb-arm/qabstractanimation.o
animation/qabstractanimation.cpp
In file included from animation/qabstractanimation.cpp:896:
../../include/QtCore/qatomic_i386.h: In member function 'bool
QBasicAtomicPointer<T>::testAndSetOrdered(T*, T*) [with T =
QThreadStorage<QUnifiedTimer*>]':
../../include/QtCore/qatomic_i386.h:176: error: impossible constraint in
'asm'
{standard input}: Assembler messages:
{standard input}:253: Error: bad instruction `lock'
{standard input}:254: Error: bad instruction `incl [r2,#0]'
{standard input}:255: Error: bad instruction `setne [fp,#-5]'
{standard input}:293: Error: bad instruction `lock'
{standard input}:294: Error: bad instruction `decl [r2,#0]'
{standard input}:295: Error: bad instruction `setne [fp,#-5]'
make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 1
make[1]: Leaving directory `/opt/qtsdk-2010.05/qt/src/corelib'
make: *** [sub-corelib-install_subtargets-ordered] Error 2

Can anybody help me ?

Thanks in advance

Sunil
Dear all ,

i want to create qt Application for Mini2440.
Can anyone please help me.
 i am facing problem while Compiling qt-everywhere-opensource-src-4.6.2
i got following 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
 /usr/local/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++.

please help me..

Kerr Wang
reply Sunil&#65306;
When I use the arm-linux-gcc 4.4.3 compiler Qt4.8.5 encountered the same
problem, last modified file in /
usr/local/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm- g+ + 
directory named qmake.conf of the compiler to the absolute path to solve
the problem.

my qmake.conf is:

QMAKE_INCDIR=/home/wangzx/work/qtopia/tslib/tmp/include
QMAKE_LIBDIR=/home/wangzx/work/qtopia/tslib/tmp/lib


# modifications to g++.conf
QMAKE_CC                =
/usr/local/arm-tool/bin/arm-none-linux-gnueabi-gcc
QMAKE_CXX               =
/usr/local/arm-tool/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK              =
/usr/local/arm-tool/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB        =
/usr/local/arm-tool/bin/arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR                = /usr/local/arm-tool/bin/arm-none-linux-gnueabi-ar
cqs
QMAKE_OBJCOPY           =
/usr/local/arm-tool/bin/arm-none-linux-gnueabi-objcopy
QMAKE_STRIP             =
/usr/local/arm-tool/bin/arm-none-linux-gnueabi-strip