Each operating system has its own page for compiling FreeCAD in the Online Help Documentation.
|Compile on Windows||Compile on Linux||Compile on MacOS||Compile on Docker|
To compile on BSD, and other Unix systems, you can follow the general instruction in Compile on Linux but using the appropriate dependencies in those systems.
To compile FreeCAD only CLI mode (without GUI), here is the docker image FreeCAD Docker CLI mode.
To compile the programming documentation, see Source documentation.
To learn to use revision control system and contribute code see Source code management.