AnsweredAssumed Answered

build QT5.7.1

Question asked by yuhundehao yuhundehao on Feb 16, 2017
Latest reply on Feb 17, 2017 by gusarambula

My kernel is 3.0.35uboot is 2009.08 qmake and the configure configuration is as follows

 

 

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
#include(../../common/qws.conf)

 

# modifications to g++.conf
#QMAKE_CC = arm-fsl-linux-gnueabi-gcc
#QMAKE_CXX = arm-fsl-linux-gnueabi-g++
#QMAKE_LINK = arm-fsl-linux-gnueabi-g++
#QMAKE_LINK_SHLIB = arm-fsl-linux-gnueabi-g++
QMAKE_CC = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-gcc
QMAKE_CXX = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++
QMAKE_LINK = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++
QMAKE_LINK_SHLIB = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++
QMAKE_LFLAGS += -W1,rpath=/work/imx6/rootfs/usr/lib

 

# modifications to linux.conf
#QMAKE_AR = arm-fsl-linux-gnueabi-ar cqs
#QMAKE_OBJCOPY = arm-fsl-linux-gnueabi-objcopy
#QMAKE_STRIP = arm-fsl-linux-gnueabi-strip

 

QMAKE_AR = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-objcopy
QMAKE_STRIP = /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-strip
QMAKE_INCDIR = /work/imx6/rootfs/usr/include
QMAKE_INCDIR_OPENGL_ES2 = /work/imx6/rootfs/usr/include/GLES2
QMAKE_LIBDIR_OPENGL_ES2 = /work/imx6/rootfs/usr/lib
QMAKE_INCDIR_EGL = /work/imx6/rootfs/usr/include/EGL
QMAKE_LIBDIR_EGL = /work/imx6/rootfs/usr/lib
QMAKE_LIBDIR_GAL = /work/imx6/rootfs/usr/lib
QMAKE_INCDIR_GAL = /work/imx6/rootfs/usr/include/

 

QMAKE_LIBS_OPENGL_ES1 += -lGLESv1_CM -lEGL -lGAL
QMAKE_LIBS_OPENGL_ES1CL += -lGLES_CL -lEGL -lGAL
QMAKE_LIBS_EGL += -lEGL -lGAL
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL

 

IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
IMX6_CFLAGS_RELEASE = -O2 $$IMX6_CFLAGS
QMAKE_CFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
QMAKE_CXXFLAGS_RELEASE += $$IMX6_CFLAGS_RELEASE
QMAKE_CFLAGS_DEBUG += $$IMX6_CFLAGS
QMAKE_CXXFLAGS_DEBUG += $$IMX6_CFLAGS

 

./configure \
-v \
-prefix /home/qt/qt5.7.1 \
-release \
-opensource \
-no-accessibility \
-make libs \
-device linux-imx6-g++ \
-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- \
-optimized-qmake \
-c++std c++1z \
-pch \
-qt-sql-sqlite \
-qt-zlib \
-tslib \
-no-opengl \
-no-sse2 \
-no-openssl \
-no-cups \
-no-glib \
-no-pkg-config \
-no-separate-debug-info \
-I/home/qt/ts/include -L/home/qt/ts/lib

In the existing cross compiler tool version is 4.6.2 compiler QT5.7.1 out the following problems to be solved, if the cross tool version is too low to solve

cc1plus: error :unrecognized command line option '-std=c++11'

Outcomes