-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prusa-slicer: 2.7.4 -> 2.8.0 #325590
prusa-slicer: 2.7.4 -> 2.8.0 #325590
Conversation
I'm trying to build it using
I'm not sure what I am doing wrong. |
Sounds like it's this: PrusaSlicer #12884 Also, this would fix #322910. |
I tried the patch @mogorman posted in the linked upstream issue, but that didn't work for me. The linked gentoo patches though worked. so here they are are for reference: --- a/src/slic3r/Config/Version.cpp
+++ b/src/slic3r/Config/Version.cpp
@@ -7,6 +7,7 @@
#include <cctype>
#include <boost/filesystem/operations.hpp>
+#include <boost/filesystem/directory.hpp>
#include <boost/nowide/fstream.hpp>
#include "libslic3r/libslic3r.h"
--- a/src/slic3r/GUI/UserAccountCommunication.cpp
+++ b/src/slic3r/GUI/UserAccountCommunication.cpp
@@ -13,6 +13,7 @@
#include <boost/filesystem.hpp>
#include <boost/nowide/cstdio.hpp>
#include <boost/nowide/fstream.hpp>
+#include <boost/nowide/convert.hpp>
#include <curl/curl.h>
#include <string> and fixed linkin: --- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -376,6 +376,7 @@ set(SLIC3R_GUI_SOURCES
)
find_package(NanoSVG REQUIRED)
+find_package(OpenSSL REQUIRED)
if (APPLE)
list(APPEND SLIC3R_GUI_SOURCES
@@ -404,7 +405,7 @@ endforeach()
encoding_check(libslic3r_gui)
-target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui libvgcode GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES} NanoSVG::nanosvg NanoSVG::nanosvgrast)
+target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui libvgcode GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES} NanoSVG::nanosvg NanoSVG::nanosvgrast OpenSSL::SSL OpenSSL::Crypto)
if (MSVC)
target_link_libraries(libslic3r_gui Setupapi.lib) As a side note: linking used up a lot of memory (only have 8 gigs + 16GB swap) and froze my system once, so I built it with the Edit: just realized, that the patch from @mogorman is identical with the linking fix only, so I guess that's why it didn't build, becaus it was missing the includes still.. Edit 2: the patched package builds and runs perfectly fine on |
The wxgtk branch should also be updated to match latest upstream. Also, we can cherry-pick the patch instead of waiting for it to be merged upstream. |
I'll go ahead and add the rest of the gentoo patches to my upstream PR, I didn't know if I needed both or just one. |
The upstream PR should work now. |
Also I'm not sure if this is actually a good idea but #331539 is actually how I ran into this PR in the first place. |
I build it with all the previous and @K900's |
What hardware is that on? On my 7950X3D with |
LENOVO ThinkPad X1 Carbon 2nd - Intel® Core™ i5-4300U CPU @ 1.90GHz (4) - 8GB RAM |
I've merged #331539, this will probably need a rebase now. |
@K900 I synced the fork, should I remove the "FIXME: remove in 2.8.0" code your PR added? |
Yes. Also, please rebase instead of merging. |
How do I do that? This is my first attempt at doing something like this, so I am still very new. |
It depends on how your nixpkgs remote is set up. |
My nixpkgs is set up on my computer with two remotes, origin (my nixpkgs fork), and upstream (upstream nixpkgs). |
Then |
a9ee5f3
to
65665bd
Compare
Did I do it right? Just making sure. |
Mostly, but please change the commit message to the standard format ( |
65665bd
to
be598af
Compare
Okay, if we're all set, should we cherry-pick the patch like you suggested (and how do I do that), or should we wait for it to be merged upstream (might take a while) |
Look into the |
be598af
to
e7150f3
Compare
I think I figured it out! I got it to compile, and it runs! |
I guess that means it's time to make this a normal PR instead of a draft? |
Feel free to undraft this when you think it's OK to merge. |
Nevermind, this appears to be an upstream issue. We will probably be waiting a while for that to be fixed, so we should be fine to merge. |
Result of 1 package failed to build:
The error looks to be the same as with 2.7.4 currently so not introduced by this PR: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?error: builder for '/nix/store/kg16943n1fm1yap9mh01hvma41ba6q1c-prusa-slicer-2.8.0.drv' failed with exit code 2; last 25 log lines: > include/boost/functional.hpp:45:24: note: '__unary_function' declared here > using std::unary_function; > ^ > include/boost/functional.hpp:487:68: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'? > class const_mem_fun1_ref_t : public boost::functional::detail::binary_function > ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ > include/boost/functional.hpp:46:24: note: '__binary_function' declared here > using std::binary_function; > ^ > include/boost/functional.hpp:533:73: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'? > class pointer_to_unary_function : public boost::functional::detail::unary_function > ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ > include/boost/functional.hpp:45:24: note: '__unary_function' declared here > using std::unary_function; > ^ > include/boost/functional.hpp:557:74: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'? > class pointer_to_binary_function : public boost::functional::detail::binary_function > ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ > include/boost/functional.hpp:46:24: note: '__binary_function' declared here > using std::binary_function; > ^ > 16 errors generated. > make[2]: *** [src/libslic3r/CMakeFiles/libslic3r.dir/build.make:77: src/libslic3r/CMakeFiles/libslic3r.dir/cmake_pch.hxx.pch] Error 1 > make[1]: *** [CMakeFiles/Makefile2:1078: src/libslic3r/CMakeFiles/libslic3r.dir/all] Error 2 > make: *** [Makefile:146: all] Error 2 |
Could this be related to this?
I don't see webkit being added as a dependency anywhere in here. |
I don't think so, given that people are even experiencing this issue on windows.
That's my bad, but I tried all three versions of There's an invisible "Connection Failed" message, (see my comment on PrusaSlicer Issue 12969) but that's all. |
Yeah I got that too, but before that I also shortly got a message telling me to install Still not super sure how webkit is being linked exactly, but this seems to do the trick. |
Interesting, I'll try this when I get home and add it to the PR. |
e7150f3
to
e6967ae
Compare
Sure enough, it works. No idea how its working without webkit, but we take those lol. I'll make sure to forward this fix to the folks having the same problem on the prusa repo. |
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.