From FreeCAD Documentation

Each operating system has its own page for compiling FreeCAD in the Online Help Documentation.

'Windows' 'Linux' 'MacOS' Docker container
Compile on Windows Compile on Linux Compile on MacOS Compile on Docker container

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.

It is also possible to compile FreeCAD on Windows by following the instructions in Compile on Windows or using MSYS2/MinGW following Compile on MinGW.

To compile FreeCAD without its graphic user interface use the FreeCAD Docker CLI mode image.

To compile the programming documentation, see Source documentation.

To learn to use revision control system and contribute code see Source code management.