We have moved to https://dokuwiki.librecad.org/
LibreCAD is available as two variants; as a stable version (i.e. General release), or as a unstable (also referred to as “daily” or “nightly” depending on the repository) release. The stable version is.
- Mac OS/X¶ Links to the installers for OS/X 10.9 can be found in the Resources section. Download the desired version of the installer from the build directory and run the installer (dmg file). For other versions of OS/X, please follow build instructions in the appendix.
- Pros: LibreCAD is cross-platform, it is available on Windows, Mac and Linux-based Operating Systems. Cons: LibreCAD does not have 3D modelling capabilities, as compared with AutoCAD. Reviewer Source.
- LibreCAD is a free Open Source CAD application for Windows, Apple and Linux. Support and documentation are free from our large, dedicated community of users, contributors and developers. You, too, can also get involved!
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.
- 2Building LibreCAD 2.0 on Linux
- 2.1Install dependencies
- 4Building LibreCAD 2.0 on Windows
- 4.5Custom files
- 5Building LibreCAD-2.0 on OS/X
- 5.2Alternative: Building from Downloaded Source Code
Git and GitHub
Building LibreCAD 2.0 on Linux
Install dependencies
First gather the required packages:
You also have to either install the qt5-default package ('apt-get install qt5-default') or use qtchooser prior to running qmake (e.g., 'qtchooser -qt5').
If you have not cloned the LibreCAD repository
If you have a local LibreCAD repository, continue to Update a local LibreCAD repository instead
If ~/develop does not exist, create this folder
Clone the LibreCAD repository, please note this is needed only once
Update a local LibreCAD repository
Build LibreCAD
During the previous install dependencies commands, you downloaded QT5 base and default libraries. So either use qtchooser to set default for qt5 (e.g. 'qtchooser -qt5') or use the qtool option '-qt=5'.
or just insert the option '-qt=5' in the qmake command
If building is successful, the generated executable is at ./unix/librecad, and you may launch LibreCAD:
Installing Linux and building LibreCad on android devices in a Linux chroot environment
Detailed steps are here: [1]
Building LibreCAD 2.0 on Windows
Cloning the source package
To clone LibreCAD source code by command line:
On Windows, you may alternatively:
- download and install msysgit
- press the windows-key and then type git
- select 'Git GUI'
- after the program loads select 'Clone existing repository'
- enter source location: git://github.com/LibreCAD/LibreCAD.git
- enter target directory: where you want the project on your hard drive
- press clone and then wait for it to download
Updating local source
- press the windows-key and then type git
- select 'Git Bash'
- input: cd /c/your_project_folder
- input: git pull -r
Qt
Download Qt from : Qt download. Offline installer with MinGW is recommended instead of the Windows online installer. Qt-5.4.1 for Windows 32 bit (MinGW 4.9.1) is used as an example in this article.
Install Qt (including Qt-Creator) to C:Qt5.4 (the default path prompted by Qt installer). The MinGW tools will be in C:Qt5.4mingw491_32bin by default.
muParser
On Windows, muParser is not required to build LibreCAD since LibreCAD-2.0.4, because LibreCAD uses by default a patched version of muParser included within LibreCAD source.
Custom files
If you only care about building with Qt Creator, then you only need to read the boost and custom.pro section.The other custom files are for when you want to create an installer.
If you are planning to contribute, don't edit the librecad.pro, build-windows.bat and nsis-5.4.nsi files to fit your local settings. This would result in changes for git you have to care about in each commit, pull and push. Instead create the files custom.pro, custom-windows.bat and custom.nsh, which are ignored by git, and set your local settings there.
boost and custom.pro
Download boost from: boost download.
Unzip the boost files to the directory: C:boost -- the extracted folder would be: C:boostboost_1_60_0 .
Verify that you have the file C:boostboost_1_60_0booststrap.bat. You don't have to build boost in order to build LibreCAD, because LibreCAD only uses headers.
In librecad/src edit the custom.pro (or custom.pri) file accordingly :
custom-windows.bat
A command line building script file is added as scripts/build-windows.bat. To be able to use this batch file, you need to have your Qt and NSIS directories set up first. Default values for Qt_Dir, MINGW_VER and NSIS_DIR are set in file scripts/set-windows-env.bat:
To change these default settings you have to create the file scripts/custom-windows.bat and overwrite the different settings without effect to the SCM (git).
Example for scripts/custom-windows.bat:
Example for scripts/custom-windows.bat:
There are issues with the NSIS_DIR path on 64 Bit Windows. When NSIS is installed in the Program Files (x86) folder and NSIS_DIR is added to the PATH, something goes wrong in the build process.
In this case use the command dir /X and get an output like this:
In this case use the command dir /X and get an output like this:
Librecad Mac Os X
You need the short name of the Program Files (x86) folder. With that information set NSIS_DIR like following in scripts/custom-windows.bat to avoid the issues:
custom.nsh
By default, LibreCAD uses NSIS to generate installers in Windows.
If you would like to build an installer for Windows, you will need the tool. You can use the lastest NSIS version. Best app for drawing floor plans on mac.
You need to setup your Qt_Dir, Mingw_Ver and Qt_Version in the scriptspostprocess-windowscustom.nsh file if they don't match the default settings in scriptspostprocess-windowsnsis-5.4.nsi.
Example for scriptspostprocess-windowscustom.nsh:
Example for scriptspostprocess-windowscustom.nsh:
These settings indicate Qt-5.4 is installed at C:Qt5.4 and it comes with Qt-Creator in C:QtToolsQtCreator and qmake.exe in C:Qt5.4mingw491_32bin
If you use an other Qt Version, e.g. Qt 5.4, where the master branch default is Qt 5.3.x, you have to use scriptspostprocess-windowsnsis-5.4.nsi for building the installer package.
Then you have to add this line to scripts/custom-windows.bat:
Then you have to add this line to scripts/custom-windows.bat:
This line tells the build-win-setup.bat script to use nsis-5.4.nsi instead of nsis-5.3.nsi, which is currently default setting on master branch.
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.
Take care about the Shadow build option in Debug and Release configuration. Disable this option in both configurations and save the project.
Select librecad as building target in Qt Creator (instead of tff2lff, which is another choice)
If everything is good up to this point, you can build and run LibreCAD within Qt-Creator.
Note that adding
-j
to the make arguments can significantly improve build time.Dropbox's rollback functionality makes it a fantastic user friendly, realtime, always online and offsite backup solution as i found recently after a malware hack that encrypted all our files and backups. Dropbox was the only backup resilient enough to survive and it was easy to restore everything. Dropbox time machine backup external drive. I just completed a Backup Your Mac workshop at the Apple Store, Fifth Avenue, NYC. I came across your question as I was researching Time Capsule. I'm a die-hard, long-time user of Dropbox, but a new user of Time Machine (and soon Time Capsule). I will gladly test your question out (for both of us) and reply back again. Wish you continued success. Dropbox can automatically upload and backup your photos to the cloud by copying them from your mobile device or camera to your Dropbox folder. With the camera uploads feature enabled, any photo or video you’ve taken with your mobile device will be backed up to your Dropbox account (Dropbox Basic users must have the desktop app installed). I have to erase my hard drive on my Mac, which has been backed up with Time Machine, but I do not backup Dropbox. My question is, should I unlink my Dropbox before erasing the hard drive? Once I reinstall all my files/OS from Time Machine with no Dropbox, will all my Dropbox files be ok on the Cloud. Dropbox themselves say it's not possible. The link unfortunately went offline. Time Machine uses a special way of 'pointing' files to each other, which means that every snapshot of your system as available in Time Machine is not the same on the disk.
Building Windows installer
- press the windows-key and type qt
- select Qt 5.4 for desktop
- input: cd 'C:librecadscripts' (or where ever your local source is)
- input: build-windows.bat
The last step of build-windows.bat is calling NSIS to create the LibreCAD-Installer.exe.
If everything was OK, the installer (LibreCAD-installer.exe) can be found in the generated folder within LibreCAD source folder.
If everything was OK, the installer (LibreCAD-installer.exe) can be found in the generated folder within LibreCAD source folder.
(When LibreCAD Release version was built from Qt Creator, use build-win-setup.bat to create the windows installer.)
Other instructions:
Building LibreCAD-2.0 on OS/X
LibreCAD in MacPorts
Starting from version 2.0.2, LibreCAD is included MacPorts, which can be downloaded from http://www.macports.org/install.php
To install LibreCAD by MacPorts:
Optional, update package list
Install the LibreCAD package
Following steps describe steps to build LibreCAD manually.
Alternative: Building from Downloaded Source Code
Install dependecies
Install QT and a new gcc, which should be version 4.7 or later (gcc-4.8 or later is recommended).
Install a version of Qt, boost and freetype, for example
or
Again, if you are running an OS/X version before Mavericks(10.9), you may have to select gcc-4.8 (or later) as the default compiler:
Accept mp-gcc48(or later) as the current active gcc.
Please note LibreCAD uses a patched version muparser, and the muparser package from MacPorts is not a required dependency any more.
Get Latest LibreCAD Source Code
To test the latest LibreCAD version, you may clone the official repository, and this cloning only needs to be done once. The latest development version of LibreCAD-2.0 is the master branch.
Alternatively, you may download source code zipballs/tarballs from github: https://github.com/LibreCAD/LibreCAD/releases
The last git command will clone the official LibreCAD repository to a folder ~/github/LibreCAD/If you have a previous cloned repository, say, in ~/github/LibreCAD/ , you can update the code by:
To be able to rely on pkg-config to find libraries, you may add the following to custom.pro
Select the right compiler
LibreCAD doesn't build with the default llvm-gcc42. For example you may choose gcc48 by:
Building LibreCAD
On OS/X 10.9 or newer, use spec macx-g++ is the default. Alternatively, you may use the system default clang++ compiler instead of gcc。
On OS/X version 10.8 or older, run the following command to build a makefile in the LibreCAD source folder (as in our example, ~/github/LibreCAD/ )
If the previous step is successful, you can build LibreCAD by issuing:
After a successful build, the generated executible of LibreCAD can be found as
By the building script
Alternatively, you may try the building script comes with LibreCAD at scripts/build-osx.sh to build an DMG file. On OS/X 10.9 or newer,
On OS/X 10.8 or older, you may have to edit the build-osx.sh to qmake command lines like:
Latest Version Of Librecad
to use the qmake mkspec shipped within LibreCAD source code.
Librecad Reviews
Retrieved from 'https://wiki.librecad.org/index.php?title=Build_from_source&oldid=3100'