Notifications
Clear all

[Solved] Slicer 2.9.0 flatpak  

Page 1 / 2
  RSS
Rob
 Rob
(@rob-16)
Eminent Member
Slicer 2.9.0 flatpak

Hi

After installing flatpak on my Debian "trixie" I startet the flatpak file as user "flatpak run com...." and get the result:

flatpak run com.prusa3d.PrusaSlicer

Message: 16:22:12: Starting PrusaSlicer flatpak with entrypoint script
--------------------------------------------------------------------------
: ~/Prusa
 > $ Gtk-Message: 16:22:13.063: Failed to load module "colorreload-gtk-module"
Gtk-Message: 16:22:13.063: Failed to load module "window-decorations-gtk-module"
[2025-02-10 16:22:14.254197] [0x00007f9acee5e740] [error]   UserAccount: Failed to read token - no datafile found.
16:22:18: Debug: window wxTreeCtrl@0x55d425437ca0 ("treeCtrl") lost focus even though it didn't have it
16:22:18: Debug: window wxTreeCtrl@0x55d425437ca0 ("treeCtrl") lost focus even though it didn't have it
16:22:18: Debug: window wxTreeCtrl@0x55d425437ca0 ("treeCtrl") lost focus even though it didn't have it
16:22:18: Debug: window wxTreeCtrl@0x55d425437ca0 ("treeCtrl") lost focus even though it didn't have it

 The slicer starts but is not ready for any input.

Any solution for this?

 

Best Answer by Walter Layher:

So this is the find command, to be executed after the cmake step of the second stage build in the folder ".../Prusaslicer/build", just substitute the "/home/walter/devel/" path with the matching path on your system. After that the "make -j4" should run until the end.

find . -name "link.txt" -exec sed -i "s+/usr/lib/x86_64-linux-gnu/libpng16.so.16.46.0+/home/walter/devel/PrusaSlicer/deps/build/destdir/usr/local/lib/libpng.a+g" {} +
Posted : 10/02/2025 4:10 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

I am on debian trixie as well. I followed the build instructions for PrusaSlicer on github and compiled it from source. No more flatpak shenanigans.

Posted : 10/02/2025 4:44 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

Thanks for your reply.

I tried this as well but had noch luck, wil try again.

 

Posted : 10/02/2025 5:47 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

So, I tried to compile as described ...

CMake Error at libs/accumulators/CMakeLists.txt:15 (target_link_libraries):
  The link interface of target "boost_accumulators" contains:

    Boost::numeric_ublas

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



-- Generating done (0.3s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_DEBUG_POSTFIX


CMake Generate step failed.  Build files cannot be regenerated correctly.
make[2]:  [CMakeFiles/dep_Boost.dir/build.make:92: dep_Boost-prefix/src/dep_Boost-stamp/dep_Boost-configure] Fehler 1
make[1]:  [CMakeFiles/Makefile2:157: CMakeFiles/dep_Boost.dir/all] Fehler 2
make: *** [Makefile:136: all] Fehler 2

no success....

Posted : 10/02/2025 5:58 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

Did you build the dependencies first? This can take quite a while.

Posted : 10/02/2025 6:17 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

yes, I followed the description step by step on "Building PrusaSlicer on UNIX/Linux"

CMake Error at /usr/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Boost: Found unsuitable version "1.74.0", but required is at
  least "1.83.0" (found /usr/include, )
Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.30/Modules/FindBoost.cmake:2409 (find_package_handle_standard_args)
  CMakeLists.txt:374 (find_package)
Posted : 10/02/2025 6:22 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

On your system some more current libboost*-dev libraries are not installed. I think libboost1.83-dev is the current version at the moment. Try to do a "apt update && apt upgrade" or install the libs manually if the -dev versions are not installed.

Posted : 10/02/2025 6:30 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

I'll check tomorrow.

Thx. 👍 

Posted : 10/02/2025 7:27 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

Hi, did not work. However, I'll give it another try to compile it.

 

Posted : 11/02/2025 12:24 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

The error messages usually helped me find a solution for what was either missing on my system (e.g. some lib<something>-dev packages) or what went wrong and googling helped me on my way.

Posted : 11/02/2025 12:38 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

OK, so, what I did so far:

followed the Linux howto: https://github.com/prusa3d/PrusaSlicer/blob/master/doc/How%20to%20build%20-%20Linux%20et%20al.md

under 2. Building dependencies -

The compiler want automake-1.16 but automake-1.17 is installed, at the end of the make I get the messages

 cd . && /bin/bash /home/rdu/Prusa/PrusaSlicer/deps/build/dep_MPFR-prefix/src/dep_MPFR/missing automake-1.16 --gnu
/home/rdu/Prusa/PrusaSlicer/deps/build/dep_MPFR-prefix/src/dep_MPFR/missing: Zeile 81: automake-1.16: Kommando nicht gefunden.
WARNING: 'automake-1.16' is missing on your system.


make[2]:  [CMakeFiles/dep_MPFR.dir/build.make:86: dep_MPFR-prefix/src/dep_MPFR-stamp/dep_MPFR-build] Fehler 2
make[1]:  [CMakeFiles/Makefile2:547: CMakeFiles/dep_MPFR.dir/all] Fehler 2
make: *** [Makefile:136: all] Fehler 2

 I get stuck

Posted : 11/02/2025 12:50 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

I have automake-1.17 also. You can create a symlink with the name it expects, like "ln -s /usr/bin/automake-1.17 /usr/bin/automake-1.16".
Perhaps they have the version number hard-coded somewhere.

Posted : 11/02/2025 12:58 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

Seems to be an issue found on git: #14081

Posted : 11/02/2025 1:00 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

But the symlink workaround works for this.

Posted : 11/02/2025 1:03 pm
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

ok, the symlink is working too,  but I still get

configure: creating ./config.status
make[2]:  [CMakeFiles/dep_MPFR.dir/build.make:86: dep_MPFR-prefix/src/dep_MPFR-stamp/dep_MPFR-build] Fehler 2
make[1]:  [CMakeFiles/Makefile2:547: CMakeFiles/dep_MPFR.dir/all] Fehler 2
make: *** [Makefile:136: all] Fehler 2
Posted : 11/02/2025 1:15 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

Now the forum hiccup has removed my how-to steps from yesterday evening how to get a successful build of PrusaSlicer. I'll wait some time before I'll try to post this again. Perhaps the forum will restore the posts somehow by itself.

Posted : 12/02/2025 11:01 am
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE:

Hi Walter, there are strange things going on the forum. I have received your posts on my mobile phone but when i tried to check on my PC I could not see your posts in the forum, even after login.

Also, when I logged in and clicked on the post entry I was logged out .... I had to click on logon again, ongoing .....

Anyway, Ill check out the script and try to figure out if the paths you are referring to are the same on my PC.

Posted : 12/02/2025 11:58 am
Rob
 Rob
(@rob-16)
Eminent Member
Topic starter answered:
RE: Slicer 2.9.0 flatpak

I'm afraid that the script for replacing the definitions doesn't work.

In my environment I have  checked the path to link.txt - looks different.

./PrusaSlicer/deps/build/builds/Boost/libs/atomic/CMakeFiles/boost_atomic.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/timer/CMakeFiles/boost_timer.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/exception/CMakeFiles/boost_exception.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/serialization/CMakeFiles/boost_wserialization.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/serialization/CMakeFiles/boost_serialization.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/graph/CMakeFiles/boost_graph.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/random/CMakeFiles/boost_random.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/log/CMakeFiles/boost_log.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/log/CMakeFiles/boost_log_setup.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/type_erasure/CMakeFiles/boost_type_erasure.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/filesystem/CMakeFiles/boost_filesystem.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/url/CMakeFiles/boost_url.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/chrono/CMakeFiles/boost_chrono.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/program_options/CMakeFiles/boost_program_options.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/locale/CMakeFiles/boost_locale.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/container/CMakeFiles/boost_container.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/nowide/CMakeFiles/boost_nowide.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/thread/CMakeFiles/boost_thread.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/date_time/CMakeFiles/boost_date_time.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/coroutine/CMakeFiles/boost_coroutine.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/iostreams/CMakeFiles/boost_iostreams.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/context/CMakeFiles/boost_context.dir/link.txt
./PrusaSlicer/deps/build/builds/Boost/libs/json/CMakeFiles/boost_json.dir/link.txt
./PrusaSlicer/deps/build/builds/Blosc/blosc/CMakeFiles/blosc_static.dir/link.txt

all on standard Debian trixie installation

 

 

Posted : 12/02/2025 12:29 pm
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

This is the wrong step. The replacement is not needed for building the deps. Just start "make" and wait until the error message. Then cd into "....PrusaSlicer/deps/build/dep_MPFR-prefix/src/dep_MPFR" and type "autoreconf" there. This will fix the version mismatch for automake. After this go back into "....PrusaSlicer/deps/build/" and type "make" again. This will build the deps.
The replacement part is needed after the main build (2nd stage after the build of the deps) after the cmake there. I'm working on shortening it to a simple find one-liner. Will post that in a few minutes.

Posted : 12/02/2025 12:39 pm
Rob liked
Walter Layher
(@walter-layher)
Noble Member
RE: Slicer 2.9.0 flatpak

So this is the find command, to be executed after the cmake step of the second stage build in the folder ".../Prusaslicer/build", just substitute the "/home/walter/devel/" path with the matching path on your system. After that the "make -j4" should run until the end.

find . -name "link.txt" -exec sed -i "s+/usr/lib/x86_64-linux-gnu/libpng16.so.16.46.0+/home/walter/devel/PrusaSlicer/deps/build/destdir/usr/local/lib/libpng.a+g" {} +
Posted : 12/02/2025 12:54 pm
Rob liked
Page 1 / 2
Share: