Downloading lignumCAD

The lignumCAD software and documentation are available from the SourceForge site: A precompiled binary installation is available for Linux/i386 in RPM format.

Note: As of Version 0.2, lignumCAD is installed in the directory /opt/lignumCAD/vX.Y. The previous RPM files installed it in various directories in the /usr hierarchy. When you update your installation (for example, with the command “rpm ­Uvh lignumCAD-0.2-3.i386.rpm”), please manually remove the /usr/share/lignumCAD directory.

If you want to modify the code, the source is also available as an SRPM. Read on to understand the requirements for building lignumCAD from scratch.



In order to compile lignumCAD yourself, you will need the following libraries:

If you are using lignumCAD on a Linux or other UNIX-like system, you will need XFree86 4.1 or later. Specifically you must have the Xft library (which probably requires that your X server support the RENDER extension, even though it is not directly used by lignumCAD).


lignumCAD currently uses a Qt project file,, to generate its Makefile. Depending on where the required libraries above are located, you may have to adjust the project file to suit your system. The following table describes the variables you may need to change. The variable OS means substitute the appropriate qmake prefix for your operating system.




The OS-independent version of this variable is probably OK as it is. It currently refers to several subdirectories of the source where various Qt Designer components live.


The OS-dependent version of this variable should point to the directories which contain the FreeType, OpenGL and Xft headers on your system. If they can be accessed by the compiler without additional command line arguments, then this variable is probably not needed.


The OS-independent version of this variable is handled by qmake. You may have to run through a compilation round once in order to figure out what additional libraries are required. See OS:LIBS below.


The OS-dependent version of this variable should contain the exact compiler flags required to link with, at least, the OpenGL GLU library. You may also need to specify the GL and FreeType libraries if the linker does not automatically include them.


The distributed binary version of lignumCAD is statically linked against the Qt, OpenCASCADE, FreeType, GLU, Xft, Xrender, PNG and C++ standard libraries. (These libraries are not specified in the Linux Standard Base.) It is necessary to alter the order of specification of these libraries from that ordinarily computed by qmake.

If you have installed shared object versions of these libraries, you can comment out this variable in the project file.

Compiling lignumCAD is (relatively) straight-forward as long as you set up your environment properly.

  1. Define the environment variable QTDIR to point to your Qt installation (if Qt is not already installed in the standard system directories).

  2. Make sure $QTDIR/bin is in your PATH environment variable and $QTDIR/lib is in your LD_LIBRARY_PATH environment variable.

  3. Generate the Makefile with:

    $ qmake
  4. Run the make:

    $ make

Alternatively, you can use RPM to build an executable and install it. Follow steps 1 and 2 above and then

  1. Install the RPM source file:

    $ rpm -i lignumCAD-0.2-3.src.rpm
  2. Compile and install the source:

    $ rpm -ba /path/to/specfile/lignumCAD.spec

    Note that /path/to/specfile varies between Linux distributions.

Modifying the Source

The source code for lignumCAD is mostly in the top level directory of the source distribution. Expect a more logical organization in the future.

Qt Designer is used to lay out the main window and most of the dialogs. The custom widgets used in lignumCAD are stored in subdirectories, generally with an lc prefix. If you want to edit the dialogs in Designer, then you have to take a couple of steps first:

  1. Set up your Qt environment as described above.

  2. Go into the plugins directory and do:

    $ qmake
    $ make

    This will install the custom widgets as plugins available in the Qt Designer menus. Note that you have to have write access to the $QTDIR/plugins directory for this to succeed. (Alternatively, you can use qtconfig to setup a private plugins directory.)