AnsweredAssumed Answered

Creating Qmake for iMx6 family QT version 4.6.2

Question asked by soukat ahmed on Jan 26, 2015
Latest reply on Feb 1, 2015 by soukat ahmed

hi,

 

we are developing a device based on im6 family based on Linux 3.10 with yocto poject version 1.6.

i want to configure embedded QT based on QT4.6.2 so that i can create GUI project and compile

 

below i have done some step for configuration

1. Download tool chain from "http://downloads.yoctoproject.org/releases/yocto/yocto-1.6/toolchain/x86_64/poky-eglibc-x86_64-core-image-sato-armv5te-toolchain-1.6.sh" on my PC

2. installed on my PC Ubuntu10.04 32 bit

3. Download QT4.6.2 and extract tar file

4. Configure qmake.conf  file for ARM configuration with below details

#

# qmake configuration for building with arm-linux-g++

#

 

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

include(../../common/linux.conf)

include(../../common/qws.conf)

 

# modifications to g++.conf

QMAKE_CC                = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-gcc

QMAKE_CXX               = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-g++

QMAKE_LINK              = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-g++

QMAKE_LINK_SHLIB        = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-g++

 

# modifications to linux.conf

QMAKE_AR                = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-ar cqs

QMAKE_OBJCOPY           = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-objcopy

QMAKE_STRIP             = /opt/poky/1.0/sysroots/i686-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-strip

 

load(qt_config)

 

4. run configuration # Sudo ./configure -embedded arm -qvfb -no-opengl -no-separate-debug-info -no-cups -silent -no-javascript-jit -no-webkit -no-phonon -no-multimedia -no-largefile -optimized-qmake -nomake examples -nomake demos -nomake tools -fast

 

5. input Open source , accept license term and condition after that got the below message

 

    Qt is now configured for building. Just run 'make'.

    Once everything is built, you must run 'make install'.

    Qt will be installed into /usr/local/Trolltech/QtEmbedded-4.6.2-arm

 

    To reconfigure, run 'make confclean' and 'configure'.

 

6. sudo make install after that, got an error

 

install -m 755 -p "../../../bin/uic" "/usr/local/Trolltech/QtEmbedded-4.6.2-arm/bin/uic"

strip "/usr/local/Trolltech/QtEmbedded-4.6.2-arm/bin/uic"

make[1]: Leaving directory `/home/sahmed/qt-everywhere-opensource-src-4.6.2/src/tools/uic'

cd src/corelib/ && make -f Makefile install

make[1]: Entering directory `/home/sahmed/qt-everywhere-opensource-src-4.6.2/src/corelib'

/home/sahmed/qt-everywhere-opensource-src-4.6.2/bin/qmake -spec ../../mkspecs/qws/linux-arm-g++ -unix -o Makefile corelib.pro

make[1]: Leaving directory `/home/sahmed/qt-everywhere-opensource-src-4.6.2/src/corelib'

make[1]: Entering directory `/home/sahmed/qt-everywhere-opensource-src-4.6.2/src/corelib'

moc animation/qabstractanimation.h

compiling global/qt_pch.h

compiling animation/qabstractanimation.cpp

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: Assembler messages:

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %dl,%al,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %dl,%dil,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %cl,%al,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %dl,%al,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %dl,%al,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %cl,%dl,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %dl,%al,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %al,%dil,[%esi]'

../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:131: Error: no such instruction: `swpb %cl,%dl,[%esi]'

make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 1

make[1]: Leaving directory `/home/sahmed/qt-everywhere-opensource-src-4.6.2/src/corelib'

make: *** [sub-corelib-install_subtargets-ordered]

 

so please help me out how to solve this problem

Outcomes