日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內(nèi)最全I(xiàn)T社區(qū)平臺 聯(lián)系我們 | 收藏本站
阿里云優(yōu)惠2
您當(dāng)前位置:首頁 > php開源 > php教程 > Build Qt 4.8 in windows by VS2005

Build Qt 4.8 in windows by VS2005

來源:程序員人生   發(fā)布時間:2015-04-29 07:45:34 閱讀次數(shù):3491次

In this article, I will explain how to build Qt 4.8 in windows by VS 2005. I take Qt 4.8.6 as the building target.


Step 0, Download the Qt 4.8.6, and uncompress the package. For me, the source code of Qt is in C:LibQtqt-everywhere-opensource-src⑷.8.6.


Step 1(skipable): modify the file, qt-everywhere-opensource-src⑷.8.6mkspecswin32-msvc2005, line 23:


QMAKE_CFLAGS_RELEASE = -O2 -MD QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi QMAKE_CFLAGS_DEBUG = -Zi -MDd


to
QMAKE_CFLAGS_RELEASE = -O2 -MT QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi QMAKE_CFLAGS_DEBUG = -Zi -MTd



Step 2: Modify the file, qt-everywhere-opensource-src⑷.8.6srcguikernelqclipboard_win.cpp, line 304:


static bool isProcessBeingDebugged(HWND hwnd) { DWORD pid = 0; if (!GetWindowThreadProcessId(hwnd, &pid) || !pid) return false; const HANDLE processHandle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid); if (!processHandle) return false; BOOL debugged = FALSE; CheckRemoteDebuggerPresent(processHandle, &debugged); CloseHandle(processHandle); return debugged != FALSE; }

To be

static bool isProcessBeingDebugged(HWND hwnd) { #if defined(_MSC_VER) && _MSC_VER <= 1400 return false; #else DWORD pid = 0; if (!GetWindowThreadProcessId(hwnd, &pid) || !pid) return false; const HANDLE processHandle = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid); if (!processHandle) return false; BOOL debugged = FALSE; CheckRemoteDebuggerPresent(processHandle, &debugged); CloseHandle(processHandle); return debugged != FALSE; #endif }




Step 3: Modify the file, qt-everywhere-opensource-src⑷.8.6src3rdpartywebkitSourceWebCoreplatformDefaultLocalizationStrategy.cpp, line 237:


String DefaultLocalizationStrategy::contextMenuItemTagLookUpInDictionary(const String& selectedString) { #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) UNUSED_PARAM(selectedString); return WEB_UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item"); #else #if USE(CF) RetainPtr<CFStringRef> selectedCFString(AdoptCF, truncatedStringForLookupMenuItem(selectedString).createCFString()); return formatLocalizedString(WEB_UI_STRING("Look Up “%@”", "Look Up context menu item with selected word"), selectedCFString.get()); #else return WEB_UI_STRING("Look Up “<selection>”", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString)); #endif #endif }

To be

String DefaultLocalizationStrategy::contextMenuItemTagLookUpInDictionary(const String& selectedString) { #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) UNUSED_PARAM(selectedString); return WEB_UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item"); #else #if USE(CF) RetainPtr<CFStringRef> selectedCFString(AdoptCF, truncatedStringForLookupMenuItem(selectedString).createCFString()); return formatLocalizedString(WEB_UI_STRING("Look Up “%@”", "Look Up context menu item with selected word"), selectedCFString.get()); #else #if(0) return WEB_UI_STRING("Look Up “<selection>”", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString)); #else return WEB_UI_STRING("Look Up <selection>", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString)); #endif #endif #endif }


4. Create a folder, which will contain the built binaries, for me, it be C:LibQtqt-everywhere-opensource-src⑷.8.6uilt. Copy the qt-everywhere-opensource-src⑷.8.6mkspecs folder into this folder.


5. open a VS2005 command line prompt to configuration Qt.



The configure arguments, for me , I use

configuration -platform win32-msvc2005 -shared -debug-and-release -nomake demos -nomake examples -fast -mp -opensource -stl -prefix C:LibQtqt-everywhere-opensource-src⑷.8.6uilt

Press enter key then y, then the nmake file would be generated.


6. After the gernerating has been done, type "nmake" and press enter, wait the binaries has been generated.The building of code cast long time, which depends on how much money you put in your computer.



7. type namke install, to organize the built folder. DO NOT copy "include "folder in the qt source root, that depends on source code heavily. But the target folder(in here it is built folder) is portable, you should use this in your working folder.
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關(guān)閉
程序員人生
主站蜘蛛池模板: 中文字幕一区二区三区精彩视频 | 求av网站 | 国产精品久久久久久久久免费 | 久草成人在线 | 操女人在线 | 免费黄色| 黄色网址免费看 | av在线一区二区三区四区 | 精品久久久影院 | 欧美日韩在线一区二区三区 | 国产一区二区三区精品久久久 | 色五月成人| jizz韩国 | 亚洲综合久久久久 | 日本道久久 | 亚洲国产视频一区 | 国产精品三级在线 | 久热久热 | 精品美女久久久久 | 亚洲欧美中文日韩在线v日本 | 国产99视频精品免费视频7 | 国产成人免费av一区二区午夜 | 一区二区三区中文字幕 | 韩日免费视频 | 欧洲一区二区三区免费视频 | 国产精品久久久久一区二区三区共 | 黄色毛片在线 | 天堂中文网 | 日本成人网址 | 亚洲一区久久 | 国产欧美日韩在线视频 | 91久久久久久久一区二区 | 日韩免费视频在线观看 | 丰满少妇高潮惨叫久久久久 | 日韩精品免费一区二区夜夜嗨 | 亚洲成人免费电影 | 黄色网址 | 久久国产精品99久久久久久牛牛 | 99九九久久 | 国产成人av一区二区三区在线观看 | 亚洲黄色免费 |