1. 程式人生 > >windows VS2013 編譯安裝QWT6.1

windows VS2013 編譯安裝QWT6.1

ubd cor text his gre ror div before eas

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