自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

詳解Qt中VS 2010插件安裝教程

移動(dòng)開(kāi)發(fā)
Qt中VS 2010插件安裝是本文要介紹的內(nèi)容,主要是來(lái)了解QT中插件的問(wèn)題,文章通過(guò)VS 2010環(huán)境來(lái)學(xué)習(xí)插件的安裝,具體內(nèi)容來(lái)看詳解。

QtVS 2010插件安裝是本文要介紹的內(nèi)容,主要是來(lái)了解QT插件的問(wèn)題,Qt默認(rèn)使用mingw編譯,不支持VS編譯器,因此,如果需要用VS開(kāi)發(fā),需要將Qt重新編譯。前提:Qt已安裝(http://qt.nokia.com/downloads-cn),VS已安裝。

1、下載Visual Studio Add-in

  1. http://qt.nokia.com/downloads-cn 

2、安裝Visual Studio Add-in

3、重新編譯Qt

(1)用Visual Studio Command Prompt進(jìn)行編譯。

開(kāi)始菜單 --> Microsoft Visual Studio 2008 --> Visual Studio Tools --> Visual Studio Command Prompt。

注意:是使用Visual Studio Command Prompt,而不是直接的cmd Dos窗口。

(2)進(jìn)入Qt的安裝目錄后,執(zhí)行CD Qt,進(jìn)入Qt的根目錄。

  1. cd C:\Qt\2010.05\qt 

(3)運(yùn)行命令 configure -platform

win32-msvc2008。o(選擇opensource模式)回車(chē),Y(同意license)回車(chē)編譯時(shí)間我用了半個(gè)小時(shí)。
   
(4)運(yùn)行命令nmake,需要大概3個(gè)小時(shí)。

編譯期間會(huì)產(chǎn)生編譯錯(cuò)誤,我編譯的是Windows 7下的VS2008版本。解決方法如下:

錯(cuò)誤:

  1. api\qscriptextensionplugin.h(43): Error: Undefined   
  2. interface  
  3. NMAKE : fatal error U1077: 'C:\Qt\2010.05\qt\bin\moc.exe' : return   
  4. code '0x1'  
  5. Stop.  
  6. NMAKE : fatal error U1077: '"c:\Program Files\Microsoft   
  7. Visual Studio 9.0\VC\BIN  
  8. \nmake.exe"' : return code '0x2'  
  9. Stop.  
  10. NMAKE :   
  11. fatal error U1077: 'cd' : return code   
  12. '0x2'  
  13. Stop. 

解決:

刪除

  1. C:/Qt/2010.05/qt/src/script/tmp/moc/debug_shared/mocinclude.tmp  
  2. C:/Qt/2010.05/qt/src/script/tmp/moc/release_shared/mocinclude.tmp 

其他錯(cuò)誤解決:

刪除

 

  1. C:/Qt/2010.05/qt/src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\mocinclude.tmp   
  2. C:/Qt/2010.05/qt/src\3rdparty\webkit\WebCore\tmp\moc\release_shared\mocinclude.tmp  
  1. 參考:http://tech.it168.com/a2010/1217/1139/000001139431_1.shtml  
  2. http://developer.qt.nokia.com/wiki/QtVSAddin    
  3. (通過(guò)源碼進(jìn)行編譯配置)  
  4. http://blog.csdn.net/hongqiang200/archive/2010/09/09/5873585.aspx      
  5. (編譯錯(cuò)誤解決) 

4、配置VS。

打開(kāi)VS2008。Qt --> Options,增加Path:C:\Qt\2010.05\qt。

打開(kāi)pro文件或者新建Qt項(xiàng)目即可。
  
如果之前是mingw版本,那么在增加path時(shí)可能出現(xiàn):qt in the given path was built using mingw。
  
解決方法:刪除C:\Qt\2010.05\qt\lib下的libqtmain.a和libqtmaind.a,因?yàn)槭峭ㄟ^(guò)找這2個(gè)文件判斷是否是mingw編譯版本。(可剪切到其他地方,以防再需要回到mingw版本)。

小結(jié):詳解QtVS 2010插件安裝教程的內(nèi)容介紹完了,希望通過(guò)本文的學(xué)習(xí)能對(duì)你有所幫助!

責(zé)任編輯:zhaolei 來(lái)源: 互聯(lián)網(wǎng)
相關(guān)推薦

2011-06-23 10:16:55

VS2010 QT 4.7.2 QT

2011-09-01 16:01:25

Qt插件

2011-06-24 09:13:30

QT SDL

2011-06-24 15:16:33

Qt 庫(kù) 插件

2011-06-24 17:05:07

QT QT 4.7.3 windows

2011-06-23 09:54:00

VS2010 Qt 4.7.2 Qt

2010-12-16 10:00:20

QtVisual Stud

2011-06-27 16:59:19

Qt 動(dòng)態(tài) 插件

2011-06-24 10:54:34

Qt Mysql

2010-05-06 17:46:47

2011-09-07 16:28:46

QT WidgetQWidget

2011-06-27 17:24:37

Qt 插件

2011-09-01 14:04:45

QT Webkit插件

2011-06-24 09:39:05

2011-06-24 08:46:37

Linux Qt x11 4.5

2009-07-10 16:10:38

MyEclipse 7

2011-06-14 11:48:38

Webkit QT

2011-07-04 15:48:57

Qt 桌面

2012-09-11 15:20:08

MooseFS

2011-09-06 15:38:20

QT安裝
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)