windows VS2013 編譯安裝QWT6.1

來源:互聯網
上載者:User

標籤: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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.