Skip to content


Subversion checkout URL

You can clone with
Download ZIP
LibreCAD is a 2D CAD drawing tool based on the community edition of QCad. LibreCAD has been re-structured and ported to Qt 4/5 and works natively cross platform between OSX, Windows and Linux. It can read DWG and DXF files; and it can write DXF, SVG, PDF and more!
C++ C QMake NSIS Redcode Shell
Latest commit 3f046de @r-a-v-a-s r-a-v-a-s added square shape to snap indicator options
& created Indicator struct
Failed to load latest commit information.
desktop added new image and tool tip for mouse widget in status bar
libraries libdxfrw: cleanup
librecad added square shape to snap indicator options
mkspec/macports Clean up FreeBSD build a bit.
plugins pull in Japanese translation, many thanks to yori5070
scripts nightly-build-osx: fixed previous commit
tools replaced VLA with vectors
.gitignore ignore Windows generated files in libdxfrw
CLEAN.SH Suppress error message
LICENSE-MIT.txt Added muparser source code
LICENSE_Apache2.txt License: added Apache2/GPLv3 licenses
LICENSE_GPLv3.txt License: added Apache2/GPLv3 licenses
LICENSE_KST32B_v2.txt Added Japanese fonts: KST32B README: improved building howtos
common.pri Modified build scripts for OSX
gpl-2.0.txt Initial Import of CADuntu
gpl-2.0greater.txt added or-greater text to librecad changes and additions
librecad.astylerc Added options file for astyle code formater
librecad.dox updated librecad.dox Add tools directory back to build
librecad.sln Fix permissions on non-executables
license-lc_opengost-fonts.txt fixed opengost fonts: license, encoding
settings.pri renamed setting .pro files to .pri

About LibreCAD

LibreCAD is a 2D CAD drawing tool based on the community edition of QCAD ( LibreCAD has been re-structured, ported to new Qt versions and works natively cross platform between OS X, Windows and Linux.


OS X and Homebrew

Install Homebrew from

gcc --version # you'll need gcc 4.4 or newer. If yours is older:
brew tap homebrew/versions
brew options gcc48
brew install [flags] gcc48
mkdir ~/bin
cd ~/bin
ln -s /usr/local/bin/gcc-4.8 gcc
ln -s /usr/local/bin/g++-4.8 g++
ln -s /usr/local/bin/gcc-ar-4.8 gcc-ar
ln -s /usr/local/bin/gcc-nm-4.8 gcc-nm
ln -s /usr/local/bin/gcc-ranlib-4.8 gcc-ranlib
source ~/.bashrc
gcc --version # make sure it's 4.8, as installed and configured in the previous step. if it's not, ~/bin might not be on your path
brew install boost qt

Unzip or checkout a version of LibreCAD into a directory.

cd LibreCAD

This creates an executable "" and package "LibreCAD.dmg".

OS X and MacPorts

install MacPorts from

You can install LibreCad using MacPorts by: $ sudo port install librecad

You can build LibreCAD manually by following steps:

Install QT and a new gcc, which should have a version 4.4 or later.

Install a version of Qt and boost, for example $ sudo port install gcc46 qt4-creator-mac qt4-mac boost

Select the right compiler, as LibreCAD doesn't build with the default llvm-gcc42, $ sudo port select --set gcc mp-gcc46

Unzip or checkout a version of LibreCAD into a directory.

cd LibreCAD

This creates an executable "" and package "LibreCAD.dmg".

Users of Ubuntu/Debian and derivatives

Make sure you have the Qt development packages installed. For to install Qt version 4, run the following commands:

$ sudo apt-get install g++ gcc make git-core libqt4-dev qt4-qmake libqt4-help \
qt4-dev-tools libboost-all-dev libmuparser-dev libfreetype6-dev pkg-config

Alternatively, you make sure you have deb-src lines enabled in your sources.list file, and run,

$ sudo apt-get build-dep librecad

For SVN see also:

For git see also:

LibreCAD builds with both Qt4 and Qt5. Note that you will most likely need to run qmake-qt4 or qmake-qt5 instead of just qmake.

After the installation of dependency packages, download the LibreCAD source from the official LibreCAD repository, and run the following commands in the top folder of the downloaded LibreCAD source code:

qmake-qt4 -r

as described in section Generic Unix Users.

Users of Red Hat and similar distibutions

Install Qt, Boost and muParser development packages for your respective distribution; EPEL and similar repositories may come handy if your base OS does not include the necessary packages.

As an example, for CentOS 6.4, after adding the EPEL repository,

yum groupinstall 'Desktop Platform Development' 'Development tools'
yum install qt-devel boost-devel muParser-devel

will install the necessary build dependencies.

Building of LibreCAD in Red Hat is similar to the building procedure described in the Ubuntu section.

FreeBSD users

  • Building with Qt version5:
  • Install
databases/qt5-sql devel/qt5-core devel/qt5-help graphics/qt5-svg math/muparser
net/qt5-network print/qt5-printsupport textproc/clucene-qt5 x11-toolkits/qt5-gui
  • Run
/usr/local/lib/qt5/bin/qmake QMAKE_CXXFLAGS="-I /usr/local/include" QMAKE_LIBS="-L /usr/local/lib" && make
  • Building with Qt version 4:
  • Install
databases/qt4-sql devel/qt4-corelib devel/qt4-help graphics/qt4-svg math/muparser
net/qt4-network textproc/clucene-qt4 x11-toolkits/qt4-gui
  • Run
qmake-qt4 -r && make

The executable is generated at unix/librecad

Windows Users

Building steps are also given at our wiki page:

LibreCAD Installation from Source

A sample build batch file is included as scripts/build-windows.bat. If successful, this building script generates a Windows installer file using NSIS(

Start Qt Creator and load, from the build menu select "Build All".

Windows Building from Command Line

scritps/build-windows.bat batch file for automatic building is supplied. Read Building Windows by command line for more details.

Generic Unix Users

Install necessary dependecy: Qt, boost, muParser (see for details).

Unzip or checkout a version of LibreCAD into a directory LibreCAD.

cd LibreCAD
qmake -r

The executable is generated at unix/librecad

Something went wrong with that request. Please try again.