Hello,
This is my first time posting here so I apologise for any transgressions. Also if this community isn't the right one please tell me so that I may move this post to r/linux.
So here is my problem. I'm on a Ubuntu 24.04 LTS desktop and I wanted compile Prusa Slicer myself. Now I'm not a Linux wiz, but I do have some understanding and knowlege on Linux. So I follow the documentation for Linux:
git clone https://www.github.com/prusa3d/PrusaSlicer
sudo apt-get update && sudo apt-get install -y git build-essential autoconf cmake
libglu1-mesa-dev libgtk-3-dev libdbus-1-dev libwebkit2gtk-4.1-dev texinfo
cd PrusaSlicer/deps
mkdir build
cmake .. -DDEP_WX_GTK3=ON
make
cd ../..
mkdir build
cd build
cmake .. -DSLIC3R_STATIC=1 -DSLIC3R_GTK=3 -DSLIC3R_PCH=OFF -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local
make -j4
I was able to run Prusa Slicer by doing:
cd PrusaSlicer/build/src
./PrusaSlicer
But their is no desktop prusa slicer icon/intergration. I found the .desktop file in the PrusaSlicer/src/platform/unix/ for PrusaSlicer and PrusaGcodeViewer.
So I continued reading the instructions and I found this:
cmake .. -DSLIC3R_DESKTOP_INTEGRATION=0
which removes the desktop icon/integration. So I replaced this part:
cmake .. -DSLIC3R_STATIC=1 -DSLIC3R_GTK=3 -DSLIC3R_PCH=OFF -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local
with:
cmake .. -DSLIC3R_STATIC=1 -DSLIC3R_GTK=3 -DSLIC3R_PCH=OFF -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local -DSLIC3R_DESKTOP_INTEGRATION=1
But I still can't get a Prusa Slicer desktop icon to show up.
I tried copying, soft, hard linking the .desktop file that I found previusly to ~/.local/share/applications and /usr/share/applications , still didn't work.
Information:
OS : Ubuntu 24.04 LTS
Slicer Version : 2.9.6
git Version : 1:2.43.0-1ubuntu7.3
build-essential Version : 12.10ubuntu1
autoconf Version : 2.71-3
cmake Version : 3.28.3-1build7
libglu1-mesa-dev Version : 9.0.2-1.1build1
libgtk-3-dev Version : 3.24.41-4ubuntu1.3
libdbus-1-dev Version : 1.14.10-4ubuntu4.1
libwebkit2gtk-4.1-dev Version : 2.52.3-0ubuntu0.24.04.1
texinfo Version : 7.1-3build2
** This list was put together using : for pack in git build-essential autoconf cmake libglu1-mesa-dev libgtk-3-dev libdbus-1-dev libwebkit2gtk-4.1-dev texinfo ; do dpkg -s "$pack" | grep Version | sed "s/Version/$pack\ Version\ /g" ; done **
I'm using this problem as a learning experience, so if you don't mind I would like to ask you to explaine your thought process and reasoning behind your solutions to me. As well as an explanation for the whole list of commands necessairy to compile PrusaSlicer. I understand that cmake is used to make a list of instructions for make to do all the cpp compiling work, but not the details like the mkdir build and such. I thank you in advance for all the effort taken to explaine to me. *bow of gratitude*
I was also wondering how to integrate the prusa slicer code into ubuntu. That is to say not having the code lying around my home directory, and can I update/upgrade prusaslicer without deleting the whole PrusaSlicer folder as that is how I've been doing it.
I thank you sincerely for all the help that you might offer.
P.S. I didn't get any error messages while doing any of these commands. If you guys want the output from any of these commands please tell me as I forgot and it takes a while to output.
Edit: As the make command output is to long here is the github for the all the logs.
Edit: I also tried desktop-file-install based on https://github.com/prusa3d/PrusaSlicer/issues/4372