Creating Qmake for iMx6 family QT version 4.6.2

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Qmake for iMx6 family QT version 4.6.2

1,342 Views
Contributor I

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

Labels (1)
0 Kudos
3 Replies

6 Views
NXP TechSupport
NXP TechSupport

Seems you are using x86 toolchain to compile the ARM core so that is the problem.

This thread may useful for you.

Building Qt5 for i.MX6 with YOCTO

0 Kudos

6 Views
Contributor I

thanks for your reply ,

i was trying step as given link but  failed

$ bitbake fsl-image-multimedia-full

0 Kudos

6 Views
Senior Contributor III

Hi,

Send your post to imx community (e.g. i.MX Community ) to get it visible for active members.

Saurabh

0 Kudos