[cad-linux] Giving back: instructions for building QCAD on Fedora 2...

Hi people.  There was an email to the group a while ago about building
QCAD from source (community version) and I just did it, so I thought I'd
share.  Here are the steps that I took:

a) download the QCAD v2 source from http://www.ribbonsoft.com/qcad.html

b) Untar it  Find the README file (with the build instructions) and
print them out.  

c) As per said instructions, find where qt and qt-devel are located.  
The commands for doing so are "rpm -q qt -i"  and " rpm -q qt-devel
-i".  

My Fedora 2 computer did NOT have qt-devel installed, so I downloaded
the RPM from a Fedora mirror (see www.fedoranews.org) in the following
path: /fedora/core/2/i386/os/fedora/RPMs.  To install qt-devel, I use
"rpm -i qt-devel*rpm", but I am sure you all know that. 

d) Once qt-devel is installed, I set up the environment vars as per the
README.  

        export QTDIR=/usr/lib/qt-3.3   

The README says /opt/qt, but this is wrong for my machine.

        export QMAKESPEC=$QTDIR/mkspecs/linux-g++

        export PATH=$PATH:$QTDIR/bin

e) check all your vars and check that qmake works:

        echo $QTDIR
        echo $QMAKESPEC
        qmake -v

f) Run the script for building QCAD:
        cd scripts
        sh ./build_qcad.sh

This resulted in a running version of QCAD for me.  





-- 
Kim Lux <lux@xxxxxxxxxxxxxxxxxxx>


Other related posts: