Skip to content

Windows Compile Guide

MackBambu edited this page Mar 28, 2025 · 15 revisions

Environment setup

Install Following tools:

building the deps

Suppose you download the codes into D:/work/Projects/BambuStudio
create a directory to store the dependence built: D:/work/Projects/BambuStudio_dep

open 'x64 Native Tools Command Prompt for VS 2019' as the windows shell, and execute following commands in shell:
cd BambuStudio/deps
mkdir build
mkdir BambuStudio_dep
cd build
cmake ../ -G "Visual Studio 17 2022" -A x64 -DDESTDIR="./BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release -DDEP_DEBUG=OFF
msbuild /m ALL_BUILD.vcxproj

It takes "00:14:27.37" to finish it on my machine (11th Gen Intel(R) Core(TM) i9-11900 @2.50GHz 2.50 GHz, with 32.0 GB DDR)

building the Bambu Studio

create a directory to store the installed files at D:/work/Projects/BambuStudio/install_dir
cd BambuStudio
mkdir install_dir
mkdir build;cd build

set -DWIN10SDK_PATH to your windows sdk path(for example: C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0) in below command:
cmake .. -G "Visual Studio 17 2022" -A X64 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="D:/work/Projects/BambuStudio_dep/usr/local" -DCMAKE_INSTALL_PREFIX="../install_dir" -DCMAKE_BUILD_TYPE=Release -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0"

then build it using command
cmake --build . --target install --config Release -- -m

or building it under the Visual Studio 2022 (set the BambuStudio_app_gui as start project)
image

Clone this wiki locally