2012-07-05 16:55:29 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for the Freescale iMX6 boards (single, dual and quad)
|
|
|
|
#
|
|
|
|
# This mkspec is based and tested on the ltib-source-release 3.0.15
|
|
|
|
# Building ltib including glib, gpu-drivers and what ever you want to use (e.g. dbus or fontconfig)
|
2012-08-01 09:17:59 +00:00
|
|
|
# This mkspec is tested with a framebuffer (eglfs) configuration (not testes with X11)
|
2012-07-05 16:55:29 +00:00
|
|
|
# A typical configure line looks like:
|
|
|
|
# /home/tsenyk/qt5/qt5/configure -opensource -confirm-license -make libs -device imx6 \
|
|
|
|
# -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- \
|
2012-08-01 09:17:59 +00:00
|
|
|
# -sysroot <path-to-your-ltib-install>/rootfs -no-gcc-sysroot \
|
2012-12-02 16:24:19 +00:00
|
|
|
# -prefix /usr/local/Qt-5.0.0/Qt5-imx6-1
|
2012-07-05 16:55:29 +00:00
|
|
|
#
|
|
|
|
# NOTE: currently ltib doesn't produce a proper staging/sysroot-filessystem.
|
2012-08-01 09:17:59 +00:00
|
|
|
# If gcc's --sysroot is used, the toolchain doesn't find basic binaries (e.g. crt1.o),
|
|
|
|
# therefore you have to pass -no-gcc-sysroot to configure if you pass -sysroot to configure!
|
2012-07-05 16:55:29 +00:00
|
|
|
|
|
|
|
include(../common/linux_device_pre.conf)
|
|
|
|
|
|
|
|
EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_imx6.cpp
|
|
|
|
|
2012-08-01 09:17:59 +00:00
|
|
|
QMAKE_INCDIR += $$[QT_SYSROOT]/usr/include
|
|
|
|
QMAKE_LIBDIR += $$[QT_SYSROOT]/usr/lib
|
2012-07-05 16:55:29 +00:00
|
|
|
|
2012-08-01 09:17:59 +00:00
|
|
|
QMAKE_LIBS_EGL += -lEGL
|
|
|
|
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
|
|
|
|
QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
|
2012-07-05 16:55:29 +00:00
|
|
|
|
2012-08-01 09:17:59 +00:00
|
|
|
QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib
|
2012-07-05 16:55:29 +00:00
|
|
|
|
2013-01-14 14:30:25 +00:00
|
|
|
IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
|
2014-03-31 13:36:35 +00:00
|
|
|
QMAKE_CFLAGS += $$IMX6_CFLAGS
|
|
|
|
QMAKE_CXXFLAGS += $$IMX6_CFLAGS
|
2012-07-05 16:55:29 +00:00
|
|
|
|
2013-07-18 20:45:47 +00:00
|
|
|
include(../common/linux_arm_device_post.conf)
|
2012-07-05 16:55:29 +00:00
|
|
|
|
|
|
|
load(qt_config)
|