Downloading and Installing QEPCAD

Download Instructions: You must download the SACLIB library as well as QEPCAD.
Download QEPCAD B version 1.71 (see LOG of recent important changes ) and saclib2.2.7.

Installation instructions: Assuming that you've un-gzipped and un-tared qepcad and saclib, you need to:

  1. Make SACLIB:
    1. Create an environment variable saclib that points to the root of your saclib installation.
      Example: setenv saclib ${HOME}/saclib2.2.7
    2. Set the environment variable CC to gcc.
      Example: setenv CC gcc
    3. Give the following commands:
      cd $saclib/bin
      ./sconf
      ./mkproto
      ./mkmake
      ./mklib all
    Assuming you haven't seen any error messages, saclib is now successfully installed!
  2. Make QEPCAD:
    1. Create an environment variable qe that points to the root of your qepcad installation.
      Example: setenv qe ${HOME}/qesource
    2. Give the following commands:
      cd $qe
      gmake
    Assuming you haven't seen any error messages, QEPCAD is now successfully installed! It might be nice to add $qe/bin to your path now, so that qepcad gets found without requiring a full path.
  3. Make plotting program (Required only if the "display 2D CAD" command (d-2d-cad) will be used.) Give the following commands:
    cd $qe/plot2d
    make
    NOTE: This program relies on the OpenGL and Glut libraries. If you don't have these libraries on your system, you'll need to install them! MesaGL is free and will do the trick, just make sure to get the Glut library that's packaged along with the "demos". Whether you already have OpenGL/Glut or have to go out and get it, you may have to change some entries in plot2d/Makefile to reflect the locations of these libraries and the X libraries on your system. Email me if you don't know how to do this.
  4. Allow QEPCADB to use Singular. Note the file ${qe}/default.qepcadrc. If you have the computer algebra system Singular installed, or if you install it in the future, you should edit this file to define the SINGULAR variable to be the full path up to, but not including, the Singular executable. For example:
    #####################################################
    # QEPCAD rc file.
    # This file allows for some customization of QEPCADB.
    # Right now, the ability to give a path to Singular,
    # so that it gets used for some computer algebra
    # computations is the only feature.
    #####################################################
    SINGULAR /usr/lib/Singular/3-0-0/ix86-Linux
    
    With this in place, QEPCADB farms out some computations to Singular and, more importantly, can use Singular to compute Grobner Bases, which allows for a correct implementation of "equational constraints".
  5. Make CAD2D: (Optional) Give the following commands:
    cd $qe/cad2d
    gmake

Hints for troubleshooting the install:


Chris Brown