qcad - GPL 2D Computer Aided Drafting software ChangeLog


# QCad (Community Edition)
# ==============
test -f installed/qcad/qcad- &&
mv installed/qcad/qcad- .
test ! -f qcad- &&
wget http://www.ribbonsoft.com/archives/qcad/\

# Become root to install and build it
# (because it's going into /usr/local)

test -L /usr/local/qcad && rm -f /usr/local/qcad
find /usr/local -maxdepth 1 -type d -name "qcad-*-community.src" \
-exec rm -r {} \;
tar xzvf qcad- -C /usr/local
chown -R root:root /usr/local/qcad-
ln -s /usr/local/qcad- /usr/local/qcad

# If you want to install the Part Library (of 4,500 parts and symbols):
test -f installed/qcad/partlibrary- &&
mv installed/qcad/partlibrary- .
test ! -f partlibrary- &&
wget http://www.ribbonsoft.com/archives/partlibrary/\
chown $USER partlibrary-
unzip partlibrary-
cp -a partlibrary-* /usr/local/qcad/qcad/library/
rm -r ./partlibrary-

# ** Keep in mind that these environment variables below may exist as your
# non-root user or when you su with a login shell (su -), but you're running
# su right now and it's not a login shell, so you'll probably have to set
# these.

# If you have a /etc/profile.d/qt.sh, source it so we have QTDIR, and the
# updated PATH:
test -f /etc/profile.d/qt.sh && . /etc/profile.d/qt.sh

# Make sure the QTDIR environment variable is set, if not, run something
# like this (replacing /usr/lib/qt with where it actually is):
test -z "$QTDIR" &&
( test -d /usr/lib/qt && export QTDIR=/usr/lib/qt
   test -d /opt/qt && export QTDIR=/opt/qt )   

# Set QMAKESPEC to the appropriate spec for your platform.  This is what I
# used:
export QMAKESPEC=$QTDIR/mkspecs/linux-g++

# Make sure 'qmake' is in your PATH:
which qmake

# If it wasn't found, make sure QT's bin directory is in your PATH:
# (this should already be set via /etc/profile.d/qt.sh, /etc/profile,
# ~/.profile, etc.)
echo $PATH | grep -q "$QTDIR/bin" || export PATH="$PATH:$QTDIR/bin"

# Now actually build it.  I add the "notrans" option because I don't need
# them, but also because the release_translations.sh is missing.

cd /usr/local/qcad-
sh ./build_qcad.sh notrans

# If you downloaded the Part Library, install it:
test "$USER" != "root" &&
( NRHD=`finger $USER | egrep "^Directory: " | awk '{ print $2 }'`
   test -f ${NRHD}/partlibrary- &&
      unzip ${NRHD}/partlibrary- \
       -d /usr/local/qcad/qcad/library
   unset NRHD )

### If you want to install the docs (accessible as Help -> Manual in Qcad):

# Become yourself again

mkdir -p -m 0700 installed/qcad
rm -f installed/qcad/qcad-*-community.src.tar.*
mv -f partlibrary- qcad- \

# /usr/local/qcad/qcad/src/xpm/qcad.xpm can be used as a desktop icon

## To run it:
# cd /usr/local/qcad/qcad
# ./qcad

# The documentation is here:
# http://www.ribbonsoft.com/qcad_doc.html

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2006-08-19 2:02pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.