libQGLViewer installation
on windows Windows

The installer allows you to evaluate the library from its demonstration examples and its documentation and to start creating your own programs. The library and the examples were here compiled using (and can be used with) MinGW and the open source version of Qt.

download Download the libQGLViewer installer

This source code is released under the GPL license. If you are using libQGLViewer in a commercial application, you need to purchase a libQGLViewer commercial license.

Compilation from the sources

If you want to compile the library from its sources, first download and install the latest Qt version from the Qt Software web site.

Then download and unzip libQGLViewer-2.3.9.zip.

Depending on your environment:

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.

* You can generate the .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.

Visual Studio 6 only: Use File-Open workspace to open the .dsp generated file, and select Release as the Build/Active Configuration.

Qt Installation of the designer plugin

The compilation and installation of the QGLViewer designer plugin is optional. It eases the creation of user interfaces that feature a QGLViewer widget using Qt designer. Simply drag and drop the QGLViewer icon that appears in the designer's Display Widgets tab to add it to your interface:

        designer plugin

When added to your user interface, the widget displays the standard spiral, which can be manipulated when you test your interface. All the viewers' signals and slots are available and can be connected to the rest of 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.

To create your own designer plugin for your derived QGLViewer class, start from this code and change a few lines as explained in the source. See the interface example for an illustration of a user interface that includes a QGLViewer.

Please let me know if you encounter installation problems.

Valid XHTML 1.0! Valid CSS! Last modified on Monday, December 06, 2010.