0% found this document useful (0 votes)
70 views4 pages

Required Software: 2008Expresswithsp1Enux1504728.Iso

The document provides instructions for installing software required to build FreeCAD from source code on Windows, including 7-Zip, Visual C++ 2008 Express, Git, TortoiseGit, and CMake. It describes downloading the FreeCAD source code using Git Clone, updating changes using TortoiseGit Pull, extracting third-party libraries, configuring with CMake, building in Visual Studio, and making the built FreeCAD portable.

Uploaded by

Sergio Luis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views4 pages

Required Software: 2008Expresswithsp1Enux1504728.Iso

The document provides instructions for installing software required to build FreeCAD from source code on Windows, including 7-Zip, Visual C++ 2008 Express, Git, TortoiseGit, and CMake. It describes downloading the FreeCAD source code using Git Clone, updating changes using TortoiseGit Pull, extracting third-party libraries, configuring with CMake, building in Visual Studio, and making the built FreeCAD portable.

Uploaded by

Sergio Luis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Required software 

 
7­Zip: http://www.7­zip.org/ 
(If you have never used 7­zip, it is used by right clicking on a file or folder and then choosing a 
command in the 7­zip menu) 
 
Visual C++ 2008 Express: 
http://download.microsoft.com/download/E/8/E/E8EEB394­7F42­4963­A2D8­29559B738298/VS
2008ExpressWithSP1ENUX1504728.iso 
 
To install, right click on the file and click 7­Zip > Extract to “VS2008ExpressWithSP1…” 
Run Setup located inside the folder that was just created, and then choose Visual C++ 2008 
Express Edition. When it asks about additional software, you can uncheck, Microsoft SQL 
Server 
 
Git: http://msysgit.github.io/ 
When installing, uncheck Windows Explorer integration, and then at Adjusting your PATH 
environment, select Use Git from the Windows Command Prompt. 
 
TortoiseGit, which is a graphical interface for git: 
https://code.google.com/p/tortoisegit/wiki/Download?tm=2 
 
CMake: http://www.cmake.org/cmake/resources/software.html 
 
 
Getting the source code 
 
First, create a folder for all of the things related to building FreeCAD. In my case, 
C:\Users\Peter\FreeCAD.  
 
Next, right click in the folder and click Git Clone. In the dialog that comes up, enter 
git://git.code.sf.net/p/free­cad/code in the url field, and in the directory field change code to 
something more specific. Click OK to start the download. 
 
 
 
Keeping the source updated 
Changes are made to the FreeCAD source fairly frequently. To get these changes, right click on 
your source folder and click TortoiseGit > Pull 
 
Third­party libraries 
 
Download FreeCADLibs_8.2_x86_VC9.7z from 
http://sourceforge.net/projects/free­cad/files/FreeCAD%20LibPack/ and extract to your FreeCAD 
folder (e.g. C:\Users\Peter\FreeCAD) 
 
 
Configuring 
 
Start cmake­gui and set the source and build folders. Then click Configure and choose Visual 
Studio 9 2008 as the generator. Configuring will fail because it doesn’t know where the LibPack 
is yet, so you will need to set FREECAD_LIBPACK_DIR to the correct path. 
 
 
 
Click Configure again, and then Generate. 
 
 
Building FreeCAD  
 
Open FreeCAD_trunk.sln located inside your build folder. Change the configuration to Release 
and then click Build > Build Solution. 
 
 
 
Once that has successfully finished (it might take up to an hour, depending on how powerful your 
computer is), copy the contents of FreeCADLibs_8.2_x86_VC9\bin to FreeCAD_build\bin. 
Now you should be able to run FreeCAD.exe which is located in FreeCAD_build\bin 
 
Making it portable 
 
First, create a new folder that will contain FreeCAD.exe and all of the needed files. (e.g. 
C:\Users\Peter\FreeCAD\FreeCAD_r3730) I like to put the revision number of FreeCAD in the 
name, which can be gotten by opening FreeCAD, and clicking Help > About FreeCAD. 
 
Next copy bin, Mod, and data located inside your build folder to the new folder. Now inside the 
bin folder delete everything that ends with d. (e.g. QtCored4.dll, freetyped.dll). These are 
debug versions, which you don’t need. You can also delete all .exe files except assistant.exe 
Finally copy msvcm90.dll, msvcp90.dll, and msvcr90.dll located in: 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT to 
the bin folder. Now you should be able to move this folder anywhere and FreeCAD should still 
work. 

You might also like