How to built LibreCAD (master branch) on Windows.
From LibreCAD wiki
- Get and install Cygwin.
- Get and install Qt SDK.
- Get and install Boost library by doing the following operations:
- Get Boost library (boost_1_48_0.zip) using the following link:
- In C:\, create a directory named "boost".
- In C:\boost\, unzip the boost library.
- Notes: When finished you will have the following directory:
- C:\boost\boost_1_48_0
- Get, built and install muParser library by doing the following operations:
- Get muParser library (muparser_v2_2_2.zip) using the following link:
- In C:\, create a directory named "muparser".
- In C:\muparser\, unzip muparser_v2_2_2.zip
- Notes: At this point you will have the following directory:
- C:\muparser\muparser_v2_2_2
- Start Qt Desktop using "Qt 4.8.0 for Desktop (MinGW)" shortcut.
- In Qt Desktop console, navigate to muParser build directory (C:\muparser\muparser_v2_2_2\build\), then type the following command to built muParser library:
- mingw32-make -fmakefile.mingw
- Get LibreCAD from GIT, doing the following step:
- Start a "Cygwin Terminal" using the supplied short cut.
- Notes: At this point, you are in C:\cygwin\home\<user>\ directory.
- In Cygwin Terminal, get LibreCAD master branch by typing the following command:
- git clone git://github.com/LibreCAD/LibreCAD.git
- Start a "Cygwin Terminal" using the supplied short cut.
- Built and run LibreCAD, by doing the following operations:
- Start Qt Creator using the supplied short cut.
- Built LibreCAD using Qt Creator, by doing the following operations:
- In the menu, select "File"->"Open File or Project...".
- In "Open File", navigate to C:\cygwin\home\<user>\LibreCAD
- In "Open File", select librecad.pro, and then click on the "Open" button.
- In "Project Setup", check "Desktop" item, if not already checked.
- In "Project Setup", uncheck "Use Shadow Building", if not already unchecked.
- In "Project Setup", click on the "Finish" button.
- In menu, select "Build"->"Rebuild All".
- Notes: At this point, you will have to wait a lot of time to get LibreCAD built, and this is normal.
- Run LibreCAD from Qt Creator, by doing the following operations:
- Switch to "Projects" mode by clicking on associated icon that is located at left of Qt Creator window.
- Then, in "Desktop", select "Run".
- Then, in "Run configuration:", make sure "src" is selected.
- Run LibreCAD by selecting "Build"->"Run" in the menu.