VS2012 編譯 Qt5 0 0 正式版

2022-03-01 19:37:13 字數 935 閱讀 2924

隨著qt5.0正式版的發布,我們終於迎來了qt里程碑式的版本。

下面介紹它的編譯步驟:

在windows 下面使用 git 也有兩種方式,

第一種 安裝 msysgit

第二種 直接在cygwin當中使用git 這個是我最喜歡的方式

2.  必須安裝 perl (至少5.12), python(至少2.7)以及icu最新版

perl 建議使用strawberry 版本 (

python 使用2.x系列

icu (

3.  執行 vs2012 x86 native tools command prompt 批處理

4.  cd 5.0.0\src\qtbase\

5.  使用下面的配置方式

configure -opensource -platform win32-msvc2012 -debug-and-release -opengl desktop

建議使用-opengl desktop 否則會報錯

6.  nmake 開始編譯

總結:qt5.0 的編譯還是很簡單的

在編譯過程中可能會遇到「nmake : fatal error u1073: don't know how to make 'c:\dev\qt\qt_5\qt5\qtbase\lib\translator_commond.lib'」

這個錯誤,現在已經報bug了(

出現這個錯誤是因為angle library庫編譯出錯。你可以在configure中增加 「-no-angle」試試。

附上,我的編譯結果 qt5core.dll 依賴msvcr110.dll 這個dll是vs2012的執行時庫,因此說明是編譯成功的:

使用VS2012編譯Qt 5 5 0

安裝編譯qtwebkit所需的工具 見trac.webkit.org關於buildqtonwindows 安裝 perl,python,ruby,gnuwin32,openssl等 安裝icu庫 download icu library from 解壓縮到c icu 新增 c icu bin and...

VS2012編譯WDM驅動

新版的vs2012中整合了wdk8,而且wdk8中已經沒有之前的build environment了,看來編譯驅動只能通過vs2012了,直接開發wdf驅動很方便直接選取相應的模板即可,若是編譯以前的wdm驅動,則需要做一下轉換,具體步驟如下 開啟vs2012,file open convert s...

mongodb C 驅動VS2012編譯

2 安裝boost庫 1.49版本 解壓後雙擊bootstrap.bat,生成bjam.exe後,cd到目錄c boost下,將boost 1 49更名為boost了 編譯boost。編譯命令 c boost bjam variant release with filesystem with thr...