谁能告诉我为什么QWT编译失败吗?
下载了最新的版本:
http://sourceforge.net/projects/qwt/files/qwt-beta/6.1.0-rc3/
照着pdf中的安装步骤来的:
B) Win32/MSVC
--------
Check that your Qt version has been built with MSVC - not with MinGW !
Please read the qmake documentation how to convert
your *.pro files into your development environment.
F.e MSVC with nmake:
qmake qwt.pro
nmake
nmake install
If you didn’t enable autobuilding of the examples in qwtconfig.pri
you have to build the examples this way:
cd examples
qmake examples.pro
nmake
Windows doesn’t like mixing of debug and release binaries. Most
of the problems with using the Qwt designer plugin are because
of trying to load a Qwt debug library into a designer release
executable.
It’s not possible to load a plugin, that has been built with MinGW
into a Qt Designer/Creator, that has been built with MSVC ( and v.v ).
This is a common reason for problems,when working with prebuild
binaries of the Qt Creator.
执行第二步:nmake 时出错:
------解决方案--------------------
我用qtcreator打开源码,直接编译运行,很顺利。
------解决方案--------------------
用qtCreator编译