error:no such instruction: `swpb %bl,%al,[%edx]' Qt Creator

tagf
Hi 

After many hours i manage to compile Qt Embedded 4.6.3 using ARM-Linux GCC
4.4.3 for mini2440 on Ubuntu host. However i have problems with adding
generated tools to Qt Creator. In Qt Creator options I have added
arm-linux-gcc in tools section and generated qmake in Qt versions (there is
also default Desktop Qt 4.7.4).

But when I try to build project using my 4.6.3 tools i get error:

/usr/local/qt/include/QtCore/qatomic_arm.h:131: error:no such instruction:
`swpb %bl,%al,[%edx]'

I suspect that there are two possibilities:
1. The qmake command is:
qmake /home/user/Qt/test/test.pro -r -spec linux-g++-32 - the same as for
Desktop QT 4.7.4 even if the tools itself are different. What should be
correct qmake command?

2. Maybe I did something wrong during compilation. I followed more or less
this tutorial
http://www.sereno-labs.com/qt-4-6-2-installation-procedure-for-friendlya...
It is for 4.6.2 version, however everything compiled with no errors.
Moreover I compiled this project using those tools from command line and it
works fine on mini2440.

Any suggestions?
Regards

antifish
hi tagf,

this is a error which occurs with the newest Qt SDK, you could use a older
version like this one (remove Qt Creator first)
http://get.qt.nokia.com/qtsdk/Qt_SDK_Lin32_offline_v1_1_2_en.run

it is as you wrote, qmake takes the wrong cross compiler (linux-g++-32)
instead of the arm-linux-g++

another workaround is delte the make step and create your custom one (copy
the orignal and replace the linux-g++ with the arm-g++)
or you can use the latestet Qt Creator and build from source (as there is
no precompiled version of this)

have a look here
https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6145

tagf
Thanks, previous version solved the problem.