<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>QGLViewer - RPM repository</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="qglviewer.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="images/qglviewer.ico" type="image/x-icon" /> <link rel="icon" href="images/qglviewer.icon.png" type="image/png" /> </head> <body> <table class="banner"> <tr> <td align="center"><a class="qindex" href="index.html"><b>Home</b></a></td> <td align="center"><a class="qindex" href="refManual/hierarchy.html"><b>Documentation</b></a></td> <td align="center"><a class="qindex" href="download.html"><b>Download</b></a></td> <td align="center"><a class="qindex" href="examples/index.html"><b>Screenshots</b></a></td> <td align="center"><a class="qindex" href="developer.html"><b>Developer</b></a></td> </tr> </table> <h1>QGLViewer - RPM installation</h1> <h2>Pre-compiled RPMs</h2> The easiest way to install the library is to use the RPM pre-compiled version (compiled with gcc 3.2.2): <pre> > rpm -Uvh <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/libQGLViewer-1.3.6-1.i586.rpm">libQGLViewer-1.3.6-1.i586.rpm</a> <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/libQGLViewer-devel-1.3.6-1.i586.rpm">libQGLViewer-devel-1.3.6-1.i586.rpm</a> </pre> <h2>Compiling from the sources</h2> You can also rebuild all the sources using the RPM source package: <pre> > rpm --rebuild <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/libQGLViewer-1.3.6-1.src.rpm">libQGLViewer-1.3.6-1.src.rpm</a> > rpm -Uvh /usr/src/RPM/RPMS/i?86/libQGLViewer-*1.3.6-1.i?86.rpm </pre> You may want to tune the sources to fit your local installation: <pre> > rpm -Uvh <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/libQGLViewer-1.3.6-1.src.rpm">libQGLViewer-1.3.6-1.src.rpm</a> 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 </pre> <h2>RPM contents</h2> The rpm installs the following files on your machine: <ul> <li>The library (<code>libQGLViewer-1.3.6.so</code>) in <b><code>/usr/local/lib</code></b></li> <li>The header files in <b><code>/usr/local/include/QGLViewer</code></b></li> <li>The documentation and the examples in <b><code>/usr/share/doc/QGLViewer</code></b></li> </ul> The rpm can also be downloaded from <a href="http://rpmfind.net/linux/rpm2html/search.php?query=libQGLViewer">rpmFind.net</a> or <a href="http://rpm.pbone.net">pbone.net</a>. <h2>Troubleshooting</h2> When installing the QGLViewer library, you may be prompted some dependency error messages. Missing RPMs can be downloaded from these official sites : <a href="http://rpmfind.net">rpmfind.net</a>, <a href="http://rpm.pbone.net">pbone.net</a> and <a href="http://www.google.com/search?q=rpm+repository">Google</a>. <ul> <li><b>libGL dependency</b> : If you didn't use an RPM to install <code>libGL</code> (e.g. you used the NVidia script), you may have to add <code>--force</code> to the installation options.</li> <li><b>Qt-devel</b> : QT is usually shipped in the distribution CDs. You may however have to install the <i>qt3-devel</i> package (<code>ls $QTDIR/lib</code> to find your Qt version).</li> <li><b>Random display</b> : 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 <code>QGLViewer/QGLViewer.pro</code>, replace <code>release</code> by <code>debug</code> and re-compile.</li> <li><b>libqt-mt</b> : QGLViewer is compiled with the <i>multi-thread</i> (qt-mt) version of qt. If you only have <code>libqt.so</code> installed, edit <code>QGLViewer/QGLViewer.pro</code>, remove <code>thread</code> and re-compile.</li> <li><b>libGLcore.so.1</b> : This package used to be listed in the dependency list, but it should no longer be the case.</li> <li><b>lib3ds</b> : Download the patched <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/lib3ds-1.2.0-1.i686.rpm">lib3ds-1.2.0-1.i686.rpm</a> (<a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/lib3ds-1.2.0-1.i686.rpm">lib3ds-1.2.0-1.i586.gcc2.rpm</a> for gcc 2.96) or the sources: <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/lib3ds-1.2.0-1.src.rpm">lib3ds-1.2.0-1.src.rpm</a> or <a href="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/lib3ds-1.2.0.tar.gz">lib3ds-1.2.0.tar.gz</a>.</li> <li><b>libX3DTK</b> : Download the library from the <a="http://www-artis.imag.fr/Members/Yannick.Legoc">X3DTK web site</a>. </ul> Please <a href="mailto:Gilles.Debunne at imag dot fr?Subject=QGLViewer RPM">let me know</a> if you encountered specific installation problems that could be reported on this page. <p> <a href="http://validator.w3.org/check/referer"><img src="images/xhtml.png" alt="Valid XHTML 1.0!" height="31" width="88" border="0"/></a> <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="images/css.png" alt="Valid CSS!" width="88" height="31" border="0"/></a> <i>Last modified on Tuesday, October 21, 2003.</i> </p> </body></html>