qt5 build

build for hisi arm

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

3)打開文件qplatformdefs.h增長linux

#undef O_CLOEXECandroid

              此處主要爲解決:編譯過程當中找不到accept4函數問題(undefined reference to ‘accept4’)c++

 

 

./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 xmlpatternsweb

 

 

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

你能夠詳細的根據本身的須要配置,其實大部分的配置我都沒看過。在qte-5.3.1文件夾下運行這個腳本就行。windows

而後將_install文件夾下的lib,plugin和include拷貝到你想放置的地方,我放置在opt/qte-5.3.1下。tslib生成usr文件夾,我直接拷貝到arm板的根目錄下。對/etc/profile進行配置,以下api

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=tslibbash

 

 

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

 

 

 

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
相關文章
相關標籤/搜索