Now you have a development environment on your computer. You need to download the source of LibreCAD. DOWNLOADING: The source code including the latest development of LibreCAD is available from the project page at github, https://github.com/LibreCAD/LibreCAD , clone the git repository of LibreCADcin Desktop (You can use any Directory) $ git clone https://github.com/LibreCAD/LibreCAD.git COMPILATION: Now you can run qmake (or qmake-qt4) to create a makefile and run make to compile LibreCAD. Commands to run: Make sure that you are in the folder (Librecad).
$ sudo apt-get install g++ gcc qmake git-core libqt4-dev qt4-qmake libqt4-help qt4-dev-tools libboost-all-dev libmuparser-dev libfreetype6-dev
apt-get build-dep librecad
$cd LibreCAD $qmake-qt4 librecad.pro $make (or $time make)librecad.pro is a project file. qmake creates a makefile. Make command will compile the project. Compiling LibreCAD might take a while, depending on the speed of your computer, but just let it run until it finishes. *———to note the time takes to compile——* $time make My system took this time for compilation 😉 real 11m40.172s
sys 0m46.903s *——-to check the version of Librecad——–* Goto Help menu in menu bar > About, Version: master
SCM Revision: 2.0.0beta1
Compiled on: Apr 21 2013 *————-if you find errors—————* 1) If error is muparser error:rs_math: muparser not found,
then install muparser library by giving command in terminal.
$ sudo apt-get install libmuparser-dev
After installing libraries replace:
#include <muParser.h> with #include “/usr/include/muParser/muParser.h”
in the file librecad/src/lib/math/rs_math.cpp
$sudo apt-get install libboost-dev3) If you are getting erros about Qt: svg, then there is a problem with qmake. Run qmake-qt4 instead of qmake. To finally run LibreCAD, execute the following commands:
$cd unix $./librecad Enjoy...... :)