Compiling (Speeding up): Difference between revisions

From FreeCAD Documentation
(Preliminary page on speeding up builds (https://forum.freecadweb.org/viewtopic.php?f=10&t=20117))
 
(Marked this version for translation)
Line 1: Line 1:
<translate>
<translate>
<!--T:1-->
When developing FreeCAD one needs to build from source and the compiling/build phase can start eating in to precious development time. Here are some tips to shorten that process and make build times more efficient.
When developing FreeCAD one needs to build from source and the compiling/build phase can start eating in to precious development time. Here are some tips to shorten that process and make build times more efficient.


=== CCache ===
=== CCache === <!--T:2-->
Install ccache to cache builds
Install ccache to cache builds


=== Disable Modules ===
=== Disable Modules === <!--T:3-->
Use cmake-curses-gui, cmake-qt-gui, or cmake flags to disable modules you aren't working on
Use cmake-curses-gui, cmake-qt-gui, or cmake flags to disable modules you aren't working on


=== make -j ===
=== make -j === <!--T:4-->
Use make -j # to specify the number of jobs. A suggested value is your number of computer cores, e.g.
Use make -j # to specify the number of jobs. A suggested value is your number of computer cores, e.g.
<pre>make -j $(nproc)</pre>
<pre>make -j $(nproc)</pre>


<!--T:5-->
{{Docnav|Compiling on Mac|Third Party Libraries}}
{{Docnav|Compiling on Mac|Third Party Libraries}}


<!--T:6-->
[[Category: Developer Documentation]]
[[Category: Developer Documentation]]



Revision as of 20:58, 6 February 2017

When developing FreeCAD one needs to build from source and the compiling/build phase can start eating in to precious development time. Here are some tips to shorten that process and make build times more efficient.

CCache

Install ccache to cache builds

Disable Modules

Use cmake-curses-gui, cmake-qt-gui, or cmake flags to disable modules you aren't working on

make -j

Use make -j # to specify the number of jobs. A suggested value is your number of computer cores, e.g.

make -j $(nproc)
Compiling on Mac
Third Party Libraries