Pin It

These instructions guide through the process of installing QCAD from sources on your platform. Please note that these instructions only cover one possible scenario for each platform. You may want to use another compiler or an alternative version of Qt, but you might have to change source code or project files to succeed.

Checking out the QCAD Sources

To check out the QCAD source code, please clone our git repository as follows:

git clone git@github.com:qcad/qcad.git qcad

Or (using HTTPs):

git clone https://github.com/qcad/qcad.git qcad

If you have any other modules, put them into the same directory as the cloned qcad directory above:

qcad
qcadpro
qcadxy

The procedure to compile the source code depends on the platform you are on:

Windows

  1. Download and install a C++ compiler and Windows SDK, for example:
  2. Download and install Qt from qt.io (see supported platforms):
  3. If available, download and extract Teigha (e.g. Teigha_vc10md.zip) into qcadpro/src/io/dwg/opendesign.
  4. Configure QCAD. Optional modules installed side-by-side with the qcad directory are configured automatically:
    cd c:\Users\me\qcad\qcad
    c:\Qt\Qt5.5.1\5.5\msvc2013_64\bin\qmake -r
  5. Compile QCAD. For example on cygwin:

    nmake release

    Alternatively, you may want to use jom, an nmake clone which speeds up compilation significantly by using all available CPU cores.

  6. Launch QCAD. For example with:

    release\qcad.exe

Mac OS X

  1. Download and install the latest version of XCode for your platform.
  2. Download and install Qt (see supported platforms):
    • Configure Qt:

      cd qt-everywhere-opensource-src-4.8.4
      ./configure -fast -opensource -arch x86 -release \
      -no-qt3support -qt-zlib -qt-libtiff -qt-libpng -qt-libmng \
      -qt-libjpeg -confirm-license
    • Compile Qt:

      make 
    • Add ~/opt/qt-everywhere-opensource-src-4.8.4/bin to your PATH environment variable:

      export PATH=~/opt/qt-everywhere-opensource-src-4.8.4/bin:$PATH
  3. Configure QCAD:

    cd ~/qcad
    qmake -r
  4. Compile QCAD:

    make release
  5. Launch QCAD:

    cd release
    ./QCAD.app/Contents/MacOS/QCAD

Linux

  1. Check that you have the following (including dependencies) installed:
    • gcc version 4
    • make
    • libx11-dev
    • libxext-dev
    • libxrender-dev
    • libglu1-mesa-dev (Ubuntu)
    • libfreetype6-dev (Ubuntu)
    • libfontconfig1-dev (Ubuntu)
    • libssl-dev (Ubuntu)
    • libdbus-1-dev (Ubuntu)
    • libsm-dev (Ubuntu)
    • Mesa-devel (OpenSUSE)
    • dbus-1-devel (OpenSUSE)
    • libsm-devel (OpenSUSE)
    • glu-devel (OpenSUSE)
  2. If you wish to compile / run QCAD 3 32bit on a 64bit Linux installation, you will also need:
    • ia32-libs
    • Mesa-32bit (OpenSUSE)
  3. Download and install Qt (see supported platforms):
    • Configure Qt:

      cd qt-everywhere-opensource-src-4.8.4
      ./configure -fast -opensource -release -no-qt3support -fontconfig -dbus \
      -sm -qt-libpng -qt-libjpeg -qt-libmng -qt-zlib -openssl -opengl desktop \
      -xrender -webkit -confirm-license
    • Compile Qt:

      make
    • Add ~/opt/qt-everywhere-opensource-src-4.8.4/bin to your PATH environment variable:

      export PATH=~/opt/qt-everywhere-opensource-src-4.8.4/bin:$PATH
  4. Configure QCAD:

    cd ~/qcad
    qmake -r
  5. Compile QCAD:

    make release
  6. Launch QCAD:

    cd release
    LD_LIBRARY_PATH=. ./qcad-bin