Telem-GW6Lin-build-qtcreator

From Phobos Wiki
Jump to: navigation, search

Edit your build configuration to look like this:

Build settings PC-DEBUG

General

Use shadow building

Build Steps

qmake

qmake build configuration
debug
Additional arguments

This makes qmake load necessary defines from file linux-debug.cache

-cache ${SOURCEDIR}/linux-debug.cache

make

make arguments

define number of cores to use for building, for example 2

-j2

Run settings PC-DEBUG

Arguments

--hw-conf gw6.hardware --user-conf gw6.user --log-folder log/ --app-name gw6

mkspecs/arm-linux-g++

#
# qmake configuration for CodeSourcery G++ ( arm-none-linux-gnueabi-g++ )
#
# Target Systems:
# Systems running "full" Linux, i.e., Linux on CPUs with an MMU. Use Sourcery G++ to build both the Linux kernel and applications.
#

MAKEFILE_GENERATOR	= UNIX
TEMPLATE		= app
CONFIG			+= warn_on release incremental

# These defines are available in every file during compilation
#DEFINES 		+= GATEWAY6_ARM MULTI_THREADING

QMAKE_INCREMENTAL_STYLE = sublib
#QMAKE_CFLAGS_RELEASE	+= -O1

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

QMAKE_CXX	= arm-none-linux-gnueabi-g++
QMAKE_LINK	= arm-none-linux-gnueabi-g++
QMAKE_CFLAGS_RELEASE	= -O0

load(qt_config)