Package Details: prusa-slicer-git 2.3.0.alpha0.r312.g548497bba-2

Git Clone URL: https://aur.archlinux.org/prusa-slicer-git.git (read-only, click to copy)
Package Base: prusa-slicer-git
Description: G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
Upstream URL: https://github.com/prusa3d/PrusaSlicer
Licenses: AGPL3
Conflicts: prusa-slicer
Submitter: Salamandar
Maintainer: Salamandar
Last Packager: Salamandar
Votes: 6
Popularity: 0.47
First Submitted: 2019-07-08 08:14
Last Updated: 2020-09-14 09:09

Latest Comments

1 2 3 4 Next › Last »

Lucki commented on 2020-10-13 12:11

I get the following error when trying to build:

==> ERROR: Cannot find the git package needed to handle git sources.

noradtux commented on 2020-09-23 16:29

I added this in build() after cd "${srcdir}/PrusaSlicer" to make it use the included qhull:

    patch -p0 <<EOP
--- src/qhull/CMakeLists.txt.orig   2020-09-23 18:22:48.830149558 +0200
+++ src/qhull/CMakeLists.txt    2020-09-23 18:23:00.240254589 +0200
@@ -10,7 +10,7 @@

 # see bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925540

-find_package(Qhull 7.2 QUIET)
+#find_package(Qhull 7.2 QUIET)

 add_library(qhull INTERFACE)
EOP

presidentwolf commented on 2020-09-19 13:03

Can't get it to build. It complains about issues linking to qhull - which is installed, but recently updated.

CMake Error at src/CMakeLists.txt:101 (add_executable):
  Target "PrusaSlicer" links to target "Qhull::qhullcpp" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Warning (dev) at src/libslic3r/CMakeLists.txt:17 (add_library):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "libslic3r" links to target "Qhull::qhullcpp" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at src/slic3r/CMakeLists.txt:222 (add_library):
  Target "libslic3r_gui" links to target "Qhull::qhullcpp" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/libslic3r/CMakeLists.txt:3 (add_executable):
  Target "libslic3r_tests" links to target "Qhull::qhullcpp" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/slic3rutils/CMakeLists.txt:2 (add_executable):
  Target "slic3rutils_tests" links to target "Qhull::qhullcpp" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/fff_print/CMakeLists.txt:2 (add_executable):
  Target "fff_print_tests" links to target "Qhull::qhullcpp" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/sla_print/CMakeLists.txt:2 (add_executable):
  Target "sla_print_tests" links to target "Qhull::qhullcpp" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

Update: Downgraded qhull to the previous version. Builds fine.

kevorr commented on 2020-09-16 20:25

I had to add this to get it to build:

@@ -49,6 +49,7 @@ build() {

     cd build
     cmake .. -G Ninja \
+        -DBoost_NO_BOOST_CMAKE=ON \
         -DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_INSTALL_LIBDIR=lib \
         -DSLIC3R_FHS=ON \

I'm not entirely sure what this does but I found out about it in this AUR comment

Salamandar commented on 2020-09-14 09:10

@mikelkook thanks for the PR upstream.

The flag has been fixed. Sorry, my workstation is on ubuntu now so the updates may be a bit slow to come. I need to setup a small Archlinux container for that.

mikelkook commented on 2020-09-14 08:46

Pull request #4738 just got merged. All that's left is to update the build flag in the PKGBUILD.

mrsinham commented on 2020-09-12 22:18

this works, sorry mikelkook I was tired and inverted the flags by setting DSLIC3R_STATIC at ON, not DSLIC3R_PCH.

I confirm that the branch of mikelkook with DSLIC3R_PCH=ON works for me. Can we update the AUR?

Thanks mikelkook!

mikelkook commented on 2020-09-12 18:45

@mrsinham: Did you really set the compile flag -DSLIC3R_PCH in Line 55 in the PKGBUILD from OFF to ON? Cause that's exactly the error I'm also getting when it's set to OFF.

mrsinham commented on 2020-09-12 09:44

With the fix of mikelkool I am going further in the compilation but still in error :

FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/ObjectDataViewModel.cpp.o /usr/lib/ccache/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOCALE_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DLIBNEST2D_GEOMETRIES_clipper -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_UNICODE -D__WXGTK__ -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../src -Isrc/platform -I../src/clipper -I../src/polypartition -I../src/hidapi/include -Isrc/libslic3r -I../src/libnest2d/include -I../src/miniz -I../src/glu-libtess/include -isystem /usr/include/eigen3 -isystem /usr/lib/wx/include/gtk3-unicode-3.0 -isystem /usr/include/wx-3.0 -isystem ../src/libigl -isystem /usr/include/OpenEXR -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fext-numeric-literals -Wall -Wno-reorder -pthread -O3 -DNDEBUG -fPIC -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -pthread -DOPENVDB_ABI_VERSION_NUMBER=7 -std=gnu++17 -MD -MT src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/ObjectDataViewModel.cpp.o -MF src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/ObjectDataViewModel.cpp.o.d -o src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/ObjectDataViewModel.cpp.o -c ../src/slic3r/GUI/ObjectDataViewModel.cpp Dans le fichier inclus depuis ../src/slic3r/GUI/ObjectDataViewModel.hpp:7, depuis ../src/slic3r/GUI/ObjectDataViewModel.cpp:1: ../src/slic3r/GUI/ExtraRenderers.hpp:108:53: erreur: « std::function » n'a pas été déclaré 108 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^~~ ../src/slic3r/GUI/ExtraRenderers.hpp:108:66: erreur: expected « , » or « ... » before « < » token 108 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^ Dans le fichier inclus depuis ../src/slic3r/GUI/ObjectDataViewModel.hpp:7, depuis ../src/slic3r/GUI/ObjectDataViewModel.cpp:1: ../src/slic3r/GUI/ExtraRenderers.hpp:114:10: erreur: « function » dans l'espace de noms « std » ne nomme pas un type de patron 114 | std::function<bool()> can_create_editor_ctrl { nullptr }; | ^~~~~~~~ Dans le fichier inclus depuis ../src/slic3r/GUI/ObjectDataViewModel.hpp:7, depuis ../src/slic3r/GUI/ObjectDataViewModel.cpp:1: ../src/slic3r/GUI/ExtraRenderers.hpp:1:1: note: « std::function » est défini dans l'en-tête « <functional> » ; avez-vous oublié « #include <functional> » ? +++ |+#include <functional> 1 | #ifndef slic3r_GUI_ExtraRenderers_hpp_ ../src/slic3r/GUI/ExtraRenderers.hpp: Dans la fonction membre « void BitmapTextRenderer::set_can_create_editor_ctrl_function(int) »: ../src/slic3r/GUI/ExtraRenderers.hpp:108:92: erreur: « can_create_editor_ctrl » n'a pas été déclaré dans cette portée 108 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^~~~~~~~~~~~~~~~~~~~~~ ../src/slic3r/GUI/ExtraRenderers.hpp:108:117: erreur: « can_create_fn » n'a pas été déclaré dans cette portée 108 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^~~~~~~~~~~~~ Dans le fichier inclus depuis ../src/slic3r/GUI/ObjectDataViewModel.hpp:7, depuis ../src/slic3r/GUI/ObjectDataViewModel.cpp:1: ../src/slic3r/GUI/ExtraRenderers.hpp: Au niveau global: ../src/slic3r/GUI/ExtraRenderers.hpp:152:53: erreur: « std::function » n'a pas été déclaré 152 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^~~ ../src/slic3r/GUI/ExtraRenderers.hpp:152:66: erreur: expected « , » or « ... » before « < » token 152 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^ ../src/slic3r/GUI/ExtraRenderers.hpp:156:10: erreur: « function » dans l'espace de noms « std » ne nomme pas un type de patron 156 | std::function<bool()> can_create_editor_ctrl { nullptr }; | ^~~~~~~~ ../src/slic3r/GUI/ExtraRenderers.hpp:156:5: note: « std::function » est défini dans l'en-tête « <functional> » ; avez-vous oublié « #include <functional> » ? 156 | std::function<bool()> can_create_editor_ctrl { nullptr }; | ^~~ ../src/slic3r/GUI/ExtraRenderers.hpp: Dans la fonction membre « void BitmapChoiceRenderer::set_can_create_editor_ctrl_function(int) »: ../src/slic3r/GUI/ExtraRenderers.hpp:152:92: erreur: « can_create_editor_ctrl » n'a pas été déclaré dans cette portée 152 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^~~~~~~~~~~~~~~~~~~~~~ ../src/slic3r/GUI/ExtraRenderers.hpp:152:117: erreur: « can_create_fn » n'a pas été déclaré dans cette portée 152 | void set_can_create_editor_ctrl_function(std::function<bool()> can_create_fn) { can_create_editor_ctrl = can_create_fn; } | ^~~~~~~~~~~~~ [313/357] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/UndoRedo.cpp.o

mikelkook commented on 2020-09-12 05:50

Got the same, but the real error is some lines above. I made pull request #4738 which fixes the compilation error. Until this gets merged one could temporary set the url in the PKGBUILD to 'https://github.com/charlie89/PrusaSlicer#branch=fix-build-on-arch-linux'.

The other issue is that this PKGBUILD currently builds with -DSLIC3R_PCH=OFF, which results in various compilation errors, setting this to ON makes the compilation succeed.