Build slic3r on Windows//How to compile on Windows SLIC3R

Source: Internet
Author: User
Tags glob slic3r

Download the strawberry Perl 5.22 64bit green version and unzip it somewhere, such as the C packing directory, such as

C:\strawbrry-perl-5.22.2.1-64bit-portable

Download boost 1.59 and unzip it somewhere, like

C:\boost_1_59_0

Note that the downloaded Strawberry Perl has a portable.bat that can set up the Perl runtime environment, and that Perl comes with GCC 4.9. All of the following commands are executed in this command-line environment.

At that command prompt, switch to boost's unzip directory, enter

Bootstrap.bat MinGW

B2 TOOLSET=GCC link=static runtime-link=static threading=multi--with-thread Stage

Note that only the Boost.thread library is compiled, and at the end of the stage directory you will see the generated static libraries, including thread, system, and so on.

Download the source code for SLIC3R in one place, such as

C:\Slic3r-repo

Open the xs/build.pl file and see line 41st

For my $path (glob (' c:\dev\boost* '), Glob (' c:\boost* '))

You can change the second one directly to our boost path C:\boost_1_59_0

For my $path (glob (' c:\dev\boost* '), Glob (' c:\boost_1_59_0* '))

And then enter

Perl build.pl

Start compiling.

If no problem, start the GUI below.

Since the strawberry Perl comes with GCC 4.9 generated C + + exception code, there is a bug, so WX has a unit test must not pass, stuck in the jumping window where, and will continue to try and keep on making mistakes. So we can't start compiling with build.pl from SLIC3R, we have to install the dependencies with the Perl installation package Manager Cpanm.

Direct input

Cpanm--force Alien::wxwidgets

Cpanm--force Wx

After the wait, if there is no error, then enter the Perl build.pl--gui Install the remaining dependencies, and then you should be done.

Packing with PP is easy, and you can try the official instructions to do it yourself.

Build slic3r on Windows//How to compile slic3r on Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.