qt5 build

build for hisi arm

参考此文:http://blog.csdn.net/yihui8/article/details/43730673

3)打开文件qplatformdefs.h增加

#undef O_CLOEXEC

              此处主要为解决:编译过程中找不到accept4函数问题(undefined reference to ‘accept4’)

 

 

./configure -no-gtkstyle  -static -no-gui -no-icu -verbose -no-c++11 -xplatform  linux-arm-hisi  -confirm-license -opensource -nomake examples -nomake tests -prefix /opt/Qt/hisi -skip activeqt -skip androidextras -skip connectivity -skip declarative -skip doc -skip graphicaleffects -skip imageformats -skip location -skip macextras -skip multimedia -skip quick1 -skip quickcontrols -skip script -skip sensors -skip serialport -skip svg -skip tools -skip translations -skip webkit -skip webkit-examples -skip winextras  -skip x11extras -skip xmlpatterns

 

 

http://blog.csdn.net/zhx6044/article/details/38373687

你可以详细的根据自己的需要配置,其实大部分的配置我都没看过。在qte-5.3.1文件夹下运行这个脚本就行。

然后将_install文件夹下的lib,plugin和include拷贝到你想放置的地方,我放置在opt/qte-5.3.1下。tslib生成usr文件夹,我直接拷贝到arm板的根目录下。对/etc/profile进行配置,如下

export TSLIB_ROOT=/usr
export QT_ROOT=/opt/qte-5.3.1
export TSLIB_TSDEVICE=/dev/touchscreen
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib
export QWS_MOUSE_PROTO=tslib:/dev/touchscreen
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$QT_ROOT/lib:$LD_LIBARAY_PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_FONTDIR=$QT_ROOT/lib/fonts
export LD_PRELOAD=/usr/lib/preloadable_libiconv.so:$TSLIB_ROOT/lib/libts.so
export QT_QPA_GENERIC_PLUGINS=tslib

 

 

http://mamicode.com/info-detail-898290.html

 

 

 

qt5 buil for windows

 

REM Set up \Microsoft Visual Studio 2013, where <arch> is \c amd64, \c x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"  x86
SET _ROOT=D:\Qt\qt-everywhere-opensource-src-5.5.1
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
set INCLUDE=%INCLUDE%;C:\OpenSSL-Win32\include;
SET LIB=%LIB%;%_ROOT%\openssl\lib;


configure -mp -confirm-license -opensource -platform win32-msvc2013 -release -static -prefix "D:\Qt\5.5\msvc2013-static" -opengl desktop -no-qml-debug -no-angle -nomake tests -nomake examples -skip androidextras -skip connectivity -skip declarative -skip doc -skip graphicaleffects  -skip location -skip macextras -skip multimedia -skip quick1 -skip quickcontrols -skip script -skip sensors -skip serialport -skip svg -skip tools -skip translations -skip webkit -skip webkit-examples  -skip x11extras -skip xmlpatterns -skip webchannel -skip webengine -openssl -openssl-linked -I "C:\OpenSSL-Win32\include" -L "C:\OpenSSL-Win32\lib\VC\static"  OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32" OPENSSL_LIBS_DEBUG="-lssleay32MTd -llibeay32MTd" OPENSSL_LIBS_RELEASE="-lssleay32MT -llibeay32MT"

 

 

qt5.6 build for linux

./configure  -confirm-license -opensource -static -prefix "/home/lht/Qt/5.6/gcc_static"  \
-no-qml-debug -nomake tests -nomake examples -skip 3d -skip activeqt -skip androidextras \
-skip canvas3d -skip declarative -skip doc -skip enginio -skip graphicaleffects  \
-skip location -skip macextras -skip multimedia -skip quickcontrols -skip quickcontrols2 \
-skip script -skip sensors  -skip svg -skip tools  -skip wayland -skip webengine \
-skip webview -skip winextras -qt-xcb

make

make install

 

转载于:https://my.oschina.net/u/1177171/blog/502081

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值