久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

為 Visual Studio 2012 編譯 Qt 4.8.x

Compiling Qt 4.8.x for Visual Studio 2012(為 Visual Studio 2012 編譯 Qt 4.8.x)
本文介紹了為 Visual Studio 2012 編譯 Qt 4.8.x的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我應該采取哪些步驟來為 Visual Studio 2012 編譯 Qt(版本 4.8.x)?

我已經仔細遵循了這個問題的已接受答案中的說明(適用于 VS 2010),但 WebKit 模塊無法編譯(我不確定編譯期間是否記錄了錯誤消息).

我還看到了這個問題提出了相同的問題,但對于 VS 2012 RC(這就是為什么我認為這不會是一個重復的問題).此外,回答者說他已經為 VS 2011 Beta 編譯了 Qt,因此它可能不適用于 VS 2012 (RTM).編譯需要很多時間,這就是為什么我還沒有嘗試過.

我意識到至少有一個問題是 Qtmkspecs 中沒有 win32-msvc2012 目錄.我是否應該創建該目錄并從 win32-msvc2010 復制文件,可能需要進行一些修改?

另一個子問題是我是否應該在開始編譯之前對 Qt 源代碼進行一些修改.

解決方案

Qt 4.8.3 with Visual Studio 2012 x64(也應該適用于 4.8.2)

  1. 安裝Strawberry Perl

  2. 從 http://qt-project.org/downloads

  3. 轉到 mkspecswin32-msvc2010.打開qmake.conf并修改:

    QMAKE_COMPILER_DEFINES += _MSC_VER=1600 WIN32

    到:

    QMAKE_COMPILER_DEFINES += _MSC_VER=1700 WIN32

  4. qt-everywhere-opensource-src-4.8.3-x64src3rdpartywebkitSourceJavaScriptCorewtfHashSet.h 替換為 this .

  5. 啟動VS2012 x64 Native Tools 命令提示符"

  6. 切換到Qt 4.8.3源目錄(包含configure.exe的目錄)

  7. 運行:

    configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2010

  8. 后繼者:

    nmake

我編寫了一個名為 BlueGo 的工具,它會自動下載 Qt 4.8.3 并使用 VS2012 x64 構建它:http://bluego.vertexwahn.de(也適用于 VS2010 x64)(它只是自動執行我上面描述的)

What steps should I take to compile Qt (version 4.8.x) for Visual Studio 2012?

I already carefully followed the instructions in the accepted answer of this question (which is for VS 2010), but WebKit module failed to compile (I'm not sure if the error message was logged anywhere during compilation).

I also saw this question which asks the same, but for VS 2012 RC (which is why I thought this wouldn't be a duplicate question). Furthermore, the answerer says he has compiled Qt for VS 2011 Beta, so there's a chance it may not work for VS 2012 (RTM). The compilation takes a lot of time, which is why I have not tried it yet.

At least one problem I realized is that there's no win32-msvc2012 directory in Qtmkspecs. Should I just create that directory and copy the files from win32-msvc2010, possibly with some modifications?

Another sub-question is whether I should make some modifications to Qt sources before starting compilation.

解決方案

Qt 4.8.3 with Visual Studio 2012 x64 (should also work with 4.8.2)

  1. Install Strawberry Perl

  2. Download Qt 4.8.3 source code from http://qt-project.org/downloads

  3. Go to mkspecswin32-msvc2010. Open qmake.conf and change:

    QMAKE_COMPILER_DEFINES  += _MSC_VER=1600 WIN32
    

    to:

    QMAKE_COMPILER_DEFINES  += _MSC_VER=1700 WIN32
    

  4. Replace qt-everywhere-opensource-src-4.8.3-x64src3rdpartywebkitSourceJavaScriptCorewtfHashSet.h by this HashSet.h.

  5. Start "VS2012 x64 Native Tools Command Prompt"

  6. Switch to Qt 4.8.3 source directory (the directory that contains configure.exe)

  7. Run:

    configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2010
    

  8. Followed by:

    nmake
    

I programmed a tool called BlueGo which automatically downloads Qt 4.8.3 and builds it with VS2012 x64: http://bluego.vertexwahn.de (also works with VS2010 x64) (it just does what I described above automatically)

這篇關于為 Visual Studio 2012 編譯 Qt 4.8.x的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數據?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫 for() 循環: for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環?)
Reusing thread in loop c++(在循環 C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環形?)
主站蜘蛛池模板: 精品久久99| 天堂中文av | 欧美一区二区三区 | 香蕉久久久 | 国产精品自产拍 | 亚洲日产精品 | 成人网在线 | 91精品国产91久久久久久不卞 | 亚洲欧美在线视频 | 亚洲首页| 国产精品久久久久久久久久久免费看 | 欧美精品v国产精品v日韩精品 | 久久久99精品免费观看 | 在线a视频 | 中文字幕伊人 | 一区二区精品 | 亚洲精品影院 | 在线视频成人 | 伊人久久麻豆 | 狠狠草视频 | 精品免费av| 久久久久久久91 | 欧美日韩亚洲国产 | 欧美激情久久久 | 九九热免费观看 | 欧美极品少妇xxxxⅹ免费视频 | 国产精品一区二区视频 | 在线免费观看视频黄 | 国产精品一区二区三 | 蜜月va乱码一区二区三区 | 亚洲视频在线观看 | 国产亚洲精品美女久久久久久久久久 | 毛片免费看 | 欧美在线观看黄色 | 成人在线视频网站 | 欧美亚洲国产一区 | caoporn免费在线视频 | 91麻豆精品国产91久久久久久 | 中文字幕亚洲视频 | 国产精品免费高清 | 91动漫在线观看 |