-
Notifications
You must be signed in to change notification settings - Fork 0
Building from source Windows
| Component | Minimum | Recommended |
|---|---|---|
| Windows | 10 (1903) | 11 |
| CPU | x86_64 4-core | x86_64 8-core / ARM64 |
| RAM | 8 GB | 16 GB |
| Disk | 30 GB free | 50 GB free |
Install the following in order:
-
Visual Studio 2022 (Community edition is free)
- Workload: Desktop development with C++
- Components: MSVC v143, Windows 11 SDK, CMake tools
-
Git for Windows — https://git-scm.com/download/win
-
Git LFS — https://git-lfs.github.com/
-
CMake (3.25+) — https://cmake.org/download/
-
Ninja — https://github.com/ninja-build/ninja/releases
- Add to
PATH
- Add to
-
gettext (for translations) — Install via
winget install GnuWin32.GetTextor GnuWin32
git clone https://github.com/BenJule/BambuStudio.git
cd BambuStudio
git lfs pullUse x64 Native Tools Command Prompt for VS 2022 (found in Start Menu under Visual Studio 2022). This sets up the MSVC toolchain environment.
BuildWindows.bat -dThis builds all C++ dependencies into deps\build\destdir\. First run takes 60–120 min.
BuildWindows.bat -sBuildWindows.bat -pOutput: build\BambuStudio_*.exe (NSIS installer)
BambuStudio is built for both x64 and ARM64 in CI. To build for ARM64 locally, use the ARM64 Native Tools Command Prompt for VS 2022 and pass the architecture flag:
cmake -S . -B build -G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-A ARM64 ^
-DCMAKE_PREFIX_PATH=deps\build\destdir\usr\local| Platform | Architecture | Workflow |
|---|---|---|
| Windows Server 2022 | x64 | ci-build.yml |
| Windows 11 ARM | ARM64 | ci-build.yml |
:: From the x64 Native Tools Command Prompt
cmake -S . -B build -G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DBBL_RELEASE_TO_PUBLIC=1 ^
-DCMAKE_PREFIX_PATH=deps\build\destdir\usr\local
cmake --build build --target BambuStudio --parallel %NUMBER_OF_PROCESSORS%BambuStudio uses NSIS for its Windows installer. Install NSIS 3.x from https://nsis.sourceforge.io/ and add it to PATH.
The installer script is in resources/nsis/. It is called automatically by BuildWindows.bat -p.
Reduce parallel build jobs:
cmake --build build --target BambuStudio --parallel 2Or add more RAM or a larger page file.
CMake was not added to PATH during installation. Re-run the CMake installer and check Add CMake to the system PATH.
The deps build did not complete successfully. Re-run BuildWindows.bat -d and check for errors.
winget install GitHub.GitLFS
git lfs install
git lfs pullSome antivirus software quarantines build outputs. Add the repository directory to your AV exclusion list.