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
- Download and install a C++ compiler and Windows SDK, for example:
- Visual Studio C++ Express or Visual Studio Community
- Microsoft Windows SDK
- Download and install Qt from qt.io (see supported platforms):
- Download for example the installer file
qt-opensource-windows-x86-msvc2013_64-5.5.1.exe (64bit)
or
qt-opensource-windows-x86-msvc2013-5.5.1.exe (32bit) - Install Qt by running the installer and following the instructions on screen
- Download for example the installer file
- If available, download and extract Teigha (e.g. Teigha_vc10md.zip) into qcadpro/src/io/dwg/opendesign.
- 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 -
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.
-
Launch QCAD. For example with:
release\qcad.exe
Mac OS X
- Download and install the latest version of XCode for your platform.
- Download and install Qt (see supported platforms):
- Download for example the tar.gz file called qt-everywhere-opensource-src-4.8.4.tar.gz
-
Extract the tar.gz file:
tar xfvz qt-everywhere-opensource-src-4.8.4.tar.gz
-
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
-
Configure QCAD:
cd ~/qcad
qmake -r
-
Compile QCAD:
make release
-
Launch QCAD:
cd release
./QCAD.app/Contents/MacOS/QCAD
Linux
- 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)
- If you wish to compile / run QCAD 3 32bit on a 64bit Linux installation, you will also need:
- ia32-libs
- Mesa-32bit (OpenSUSE)
- Download and install Qt (see supported platforms):
- Download for example the tar.gz file called qt-everywhere-opensource-src-4.8.4.tar.gz
-
Extract the tar.gz file:
tar xfvz qt-everywhere-opensource-src-4.8.4.tar.gz
-
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
-
Configure QCAD:
cd ~/qcad
qmake -r
-
Compile QCAD:
make release
-
Launch QCAD:
cd release
LD_LIBRARY_PATH=. ./qcad-bin