-
Notifications
You must be signed in to change notification settings - Fork 336
Linux Compile Guide
We take Ubuntu with wayland and gtk3 as example
Install Following tools:
sudo apt-get install cmake git g++ build-essential libgl1-mesa-dev m4 libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules pkgconf libglu1-mesa-dev libcairo2-dev libgtk-3-dev libsoup2.4-dev libwebkit2gtk-4.0-dev libgstreamer1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev libosmesa6-dev
You need to build the dependence of BambuStudio first. (Only needs for the first time)
Suppose you download the codes into /home/username/work/projects/BambuStudio
create a directory to store the dependence built: /home/username/work/projects/BambuStudio_dep
(Please make sure to replace the username with the one on your computer)
cd BambuStudio/deps
mkdir build;cd build
cmake ../ -DDESTDIR="/home/_username_/work/projects/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release -DDEP_WX_GTK3=1
make -jN
(N can be a number between 1 and the max cpu number)
create a directory to store the installed files at /home/username/work/projects/BambuStudio/install_dir
cd BambuStudio
mkdir install_dir
mkdir build;cd build
cmake .. -DSLIC3R_STATIC=ON -DSLIC3R_GTK=3 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="/home/_username_/work/projects/BambuStudio_dep/usr/local" -DCMAKE_INSTALL_PREFIX="../install_dir" -DCMAKE_BUILD_TYPE=Release
cmake --build . --target install --config Release -jN
(N can be a number between 1 and the max cpu number)
Currently we only give the steps on Ubuntu here, For more Linux Platforms or script building, we can find the details or help at https://github.com/bambulab/BambuStudio/issues/12.(Thanks to all the contributors) and we will update more details later on this Page.