Windows,linux下編譯qt源碼(比較簡單)

來源:互聯網
上載者:User

標籤:ase   deb   logs   demo   nal   uil   yum   簡單   make   

一、linux下靜態編譯qt源碼

1.取到qt源碼並解壓到檔案夾

2.cd到qt目錄下

3.使用configure產生makefile

./configure
–prefix /opt/qtstatic –static –release -nomake examples  --nomake demos
-nomake docs -continue

4.待執行完之後執行make

5.makeinstall

參考:http://www.cnblogs.com/qianyuming/archive/2011/03/09/1978747.html

http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html

編譯qt程式需要在工程中添加該版本的qt庫,然後到pro工程檔案夾中目錄下邊的configure檔案修改qt的路徑為新編譯qt版本,之後編譯qt程式。

二、Windows下編譯qt源碼,用vs2010進行的編譯

1.取到qt源碼並解壓到檔案夾

2.運行vs2010命令列工具command,cd到qt目錄下

3.執行命令configure -platform win32-msvc2010 -debug-and-release -fast -opensource -developer-build -confirm-license -nomake examples -nomake demos -nomake docs -nomake translations
-no-openssl -webkit -no-qt3support

4.執行nmake

參考:http://hi.baidu.com/dbzhang800/item/44a2a427505e594647996247

同樣編譯qt程式需要更改qt版本,修改路徑即可。

http://www.yaoguangkeji.com/a_G0ymd7a0.html

Windows,linux下編譯qt源碼(比較簡單)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.