Home | Documentation | Download | Screenshots | Developer |
libQGLViewer can easily be installed on many architectures. It was successfully installed on Linux, Windows, Mac OS X, SGI IRIX and QNX. Let me know if you encountered problems that could be reported on this page or if you compiled it on another architecture.
libQGLViewer is distributed under the GNU-GPL license and is distributed as-is with no guarantee.
Select your architecture :
or see the Qt section
Previous versions of the library are still available in the repository.
rpm -Uvh libQGLViewer-1.3.6-1.i586.rpm libQGLViewer-devel-1.3.6-1.i586.rpm
> tar -xzf libQGLViewer-1.3.6.tar.gz (release 1) > cd libQGLViewer-1.3.6/QGLViewer > qmake [INCLUDE_DIR=...] [LIB_DIR=...] > make > make install
config.h
and QGLViewer.pro
./usr/local/include/QGLViewer
and
/usr/local/lib
.INCLUDE_DIR
and LIB_DIR
parameters let you customize these installation paths (useful if you do not have root
privileges).qmake PREFIX=dir
is equivalent to qmake LIB_DIR=dir/lib
INCLUDE_DIR=dir/include
(example : qmake PREFIX=$HOME
).glut
library :
uncomment a line in QGLViewer.pro
as explained.glut
can be installed with a rpm or apt-get
libglut3-dev
).> cd ../examples > qmake [INCLUDE_DIR=...] [LIB_DIR=...] (use the same parameters as above, or use qmake INCLUDE_DIR=../.. LIB_DIR=../../QGLViewer if you didn't "install" the library) > makeNote : You may have to
setenv LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
since recent distributions (Mandrake 9.2) don't have it.
Attention : Recent gcc compilers (Mandrake 9.2) have a bug and you need to replace
release
by debug
in the CONFIG += ...
line of QGLViewer.pro
.
GL
(and GLUT
with old Qt) path may have to be tuned in config.h
and
QGLViewer.pro
.
The distributed version is designed for non-threaded versions of Qt. If you compiled Qt with the
thread option, simply look for thread
in the macx/CONFIG
section of
.pro
files.
QGLViewer
directory.QGLViewer.pro
to create a
.dsp
file.QGLViewer.pro
by QGLViewer.Qt2.3.pro
and then use Generate Qt project.qmake -win32 -t vclib -o libQGLViewer.dsp QGLViewer.pro
in a DOS console instead..dsp
workspace and make sure you select
Release
as the Build
active configuration.
/GX
in Project/Settings/C-C++/General/Project Option to limit warnings.
QGLViewer.dll
in a standard library directory, such as C:\WINNT\system32
.libQGLViewer-1.3.6
to your
Project-QGLViewer properties-C/C++-General-Additional Include Directories
(Tools-Options-Directories-include files with MSVC 6.0).libQGLViewer-1.3.6\QGLViewer\Release
to your
Linker-General-Additional Library Directories
(Tools-Options-Directories-Library files with MSVC 6.0)..pro
files into .dsp
workspaces.
.pro
and remove the end of the file as explained.
If your Qt version is lower than 3.1, install the
GLUT library
(add the paths to
GLUT
in your Tools-Options-Directories configuration if needed).
October 2003 : The free Qt-2.3 version is no longer distributed by Qt :(
January 2004 : However, this trolltech web page provides a link.
An option is to install the cigwin linux emulator, with the Qt-KDE port. You should then be able to use the latest Linux version of libQGLViewer. This was successfully tested, althought Qt had to be recomplied.
qt3-devel
(Mandrake and redhat rpm) or aptget
libqt3-mt-dev
(debian) development package. The complete Qt/X11 non commercial version can
also freely be downloaded.
Try to compile a simple Qt example and check the Qt FAQ page in case of problem. You will probably need to set some Qt variables:
tcsh > setenv QTDIR /usr/lib/qt3 (/usr/share/qt on debian) bash > export QTDIR=/usr/lib/qt3 (/usr/share/qt on debian) > set PATH=${PATH}:${QTDIR}/bin/ > set LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${QTDIR}/lib
If only the non-threaded version of Qt is installed on your machine (libqt.so
instead
of libqt-mt.so
), simply remove thread
from QGLViewer/QGLViewer.pro
and examples' .pro
.
Frames
in KeyFrameInterpolator
are
hence disabled.
,br/>
With MS Visual Studio 6, you need to check the Tools/Customize/Add-ins and Macro Files/QMsDev Add
in box in MSDev in order to use Qt.
Please let me know if you encountered specific installation problems that could be reported on this page.