Building Qwt 5.2.0 on Windows
Hi all,
I have downloaded Qwt 5.2.0 and want to build it using Visual Studio 2008 on Windows Vista x64 running the Intel Compiler. However when first tried to build I got an error from the MOC I 'fixed' this simply by removing a leading underscore, a redundant linefeed and added a missing $ from the (QTDIR) macro. Now, when I try to build I get a 'Catastrophic error: could not open source file "moc\moc_qwt_plot.cpp"'.
Further investigation shows that the MOC is silently failing. Using the Compile option on a header file results in :
1>Running MOC Compiler on qwt_plot.h ... (Microsoft VC++ Environment)
1>Build log was saved at "file://C:\Users\William\Perforce\Projects\QWT\src\obj\Bui ldLog.htm"
1>qwt - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
But there is no moc_qwt_plot.cpp file generated in the src\moc directory. If I delete the moc directory and re-compile the moc directory gets recreated but there is still no output!
Anyone got any ideas about this? I'd appreciate your input.
--
Thanks
Re: Building Qwt 5.2.0 on Windows
I would suggest you to use the command line to compile qwt because it works for me.
first, you can find the 'visual studio 2008 command prompt' in Visual Studio tools.
Then switch to the source folder.
do the following command as described in INSTALL
qmake qwt.pro
nmake
if you want to build debug version, you can modify the qwtconfig.pri first.
Re: Building Qwt 5.2.0 on Windows
Hi all,
Just an update to this, that I should have posted ages ago. I got this to build by modifing the Custom Build entries for the MOC Compiler. I hadn't noticed that when the Project was loaded (converted) the $(QTDIR) macro was incorrectly output as _(QTDIR).
Hope this helps someone in the future.
--
Woogoo.