PDA

View Full Version : ARM qmake compiler not getting generated



in_dbasu
25th May 2012, 13:12
I am trying to cross compile Qt Embedded linux source code v4.8.2 in the host system. The qmake configuration is as follows,



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

$ qmake -spec armel

MAKEFILE_GENERATOR = UNIX
TEMPLATE = app
CONFIG += qt warn_on release incremental link_prl
QT += core gui
QMAKE_INCREMENTAL_STYLE = sublib

include(/Path to /mkspecs/common/unix.conf)
include(/Path to/mkspecs/common/g++.conf)
include(/Path to/mkspecs/common/linux.conf)

CROSS_GNU_ARCH = arm-linux-gnueabi
warning("preparing QMake configuration for $$CROSS_GNU_ARCH")
CONFIG += $$CROSS_GNU_ARCH


QMAKE_CC = $$CROSS_GNU_ARCH-gcc
QMAKE_CXX = $$CROSS_GNU_ARCH-g++
QMAKE_LINK = $$CROSS_GNU_ARCH-g++
QMAKE_LINK_SHLIB = $$CROSS_GNU_ARCH-g++
QMAKE_LINK_C = $$CROSS_GNU_ARCH-gcc
QMAKE_LINK_C_SHLIB = $$CROSS_GNU_ARCH-gcc


QMAKE_INCDIR = /usr/$$CROSS_GNU_ARCH/include/
QMAKE_LIBDIR = /usr/$$CROSS_GNU_ARCH/lib/
QMAKE_INCDIR_X11 = /usr/$$CROSS_GNU_ARCH/X11R6/include
QMAKE_LIBDIR_X11 = /usr/$$CROSS_GNU_ARCH/X11R6/lib
QMAKE_INCDIR_QT = /usr/$$CROSS_GNU_ARCH/include/qt4/
QMAKE_LIBDIR_QT = /usr/$$CROSS_GNU_ARCH/lib/
QMAKE_INCDIR_OPENGL = /usr/$$CROSS_GNU_ARCH/X11R6/include
QMAKE_LIBDIR_OPENGL = /usr/$$CROSS_GNU_ARCH/X11R6/lib
QMAKE_AR = $$CROSS_GNU_ARCH-ar cqs
QMAKE_OBJCOPY = $$CROSS_GNU_ARCH-objcopy
QMAKE_STRIP = $$CROSS_GNU_ARCH-strip

load(qt_config)

the configure command is as follows....

./configure -prefix /home/satyam/Debojyoti/Qt_ARM/Lib2 -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -shared -no-fast -no-largefile -qt3support -qt-libpng -verbose -no-rpath -no-cups -gtkstyle -svg -multimedia -webkit -declarative -opensource -freetype -little-endian -depths 16,18,24


When i am trying to build the library it is building the ARM library,but in the bin folder where qmake and other qt compilers are generated all the compilers are generated as x86 architecture and not ARM architecture.....

Basically i want to cross compile qml code in the host system as well as in the board (imx53)...but with out a proper version of the qmake it is not possible to cross compile the qml code either in the board or in the host system....

Any suggestion????