-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Running Slic3r from git on Windows
-
Install git if you don't have already (http://code.google.com/p/msysgit/downloads/list?can=3&q=official+Git). Choose to run git from Windows prompt (adjust path environment) instead of git Bash. Line ending conversions don't matter, choose the default.
-
Download CitrusPerl 5.14 (preferred over 5.12) from http://www.citrusperl.com/download.html (note that a CitrusPerl package with all Slic3r dependencies preinstalled can be downloaded at http://dl.slic3r.org/citrusperlforslic3rperl-standard-51402-20903-msw-x86-014.zip)
-
Open the command prompt and cd to the directory where you downloaded the CitrusPerl installer (Choose a reasonable place, like
C:\dev\CitrusPerl, as you won't be able to move it after the installation. Then type:
C:\dev\CitrusPerl\bin\citrusutils.exe
(You can also launch it by browsing to its directory and double clicking it.)
A window called citrusutils will be opened. Click the "Set GCC" button to set the GCC compiler. Select "Download the binary MinGW distribution used to build this Perl and click Ok. It will now start downloading the compiler. Select the Folder where you would like to install the compiler and click Ok. You can now close the citrusperl utilities.
Now type:
C:\dev\CitrusPerl\bin\citrusterm.bat
(it might be called citrusterm32.bat if you downloaded the 32-bit version)
(Again, you can also open it by double clicking it)
The citrusterm.bat command opens a prompt with the perl paths correctly set.
You will need to open a citrusterm terminal every time you want to launch Slic3r!
Now cd to the directory where you want to install your Slic3r repository (it could be under your Documents directory, for example) and continue copying and pasting the following commands:
cpan JSON App::cpanminus
cpanm https://github.com/alexrj/Math-Libm/tarball/master
cpanm Moo Math::Clipper Math::Geometry::Voronoi Boost::Geometry::Utils Class::XSAccessor Math::ConvexHull Math::PlanePath
git clone git://github.com/alexrj/Slic3r.git
cd Slic3r
perl Build.PL
If You get an error (in Win7 probably) "Can't write to cpanm home '/.cpanm': You should fix it with chown/chmod first." You need to do this: You have to Shift-Right-click on the C: drive and click "Open Command Window Here" from the drop down list. Then in the command window type "mkdir .cpanm". You can close the command window and continue the install.
After that you're ready to launch Slic3r by typing:
perl slic3r.pl
To start slic3r with a single click You should create a shortcut with a target that shows to the full paths of the "wperl.exe" file and then your slicer.pl file. Mine looks like this.
C:\dev\CitrusPerl\bin\wperl.exe C:\Users\YourUsername\Documents\GitHub\Slic3r\slic3r.pl