-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Compiling Slic3r from source #781
Comments
Hello Sebastian! So, I had to download CURL too, that seems to be missing. In addition to the TTB-Path I also needed to add the CURL-Path to CMakeLists.txt like this:
(assuming you extracted curl into C:\local\curl-7.58.0) Where exactly are you hanging right now? |
Maybe that's the problem, I only got a 32bit download link but I try to compile using 64bit perl etc. But according to Google this version is only available in 32bit? I running the cmd line from wperl64d, executing I added your set() commands, changing C:/local/curl-7.58.0/IA64 to C:/local/curl-7.58.0/lib as I don't have a IA64 folder? The result is: I started over with a fresh version of Slic3r directory including your set(). cmake is done, running nmake now.. |
By Visual Studio 2013, 64bit I meant, that I use VS 2013 on a 64bit machine ;-) Sorry for not being clear. As for CURL, I downloaded the compiled version from Stefan Kanthak. For my architecture, I needed to set CURL_LIBRARY to "C:/local/curl-7.58.0/AMD64/LIBCURL.LIB", which is included in this download (IA64 did not work, I corrected that above). I also needed the include/curl-directory, to get that I downloaded the Source Archives of libcurl and added that directory to C:/local/curl.../ folder. The problem you seem to have right now is with the TBB dependency. Do you have a "tbb"-folder at C:\local\tbb ? I compiled successfully right now, but I'm afraid I real live is calling and I may get back to you in the evening. |
Yes, tbb is in place. After starting with a new copy of Slic3r sources and with your sets, I was able to continue until 98% of nmake command. Curl again, I will test your curl version. Creating library XS.lib and object XS.exp |
Using your curl version make the build process sucessful, but the test using ctest --verbose fails: UpdateCTestConfiguration from :C:/Users/Sebastian/Desktop/Slic3r-master/build/DartConfiguration.tcl 1: Test command: C:\wperl64d\bin\perl.exe "C:/wperl64d/bin/prove" "-I" "C:/Users/Sebastian/Desktop/Slic3r-master/local-lib/lib/perl5" 2: Test command: C:\wperl64d\bin\perl.exe "C:/wperl64d/bin/prove" 0% tests passed, 2 tests failed out of 2 starting slic3r fails also: Can't load 'C:\Users\SEBAST |
I did not tried the test after it failed once a couple of weeks ago... |
I also only tried the test because it didn't start. the error during perl Slic3r.pl doens't make much sense to me, as the XS.dll is inside this path. |
Just to let you know, I get the same error when try to start slicer. |
@Sebastianv650 @dartrax With the integration of libcurl I added a bunch of improvements to the build system that should make things easier, especially on Windows. There is a new how-to written that should replace the outdated wiki, located in the If you want to compile Slic3r PE with the latest build fixes, please update your
|
Thank you very much @vojtechkral, worked like a charm! Only one note for the how-to page: It's not mentioned that your will also need to download & install cmake. I think this should be added to the list of needed software. |
@Sebastianv650 Ok, great, thanks for testing. And yes, I'll add a CMake mention, that's a good idea... |
Great it is working for @Sebastianv650 . Closing. |
Where exactly do I have to unzip the slic3r-destdir-64.7z to?
Is that correct? It looks like it can't find anything of that.
|
You have to update the perl distribution according to
https://github.com/prusa3d/Slic3r/blob/master/doc/How%20to%20build%20-%20Windows.md
, or just update C:\wperl64d\cmdline.bat to:
set PATH=%PATH%;c:\wperl64d\site\bin;c:\wperl64d\bin
set PERL_CPANM_HOME=c:\wperl64d\cpanm
set SLIC3R_STATIC=1
set CMAKE_PREFIX_PATH=C:\local\slic3r-destdir-64\usr\local
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
Important here is the new CMAKE_PREFIX_PATH variable.
…On Fri, Mar 16, 2018 at 7:15 PM, dartrax ***@***.***> wrote:
Where exactly do I have to unzip the slic3r-destdir-64.7z to?
I now have:
C:\local\slic3r-destdir-64\usr\local\lib
C:\local\slic3r-destdir-64\usr\include\boost-1_63\boost
C:\local\slic3r-destdir-64\usr\include\curl
C:\local\slic3r-destdir-64\usr\include\tbb
Is that correct? It looks like it can't find anything of that.
I'm getting:
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
xs/CMakeLists.txt:490 (find_package)
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
xs/CMakeLists.txt:490 (find_package)
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
xs/CMakeLists.txt:490 (find_package)
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
xs/CMakeLists.txt:490 (find_package)
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
xs/CMakeLists.txt:490 (find_package)
CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
xs/CMakeLists.txt:490 (find_package)
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1928 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
xs/CMakeLists.txt:490 (find_package)
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find TBB (missing: TBB_INCLUDE_DIRS)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindTBB.cmake:273 (find_package_handle_standard_args)
xs/CMakeLists.txt:508 (find_package)
-- Configuring incomplete, errors occurred!
See also "C:/local/Slic3r/build/CMakeFiles/CMakeOutput.log".
See also "C:/local/Slic3r/build/CMakeFiles/CMakeError.log".
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#781 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFj5I-8WicKKIwy4i_EBNRvLDYvfy5Hwks5tfAE-gaJpZM4SlPzr>
.
|
I already did that. I looked into cmdline_init.bat and noticed the Path C:\local\slic3r-destdir-64\usr\local. Therefore, I concluded that I have to unzip slic3r-destdir-64.7z in such a way that this path exists. |
This is not quite correct, it should be
|
Thanks for spotting that! |
Should the doc - How to build be still up to date? I'm asking because I run into errors even if I start with completely fresh folders. Last lines, not shure if it's due to wxwidgets or the compiler "Compiler/MSVC-ASM" thing: [ 66%] Completed 'googletest-download' -- Warning: Did not find file Compiler/MSVC-ASM -- Configuring incomplete, errors occurred! |
We switched our master to native only (with the exception to Perl bindings
to libslic3r and the associated unit / integration tests). We are now using
wxWidgets 3.1.1. On Windows, we are compiling wxWidgets statically. There
is a cmakefile in the deps directory, which pulls and compiles all the
dependencies. For wxWidgets to compile statically, you have to apply a
patch, which is part of the deps cmake script. I personally (and our other
2 Windows developers) are compiling wxWidgets 3.1.1 from sources using
visual studio IDE after we apply the patch for static compilation of libpng
with a prefix. You have to set the WXWIN environment variable to point to
your wxWidgets install directory before running cmake.
Please note that by default the current master does not require perl. It is
only if you call cmake with the -DSLIC3R_PERL_XS=on, when perl is required
and the Perl unit / integration tests are executed.
…On Sun, Nov 25, 2018 at 7:54 PM Sebastianv650 ***@***.***> wrote:
Should the doc - How to build be still up to date? I'm asking because I
run into errors even if I start with completely fresh folders. Last lines,
not shure if it's due to wxwidgets or the compiler "Compiler/MSVC-ASM"
thing:
[ 66%] Completed 'googletest-download'
[100%] Built target googletest-download
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
CMake Warning at src/CMakeLists.txt:34 (message):
Using builtin libpng. This can cause crashes on some platforms.
-- Warning: Did not find file Compiler/MSVC-ASM
-- WXWIN environment set to:
CMake Error at C:/Program
Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
C:/Program
Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378
(_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindwxWidgets.cmake:953
(find_package_handle_standard_args)
src/CMakeLists.txt:49 (find_package)
-- Configuring incomplete, errors occurred!
See also
"C:/Users/Sebastian/Desktop/Slic3r-master/build/CMakeFiles/CMakeOutput.log".
See also
"C:/Users/Sebastian/Desktop/Slic3r-master/build/CMakeFiles/CMakeError.log".
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#781 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFj5I0cNp5yG6hAwhYFpw40DN7yV1mzhks5uyudTgaJpZM4SlPzr>
.
|
Thanks for the information, but I guess I have to wait until the build instructions are updated. Maybe you could add a "not working at the moment" note until then to prevent others from confusion? I was able to run the deps cmake thing without errors (I guess), but I have no idea where or if the libraries are installed after 30min of searching. This is a little bit over my head without the howto ;) |
@Sebastianv650 I have added a note to both documents that they are out of date. The Windows build still has some issues that are on my todo list. |
I spent the last two days finding out how to compile Slic3r from source. The wiki seams to be outdated, for example my last tries failed due to missing curl, once it's now installed it just fails at the next point. It's quite anouing as I was used to play aroung with the source code and PRs in the time back when Slic3r PE was started, now I'm not longer able to do that.
I tried the strawberry perl way first, but I have the feeling the Visual Studio 2013 way is closer to a point which could be called working so I would be happy if someone could do a writeup for this way, please also point out differences (if any) between building for 32 or 64bit.
I found some scattered informations in various issue threads, but nothing realy helpful for getting the full thing working.
Any volunteer?
The text was updated successfully, but these errors were encountered: