I have attached an MSVS 2008 project file that I use to build Qwt 3D. You can probably import it into MSVS 2010 and get it to work. The only thing it requires is an environment variable $(QTDIR) that points to the top level of your Qt installation.
There are a couple of other minor changes. In qwt3d_plot.cpp, replace the implementation of the Plot3D constructor with this:
/*!
This should be the first call in your derived classes constructors.
*/
#if QT_VERSION < 0x040000
Plot3D
::Plot3D( QWidget* parent,
const char* name
)#else
#endif
/*!
This should be the first call in your derived classes constructors.
*/
#if QT_VERSION < 0x040000
Plot3D::Plot3D( QWidget* parent, const char* name )
: QGLWidget( parent, name )
#else
Plot3D::Plot3D( QWidget * parent, const QGLWidget * shareWidget)
: QGLWidget( parent, shareWidget)
#endif
To copy to clipboard, switch view to plain text mode
In qwt3d_openglhelper.h, the includes should be changed to this:
#include "qglobal.h"
#if QT_VERSION < 0x040000
#include <qgl.h>
#else
#include <QtOpenGL/qgl.h>
#include <GL/glu.h>
#endif
#include "qglobal.h"
#if QT_VERSION < 0x040000
#include <qgl.h>
#else
#include <QtOpenGL/qgl.h>
#include <GL/glu.h>
#endif
To copy to clipboard, switch view to plain text mode
Other than that, I am building the library from the original 2004 - 2005 sources that are the most recent on SourceForge. This also presumes that you have an OpenGL installation on your PC, which you almost certainly do if you can build Qt from sources.
Bookmarks