Compiling (Speeding up)/ro: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
{{Docnav |
||
|[[FreeCAD_Docker_CLI_mode|FreeCAD Docker CLI mode]] |
|||
|[[Compile on MacOS|Compile on MacOS]] |
|||
|[[Third Party Libraries |
|[[Third_Party_Libraries|Third Party Libraries]] |
||
}} |
}} |
||
{{TOCright}} |
|||
==Overview== |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 55: | Line 60: | ||
Distcc poate fi utilizat pentru compilarea distribuită în rețea. |
Distcc poate fi utilizat pentru compilarea distribuită în rețea. |
||
</div> |
</div> |
||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 60: | Line 66: | ||
</div> |
</div> |
||
{{Userdocnavi}} |
{{Userdocnavi{{#translation:}}}} |
||
[[Category:Developer_Documentation{{#translation:}}]] |
|||
[[Category:Developer |
[[Category:Developer{{#translation:}}]] |
||
{{clear}} |
Revision as of 15:46, 30 December 2020
Overview
Atunci când dezvoltați FreeCAD, trebuie să compilați din surse, iar faza de compilare / construire poate începe să mînânce un timp valoros din timpul de dezvoltare. Iată câteva sfaturi pentru a scurta acest proces și a face timpul de compilare/construcție mai eficient.
CCache
Instalează ccache în compilările cache
Dezactivarea modulelor
Utilizați cmake-curses-gui, cmake-qt-gui sau flag cmake pentru a dezactiva modulele pe care nu lucrați
For example, to avoid building the FEM and Mesh workbenches:
cmake -DBUILD_FEM=OFF -DBUILD_MESH=OFF ../freecad-source
Use cmake-gui
, cmake-curses-gui
, or cmake-qt-gui
to display all the possible variables that can be edited in the configuration; using these interfaces you can easily switch on or off different workbenches.
make -j
Utilizați -j # pentru a specifica numerul sarcinilor/jobs. O sugestie ar fi, numărul de nuclee de pe computer, e.g.
make -j $(nproc)
Run four compilation commands in parallel:
make -j4
Compile as many files in parallel as the number of CPU cores in your system. This is useful if you have many cores and want to use them all to compile the software.
make -j$(nproc)
Compile as many files in parallel as the number of CPU cores in your system, minus two. Use this so that your system is still responsive to do some other task; for example, two cores will allow you to use a browser, while the rest of the cores keep compiling the software on the background.
make -j$(nproc --ignore=2)
distcc
Distcc poate fi utilizat pentru compilarea distribuită în rețea.
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub