Required Software: 2008Expresswithsp1Enux1504728.Iso
Required Software: 2008Expresswithsp1Enux1504728.Iso
7Zip: http://www.7zip.org/
(If you have never used 7zip, it is used by right clicking on a file or folder and then choosing a
command in the 7zip menu)
Visual C++ 2008 Express:
http://download.microsoft.com/download/E/8/E/E8EEB3947F424963A2D829559B738298/VS
2008ExpressWithSP1ENUX1504728.iso
To install, right click on the file and click 7Zip > 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/freecad/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
Thirdparty libraries
Download FreeCADLibs_8.2_x86_VC9.7z from
http://sourceforge.net/projects/freecad/files/FreeCAD%20LibPack/ and extract to your FreeCAD
folder (e.g. C:\Users\Peter\FreeCAD)
Configuring
Start cmakegui 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.