標籤:blog pre end repo AC 利用 abs .cpp get
1. 下載QWT從官網
For getting a snapshot with all bugfixes for the latest 5.2 release:
svn export svn://svn.code.sf.net/p/qwt/code/branches/qwt-5.2
For getting a snapshot with all bugfixes for the latest 6.1 release:
svn export svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.1
2. 利用visual studio 2013開啟qwt.pro工程,編譯時間候出現問題
Moc’ing qwt_abstract_legend.h…命令文法不正確。error MSB6006: “cmd.exe”已退出,代碼為 255。
3.關閉項目,開啟檔案 qwt.vcxproj 和 qwt_designer_plugin.vcxproj,將所有的 “ %40echo moc .* && ”檔案刪除,或者使用另外一種方式There was a bug in the Visual Studio add-in when using subdirs. Try to change this in the qwt.pro file before importing:
SUBDIRS = \ src textengines
修改成為
SUBDIRS = src textengines
Then, do the import again. You could also use a fixed version of the Visual Studio add-in. Here you can find the corresponding issue on the Qt bug tracker: Qt Visual Studio Add-in 1.1.0 doesn‘t parse QTDIR correctly in a project with SUBDIRs
但是測試時候發現直接修改次級目錄的方式還是不能使用,或許安裝Visual studio add-in 外掛程式有效,但是我直接刪除了裡面的 %40echo moc .* &&
4. 編譯之後,進行配置
5.配置1. 將lib目錄下的qwtd.dll、qwt.dll拷貝到$(QTDIR)/bin和$(QTDIR)/lib目錄下2. 將designer\plugins\designer目錄下的qwt_designer_plugin.dll和qwt_designer_plugin.lib拷貝到$(QTDIR)\plugins\designer目錄下。3. 將src目錄下的所有.h和.cpp放入一個空檔案夾QWT中,再將該檔案夾拷貝到$(QTDIR)\include目錄下。
windows VS2013 編譯安裝QWT6.1