QGLViewer/QGLViewer.pro
qmake QGLViewer.pro
instead and open the generated vcproj
file..dsp
generated
file, and select Release as the Build/Active ConfigurationQGLViewer224.dll
* in a library
directory, such as C:\WINDOWS\system32
(or C:\WINNT\system32
with Windows
2000). Alternately, you can copy it to every application directory
To create a static version of the QGLViewer library, add QGLVIEWER_STATIC=yes
at the
beginning of the .pro
file before you open it.
Include
and Library
Project-Properties*, and copy glut32.dll
in a
library directory (as detailed 6 above).
* Names are given in .NET standards, and differ from those of Visual 6. Here is a correspondence table:
.NET | Visual Studio 6 |
---|---|
Tools - Add-Ins manager - QtNet | Tools - Customize - Add-ins and Macro Files/QMsDev Add in |
Open Qt Project | Generate Qt Project |
QGLViewer224.dll | QGLViewer2.dll or QGLViewer.dll |
Project-Properties-C/C++-General-Additional Include Directories | Tools-Options-Directories-Include files |
Project-Properties-Linker-General-Additional Library Directories | Tools-Options-Directories-Library files |
The installation procedure is very similar to the one detailed in the linux section. Download and unzip libQGLViewer-2.2.4-1.zip and then use the "Qt 4.x command prompt" installed in the Start menu and type:
cd \path\to\libQGLViewer-2.2.4-1\QGLViewer qmake makeCopy the resulting
dll
(created in the Release
directory) to a system
shared directory such as C:\WINDOWS\system32
(or C:\WINNT\system32
with
Windows 2000). Alternately, you can copy it to every application directory. Use qmake "QGLVIEWER_STATIC=yes"
to create a static library instead.
Use the same procedure to compile the examples (the resulting .exe
is created in the Release
directory as well):
cd ..\examples\anyExampleDirectory qmake make
The free Qt 2.3 version
is no longer supported by Trolltech, and it does not give a correct picture of
the actual Qt functionalities. libQGLViewer is however fully functional with this Qt version.
Note that Qt should not be installed in a directory whose name contains
spaces (such as Program Files
). You also need to download and install the
GLUT library as explained above.
QGLViewer.Qt2.3.pro
instead.
With Visual Studio 6:
Project created
dialog is displayed when you open QGLViewer.pro
,
try to restart Visual Studio with Administrator privileges.qglviewer.h
and remove the word slots before
saveSnapshot()
as explained around line 515./GX /GR
in Project-Settings-C-C++, Project Options for
exceptions and dynamic casts.glut32.lib
to Projects-Settings-Link-Object/library modules.illegal call
error messages during the compilation of
className()
in moc files. Simply remove the first qglviewer::
just after
strcmp(
and recompile.error C2061: syntax error : identifier 'KeyFrameInterpolator'
error message. Simply replace
const(*)
by const*
in the moc file to fix this (thanks Juergen).thread
from the
CONFIG
line in QGLViewer.pro
.
Then compile QGLViewer as explained in the Unix installation page.
You should rename the generated cygQGLViewer-1.dll
file to
libQGLViewer.dll
and copy it in the C:\WINDOWS\system32
directory. Note
that cygqt-3.dll
and cygqui-1.dll
(located in $(QTDIR)/bin
or
$(QTDIR)/lib
) should also be copied in that directory. Thanks Jean-Gui for these
details.
The latest Qt 4 version is available for free for open source development. It comes with the
The Qt 2.3 version can also be used (see patches for .NET integration).
Visual Studio 6 users must check the Tools/Customize/Add-ins and Macro Files/QMsDev Add in box.Display
widget tab, as a standard Qt widget:
Ctrl+T
or Ctrl+R
with Qt 4). 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.
Compile and install the resulting plugin library in $QTDIR\plugins\designer
and/or
C:\Program Files\Trolltech\Qt VS Integration\plugins
to use it with Visual Studio
integrated designer (may require administrator privileges). Note that you also have to install
the QGLViewer dll in system32
(as described above). Note that this procedure seems
to not be sufficient on certain configurations, any explanation is more than welcome.
With Qt version 3, an alternative to this plugin is to add a "Custom Widget" using the
Tools/Custom designer menu. Select Load Descriptions... and provide the
qglviewer.cw
custom widget description file, located in the QGLViewer header files
directory. You can customize this description with your own signals and slots and change the header
file path.
Please let me know if you encounter installation problems.