Download the libQGLViewer installer
Then download and unzip libQGLViewer-2.3.9.zip.
Depending on your environment:cd \path\to\libQGLViewer-2.3.9\QGLViewer qmake mingw32-make
QGLViewer/QGLViewer.pro
project file and "build all".QGLViewer/QGLViewer.pro
and build the solution
*. This page explains how to use Qt with Visual Studio.
Then copy the generated QGLViewer2.dll
and QGLViewer2d.dll
to a system
shared directory such as C:\Windows\System32
. An other option is to copy the dll
in every executable's directory.
See the compilation with libQGLViewer page for details on examples' compilation.
.vcproj
file by typing qmake -t vclib QGLViewer.pro -spec win32-msvc2010
(adapt to your configuration) in a Qt command prompt window.
A LNK4068 /MACHINE
warning message can be fixed by editing Project - Properties of QGLViewer - Configuration properties - Link editor - Advanced - Target Computer.
.dsp
generated file, and select Release as the Build/Active Configuration.
Display Widgets
tab to add it to your interface:
To compile the plugin, open the designerPlugin.pro
file to create your workspace.
Install the resulting plugin library (qglviewerplugin.dll
) in $QTDIR\plugins\designer
and/or
C:\Program Files\QtSoftware\Qt VS Integration\plugins
to use it with the Visual Studio
integrated designer. Note that you also have to install the QGLViewer2.dll
in C:\Windows\System32
(as described above).
Although successfully tested, this procedure does not seem to be sufficient with certain configurations, any explanation is more than welcome.
Please let me know if you encounter installation problems.