To compile and install Lx-Viewer you will need the following packages installed on your system:
You can query if they are installed with
rpm -qa | grep -i gcc
You will also need to download
Add a link in /usr/lib from "qt" to "qt-3.0.5" (the default redhat 8.0 qt directory)
ln -s qt-3.0.5 qt
Then in /etc/profile (or in ~/.profile) put:
QTDIR=/usr/lib/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
Place the open dwg libraries ad2.a and ad3.a in the viewer/OpenDWG directory
Then to compile, go to your lx-viewer directory and use
./configure --with-qt-dir=/usr/lib/qt