We have moved to https://dokuwiki.librecad.org/
Lots of content was already moved to the new wiki, but there is still work to do. If you want to contribute, please register a new account at https://dokuwiki.librecad.org/
This wiki will be kept for a while to keep search engine results valid. Moved sites may be deleted here in future.
Build from source
Contents
Building LibreCAD 2.0 on Windows
To build LibreCAD from the lastest development version, you will need tools: git , Qt, boost, and muParser.
The ways to get LibreCAD source code in Windows is described at [1].
Qt
Download Qt from : [2]. Qt-5.0.1 for Windows 32 bit (MinGW 4.7) is used as an example in this article. Install Qt (including Qt-Creator) to \Qt\Qt5.0.1\ (Assuming you install everything to C:\ , the same assumption thereafter), and the MinGW tools are at: \Qt\Qt5.0.1\Tools\MinGW\bin\
boost
Introduction for boost can be found here [3]. Download boost from: [4]. unzip the boost files to the directory: \boost\ , and for the version boost-1.53.0, the boost files will be located in \boost\boost_1_53_0\ . Verify that you have the file \boost\boost_1_53_0\booststrap.bat. You don't have build boost in order to build LibreCAD, as LibreCAD uses header only part of boost currently. within the LibreCAD source folder, edit the settings_windows.pro file accordingly,
BOOST_DIR = /boost/boost_1_53_0/ BOOST_LIBDIR = /boost/boost_1_53_0/
muParser
muParser is at [5]. Download muParser source from: [6] unzip the muParser source files to \muparser\muparser_v2_2_3 (for muParser-2.2.3).
Steps to build muParser with MinGW:
run DOS prompt as Administrator (Start->All Programs->Accessories->Command Prompt , right click and choose "Run as administrator") in DOS prompt, type in:
set PATH=C:\Qt\Qt5.0.1\Tools\MinGW\bin;%PATH%
cd \muparser\muparser_v2_2_3\build
C:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe -f makefile.mingw
muParser should build smoothly.
within the LibreCAD source folder, edit the settings_windows.pro file accordingly,
MUPARSER_DIR = /muparser/muparser_v2_2_3
Building LibreCAD in Qt-Creator
Launch Qt-Creator and open the librecad.pro project file within the LibreCAD source folder. Accept Qt path detected by Qt-Creator by clicking "Configure Project" button, if the project is not configured yet.
If everything is good up to this point, you can build and run LibreCAD within Qt-Creator.