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.

Difference between revisions of "How to built LibreCAD (master branch) on Windows."

From LibreCAD wiki
Jump to: navigation, search
(How to built LibreCAD (master branch) on Windows.)
(reformatted using Wiki list.)
Line 1: Line 1:
  
 
+
#Get and install Cygwin.
<pre>
+
#:See: http://www.cygwin.com/
1 Get and install Cygwin.
+
#Get and install Qt SDK.
  See: http://www.cygwin.com/
+
#:See: http://qt.nokia.com/products/qt-sdk
 
+
#Get and install Boost library (V1.48) by doing the following operations:
 
+
##Get Boost from the following link:
2 Get and install Qt SDK.
+
##:https://sourceforge.net/projects/boost/files/boost/1.48.0/
  See: http://qt.nokia.com/products/qt-sdk
+
##In C:\, create a directory named "boost".
 
+
##In C:\boost\, unzip the boost library.
 
+
##:Notes: When finished you will have the following directory:
3 Get and install Boost library (V1.48) by doing the following
+
##:C:\boost\boost_1_48_0
  operations:
+
#Get, built and install muParser library by doing the following operations:
 
+
##Get muParser (muparser_v2_2_2.zip) using the following link:
3.1 Get Boost from the following link:
+
##:http://sourceforge.net/projects/muparser/files/muparser
    https://sourceforge.net/projects/boost/files/boost/1.48.0/
+
##In C:\, create a directory named "muparser".
 
+
##In C:\muparser\, unzip muparser_v2_2_2.zip
3.2 In C:\, create a directory named "boost".
+
##:Notes: At this point you will have the following directory:
 
+
##:C:\muparser\muparser_v2_2_2
3.3 In C:\boost\, unzip the boost library.
+
##Start Qt Desktop using "Qt 4.8.0 for Desktop (MinGW)" shortcut.
    Notes: When finished you will have the following
+
##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:
    directory: C:\boost\boost_1_48_0
+
##:mingw32-make -fmakefile.mingw
 
+
#Get LibreCAD from GIT, doing the following step:
 
+
##Start a "Cygwin Terminal" using the supplied short cut.
4 Get, built and install muParser library (V2.2.2) by doing the following
+
##:Notes: At this point, you are in C:\cygwin\home\<user>\ directory.
  operations:
+
##In Cygwin Terminal, get LibreCAD master branch by typing the following command:
 
+
##:<nowiki>git clone git://github.com/LibreCAD/LibreCAD.git</nowiki>
4.1 Get muParser from the following link:
+
#Built and run LibreCAD, by doing the following operations:
    http://sourceforge.net/projects/muparser/files/muparser/Version\ 2.2.2/muparser_v2_2_2.zip
+
##Start Qt Creator using the supplied short cut.
 
+
##Built LibreCAD using Qt Creator, by doing the following operations:
4.2 In C:\, create a directory named "muparser".
+
###In the menu, select "File"->"Open File or Project...".
 
+
###In "Open File", navigate to C:\cygwin\home\<user>\LibreCAD
4.3 In C:\muparser\, unzip muparser_v2_2_2.zip
+
###In "Open File", select librecad.pro, and then click on the "Open" button.
    Notes: At this point you will have the following directory:
+
###In "Project Setup", check "Desktop" item, if not already checked.
    C:\muparser\muparser_v2_2_2
+
###In "Project Setup", uncheck "Use Shadow Building", if not already un-checked.
 
+
###In "Project Setup", click on the "Finish" button.
4.4 Start Qt Desktop using "Qt 4.8.0 for Desktop (MinGW)" shortcut.
+
###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.
4.5 In Qt Desktop console, navigate to muParser build directory
+
##Run LibreCAD from Qt Creator, by doing the following operations:
    (C:\muparser\muparser_v2_2_2\build\), then type the following
+
###Switch to "Projects" mode by clicking on associated icon that is located at left of Qt Creator window.
    command to built muParser library:
+
###Then, in "Desktop", select "Run".
    mingw32-make -fmakefile.mingw
+
###Then, in "Run configuration:", make sure "src" is selected.
 
+
###Run LibreCAD by selecting "Build"->"Run" in the menu.
 
+
5 Get LibreCAD from GIT, doing the following step:
+
 
+
5.1 Start a "Cygwin Terminal" using the supplied short cut.
+
    Notes: At this point, you are in C:\cygwin\home\<user>\
+
    directory.
+
 
+
5.2 In Cygwin Terminal, get LibreCAD master branch by typing
+
    the following command:
+
    git clone git://github.com/LibreCAD/LibreCAD.git
+
 
+
 
+
6 Built and run LibreCAD, by doing the following operations:
+
 
+
6.1 Start Qt Creator using the supplied short cut.
+
 
+
6.2 Built LibreCAD using Qt Creator, by doing the following operations:
+
 
+
6.2.1 In the menu, select "File"->"Open File or Project...".
+
 
+
6.2.2 In "Open File", navigate to
+
      C:\cygwin\home\<user>\LibreCAD
+
 
+
6.2.3 In "Open File", select librecad.pro, and then click on
+
      the "Open" button.
+
 
+
6.2.4 In "Project Setup", check "Desktop" item, if not
+
      already checked.
+
 
+
6.2.5 In "Project Setup", uncheck "Use Shadow Building", if
+
      not already un-checked.
+
 
+
6.2.6 In "Project Setup", click on the "Finish" button.
+
 
+
6.2.7 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.
+
 
+
6.3 Run LibreCAD from Qt Creator, by doing the following operations:
+
 
+
6.3.1 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.
+
 
+
6.3.2 Run LibreCAD by selecting "Build"->"Run" in the
+
      menu.
+
</pre>
+

Revision as of 02:11, 28 April 2012

  1. Get and install Cygwin.
    See: http://www.cygwin.com/
  2. Get and install Qt SDK.
    See: http://qt.nokia.com/products/qt-sdk
  3. Get and install Boost library (V1.48) by doing the following operations:
    1. Get Boost from the following link:
      https://sourceforge.net/projects/boost/files/boost/1.48.0/
    2. In C:\, create a directory named "boost".
    3. In C:\boost\, unzip the boost library.
      Notes: When finished you will have the following directory:
      C:\boost\boost_1_48_0
  4. Get, built and install muParser library by doing the following operations:
    1. Get muParser (muparser_v2_2_2.zip) using the following link:
      http://sourceforge.net/projects/muparser/files/muparser
    2. In C:\, create a directory named "muparser".
    3. 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
    4. Start Qt Desktop using "Qt 4.8.0 for Desktop (MinGW)" shortcut.
    5. 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
  5. Get LibreCAD from GIT, doing the following step:
    1. Start a "Cygwin Terminal" using the supplied short cut.
      Notes: At this point, you are in C:\cygwin\home\<user>\ directory.
    2. In Cygwin Terminal, get LibreCAD master branch by typing the following command:
      git clone git://github.com/LibreCAD/LibreCAD.git
  6. Built and run LibreCAD, by doing the following operations:
    1. Start Qt Creator using the supplied short cut.
    2. Built LibreCAD using Qt Creator, by doing the following operations:
      1. In the menu, select "File"->"Open File or Project...".
      2. In "Open File", navigate to C:\cygwin\home\<user>\LibreCAD
      3. In "Open File", select librecad.pro, and then click on the "Open" button.
      4. In "Project Setup", check "Desktop" item, if not already checked.
      5. In "Project Setup", uncheck "Use Shadow Building", if not already un-checked.
      6. In "Project Setup", click on the "Finish" button.
      7. 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.
    3. Run LibreCAD from Qt Creator, by doing the following operations:
      1. Switch to "Projects" mode by clicking on associated icon that is located at left of Qt Creator window.
      2. Then, in "Desktop", select "Run".
      3. Then, in "Run configuration:", make sure "src" is selected.
      4. Run LibreCAD by selecting "Build"->"Run" in the menu.