QGLViewer - RPM installation
Pre-compiled RPMs
The easiest way to install the library is to use the RPM pre-compiled version (compiled with gcc 3.2.2):
> rpm -Uvh libQGLViewer-1.3.6-1.i586.rpm libQGLViewer-devel-1.3.6-1.i586.rpm
Compiling from the sources
You can also rebuild all the sources using the RPM source package:
> rpm --rebuild libQGLViewer-1.3.6-1.src.rpm
> rpm -Uvh /usr/src/RPM/RPMS/i?86/libQGLViewer-*1.3.6-1.i?86.rpm
You may want to tune the sources to fit your local installation:
> rpm -Uvh libQGLViewer-1.3.6-1.src.rpm
Edit /usr/src/RPM/SPECS/libQGLViewer-1.3.6.spec (tune QTDIR, install dir,...)
Uncompress the sources in /usr/src/RPM/SOURCES/libQGLViewer-1.3.6.tar.gz, edit, and recompress.
> rpm -ba /usr/src/RPM/SPECS/libQGLViewer-1.3.6.spec
> rpm -Uvh /usr/src/RPM/RPMS/i?86/libQGLViewer-*1.3.6-1.i?86.rpm
RPM contents
The rpm installs the following files on your machine:
- The library (
libQGLViewer-1.3.6.so
) in /usr/local/lib
- The header files in
/usr/local/include/QGLViewer
- The documentation and the examples in
/usr/share/doc/QGLViewer
The rpm can also be downloaded from
rpmFind.net or
pbone.net.
Troubleshooting
When installing the QGLViewer library, you may be prompted some dependency error messages. Missing
RPMs can be downloaded from these official sites : rpmfind.net,
pbone.net and
Google.
- libGL dependency : If you didn't use an RPM to install
libGL
(e.g. you used
the NVidia script), you may have to add --force
to the installation options.
- Qt-devel : QT is usually shipped in the distribution CDs. You may however have to
install the qt3-devel package (
ls $QTDIR/lib
to find your Qt version).
- Random display : You are probably running a gcc 3.2 optimized version of the library. This
is gcc 3.2 bug, fixed in gcc 3.2.2. The patch should automatically be applied. In case of trouble,
edit
QGLViewer/QGLViewer.pro
, replace release
by debug
and re-compile.
- libqt-mt : QGLViewer is compiled with the multi-thread (qt-mt) version of qt. If you
only have
libqt.so
installed, edit QGLViewer/QGLViewer.pro
, remove
thread
and re-compile.
- libGLcore.so.1 : This package used to be listed in the dependency list, but it should no longer be the case.
- lib3ds : Download the patched
lib3ds-1.2.0-1.i686.rpm
(lib3ds-1.2.0-1.i586.gcc2.rpm for gcc 2.96)
or the sources: lib3ds-1.2.0-1.src.rpm or lib3ds-1.2.0.tar.gz.
- libX3DTK : Download the library from the X3DTK web site.
Please let me know if you
encountered specific installation problems that could be reported on this page.
Last modified on Tuesday, October 21, 2003.