Advertisement
j0h

install bambu studio from source on linux

j0h
Mar 14th, 2025 (edited)
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.15 KB | None | 0 0
  1. # install bambu-studio from source on debian based linux distros:
  2. sudo apt update
  3.  
  4. # Install package requirements
  5. sudo apt install -y cmake clang git g++ build-essential \
  6.     libgl1-mesa-dev m4 libwayland-dev libxkbcommon-dev wayland-protocols \
  7.     extra-cmake-modules pkgconf libglu1-mesa-dev libcairo2-dev \
  8.     libgtk-3-dev libsoup2.4-dev libwebkit2gtk-4.0-dev libgstreamer1.0-dev \
  9.     libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev \
  10.     gstreamer1.0-plugins-bad libosmesa6-dev nasm yasm libx264-dev
  11.  
  12. # fetch repo    
  13. git clone https://github.com/bambulab/BambuStudio.git
  14. cd BambuStudio
  15.  
  16. # Build Dependencies:
  17.  
  18. cd deps
  19. mkdir build && cd build
  20. cmake ../ -DDESTDIR="$HOME/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release -DDEP_WX_GTK3=1
  21.  
  22.  
  23. make -j$(nproc)
  24.  
  25. cd ../../
  26. # build source code
  27. cmake .. -DSLIC3R_STATIC=ON -DSLIC3R_GTK=3 -DBBL_RELEASE_TO_PUBLIC=1 \
  28.     -DCMAKE_PREFIX_PATH="$HOME/BambuStudio_dep/usr/local" \
  29.     -DCMAKE_INSTALL_PREFIX="../install_dir" -DCMAKE_BUILD_TYPE=Release
  30.  
  31. cmake --build . --config Release -j$(nproc)
  32. # inside
  33. ~/BambuStudio/build/src
  34. # there is:
  35. bambu-studio
  36.  
  37. #link this to your desired path.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement