qcad - GPL 2D Computer Aided Drafting software ChangeLog

HOWTO


# QCad 2.0.5.0-1 (Community Edition)
# ==============
cd
test -f installed/qcad/qcad-2.0.5.0-1-community.src.tar.gz &&
mv installed/qcad/qcad-2.0.5.0-1-community.src.tar.gz .
test ! -f qcad-2.0.5.0-1-community.src.tar.gz &&
wget http://www.ribbonsoft.com/archives/qcad/\
qcad-2.0.5.0-1-community.src.tar.gz

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

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-2.0.5.0-1-community.src.tar.gz -C /usr/local
chown -R root:root /usr/local/qcad-2.0.5.0-1-community.src
ln -s /usr/local/qcad-2.0.5.0-1-community.src /usr/local/qcad

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

# ** 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-2.0.5.0-1-community.src/scripts
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-2.0.1.2-1.zip &&
      unzip ${NRHD}/partlibrary-2.0.1.2-1.zip \
       -d /usr/local/qcad/qcad/library
   unset NRHD )

### If you want to install the docs (accessible as Help -> Manual in Qcad):
##http://www.ribbonsoft.com/archives/qcad/qcad-manual-en-2.0.4.0-1.html.zip

# Become yourself again
exit

cd
mkdir -p -m 0700 installed/qcad
rm -f installed/qcad/qcad-*-community.src.tar.*
mv -f partlibrary-2.0.1.2-1.zip qcad-2.0.5.0-1-community.src.tar.gz \
installed/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 (EST -0500)
HOWTO last updated: 2006-08-19 2:02pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]