4013 views|0 replies

253

Posts

0

Resources
The OP
 

Compile QT5.6.0 [Copy link]

tar -xvf ~/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_ARM-linux-gnueabihf.tar.xz
export ARCH=arm
export CROSS_COMPILE=/home/linyn/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
export PATH=/home/linyn/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH
${CROSS_COMPILE}gcc -v


unzip tslib-master.zip
cd tslib-master/
./autogen.sh
./configure --host=arm-linux-gnueabihf --prefix=/usr/local/tslib
make -j4
sudo make install

tar zxvf qt-everywhere-opensource-src-5.6.0.tar.gz
cd qt-everywhere-opensource-src-5.6.0/
vim qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf

# modIFications to g++.conf
QMAKE_CC = arm-linux-gnueabihf-gcc
QMAKE_CXX = arm-linux-gnueabihf-g++
QMAKE_LINK = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabihf-objcopy
QMAKE_NM = arm-linux-gnueabihf-nm -P
QMAKE_STRIP = arm-linux-gnueabihf-strip
保存

vim qtbase/mkspecs/common/g++-base.conf
std=c++1z 改为 -std=c++11

./configure -v -prefix /usr/local/QtEmbedded-5.6.0-arm -release -opensource -no-accessibility -make libs -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-sql-sqlite -qt-zlib -tslib -no-opengl -no-sse2 -no-openssl -no-nis -no-cups -no-glib -no-pkg-config -no-separate-debug-info -I /usr/local/tslib/include -L /usr/local/tslib/lib
选择和输入yes回车
make -j8
sudo make install

 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list