導航:首頁 > 源碼編譯 > 單獨交叉編譯qtwayland

單獨交叉編譯qtwayland

發布時間:2022-05-22 02:05:10

『壹』 qt creator 4 與 qt creator 5都有哪些區別

1. Qt5加入了JSON支持

2.Qt5支持的平台有: 桌面平台:Windows, Linux/X11, Mac OS X 嵌入式平
台: Embedded Linux(DirectFB, EGLFS, KMS, Wayland), WIndows Embedded(Compact and Standard), Real-Time OS(QNX, VxWorks, INTEGRITY) 移動平台:Android, iOS, Windows 8(WinRT), BlackBerry 10

3. QtQuick2, 新增了許多新QML Elements,要求有OpenGL(ES)或DirectX支持,還有關於圖形效果、多媒體方面的加 強

4. 新增了QGuiApplication 和QWindow,用於QtQuick,如果是開發傳統的基於QWidgrets的程序,仍然使用以前的QApplication和QMainWindow

5. 新的QtGui中只包含了少量GUI核心的內容,原來Qt4中的QtGui中包含的大多數Widgets、ItemView、GraphicsView相關內容都被移到了QtWidgets模塊中,所以在Qt5中,如果開發QtQuick2應用,就可以去除QtWidgets模塊了,不是必須的了。

6. 單獨的QtMultimedia模塊,可在C++和QML中使用,支持audio、video、radio、mediaplayer、camera等介面

7. QtNetwork模塊中新增了bearer managemtn,來控制系統的(網路等)連接狀態

8. QtQml模塊提供基本的QML引擎、類型、對象等以及與其有關的C++支持,而QtQuick模塊則提供了基本的QML Elements。

總體來說從Qt4到Qt5的升級比較平穩,不會像Qt3到Qt4那樣相當於重新寫了一遍。並且QtQuick的升級也算平穩(C++中主程序要有所變化),還將一些原來QtMobility中的內容移到了Qt5中。
開始支持主流移動平台(Android、iOS、Window 8(WinRT)、BlackBerry 10),Symbian已經不再更新發展,就讓
它遠去吧。至於MeeGo/Sailfish,應該將它歸類到Linux/X11中去,嵌入式平台中則增加了QNX(其實BlackBerry 10也是
基於QNX的)。

目前Qt還在開發中,內部還是有Bug之類的。建議以Qt4.8進行開發。
網上的資料多以Qt4為主。

『貳』 如何運行 qt wayland 程序

在Window System(如上,通常是X)之上,有一系列的Desktop Environment(桌面環境)

『叄』 討論上Windows平台怎麼編譯Qt5

Qt5的編譯官方有一篇wiki:http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git
簡要的總結下我的體會,歡迎補充完善、批評指正。

1.First clone the top-level qt5 git repository:

git clone git://gitorious.org/qt/qt5.git qt5

這一行不用說了,自然是將Qt5的代碼克隆。不過,如果你只是初次克隆Qt5的代碼,會很驚訝:為何克隆後的代碼只有十幾MB?
原來,Qt5已經實現了Qt的模塊化,詳見:http://labs.qt.nokia.com/2011/05/12/qt-moles-maturity-level-the-list/
所以可以在克隆得到的Qt5源碼根目錄下看到:.gitmoles 文件,其內容部分摘錄如下:
[submole "qtbase"]
path = qtbase
url = git://gitorious.org/qt/qtbase.git
[submole "qtsvg"]
path = qtsvg
url = git://gitorious.org/qt/qtsvg.git
[submole "qtdeclarative"]
path = qtdeclarative
url = git://gitorious.org/qt/qtdeclarative.git
...
這時,有Git基礎的朋友一定會想到:
git submole init
git submole update
不過,請不要這樣做!

2. Following the README file we initialize the repository. This clones the various sub-moles of Qt5:
./init-repository

這是一個perl腳本。如果是在msys-git下,會發現Perl的版本不夠。
我們需要安裝一個Windows版本的Perl:http://www.activestate.com/activeperl/downloads
安裝好以後,Perl就添加到PATH環境變數中去了。
在MSVC的控制台下執行:
perl init-repository --help

注意,不是直接執行init-repository,要用perl來執行它。看看幫助:大致了解下有哪些功能。

3. 注意它的三個小提示:
Hint1: If you』re going to contribute to Qt 5, you』ll need to pass the —codereview-username <Jira/Gerrit username> option to set up a 「gerrit」 remote for all the sub-moles.
Hint2: If you』re having problems downloading the webkit repository (which is quite big), you can pass —no-webkit.
Hint3: If you』re behind a firewall, pass —http

4. 我的方法:
perl init-repository -f --codereview-username loaden

這樣就可以實現子模塊的批處理了。特別要注意的是:在處理這些子模塊時,其實是git clone了這些子模塊,以致於他們可以獨立使用。在qt5\qtbase目錄下可以找到.git目錄。
這與git submole update的結果是不一樣的!!
同時我使用了codereview的用戶名,是為了可以創建一個名為gerrit的遠程倉庫,可以將貢獻的代碼推送進去,類似:
git push gerrit HEAD:refs/for/master

5. 源碼下載是非常慢的,因為QtWebkit達到了1.7GB。源碼下載完成後,進入Qt5源碼目錄,配置環境變數:
set PATH=%CD%\qtbase\bin;%PATH%

之後echo看一下結果是否正確:
echo %PATH%

6. 建議直接在Qt5的源碼目錄下執行配置!
configure -confirm-license -opensource -release -shared -platform win32-msvc2010 -fast -no-stl -no-qt3support -nomake examples -nomake demos -nomake tests

7. 編譯全部模塊,直接執行nmake就可以了。如果只編譯一個模塊,可以這樣:
nmake mole-qtbase

雙擊打開Qt5目錄下的Makefile文件,可以看到有這些模塊:
SUBTARGETS = \
mole-qtbase \
mole-qtsvg \
mole-qtphonon \
mole-qtxmlpatterns \
mole-qtdeclarative \
mole-qttools \
mole-qttranslations \
mole-qtdoc \
mole-qlalr \
mole-qtqa \
mole-qtlocation \
mole-qtactiveqt \
mole-qtsensors \
mole-qtsystems \
mole-qtmultimedia \
mole-qtfeedback \
mole-qtquick3d \

mole-qtdocgallery \
mole-qtpim \
mole-qtconnectivity \
mole-qtwayland \
mole-qtjsondb \
sub-qtwebkit-pri \
mole-qtwebkit-examples-and-demos

閱讀全文

與單獨交叉編譯qtwayland相關的資料

熱點內容
ubuntu壓縮zip 瀏覽:2
vigenere演算法的方法是什麼 瀏覽:666
pdf保護破解 瀏覽:341
仿微信聊天系統源碼廣州公司 瀏覽:106
怎麼查看我的世界伺服器日誌 瀏覽:430
怎麼從程序員走到成功 瀏覽:824
把軟體放入文件夾中如何移出 瀏覽:209
紅包源碼企業即時聊天軟體 瀏覽:581
xp安裝python 瀏覽:10
西門子參數編程讀取半徑值 瀏覽:403
洗首飾解壓小視頻 瀏覽:966
01背包問題的演算法解決 瀏覽:373
sd卡放哪個文件夾 瀏覽:301
解釋器模式java 瀏覽:104
android垂直自動滾動條 瀏覽:153
計算器java小程序 瀏覽:27
java的簡稱 瀏覽:68
雲伺服器公網ip地址 瀏覽:581
php對資料庫操作 瀏覽:237
java爬圖片 瀏覽:868