Building Slic3r PE on Microsoft Windows
The currently supported way of building Slic3r PE on Windows is with CMake and MS Visual Studio 2013
You can use the free Visual Studio 2013 Community Edition.
CMake installer can be downloaded from the official website.
Building Slic3r PE with Visual Studio
Git clone slic3r into c:/local folder.
note: you can change the slic3r folder name, but don't forget to change it also in all commands below.
Building Dependencies
- go into C:/local/Slic3r/deps
- create the deps-build folder and go into it
- execute>cmake .. -G "Visual Studio 12 Win64"
- open Slic3r-deps.sln with visual studio 2013
- select the "relWithDebInfo" target (or an other one if you want it)
- right-clic on ALL_BUILD and clic on build
- After compiling, you must check that all projects are successfully built
Building Slic3r
- Add the SLIC3R_STATIC : 1 Environment Variable (Open the System (Control Panel) -> Click the Advanced system settings link -> Click Environment Variables -> ADD)
- Be sure you don't have mingw in your path.
- Go into C:/local/Slic3r
- Create the build folder and go into it
- Execute>cmake .. -G "Visual Studio 12 Win64" -DCMAKE_PREFIX_PATH=C:\local\Slic3r\deps\deps-build\destdir\usr\local
- open C:\local\Slic3rcpp\build64\src\png\libpng\cmake_install.cmake and search the lines that contains the expr reg "png(pf)?.[35]". Rplace these paths by the good ones (->C:/local/Slic3r/src/png/libpng/libpng(pf)?.[35])
- Open Slic3r.sln with visual studio 2013
- Select the "relWithDebInfo" target (same as deps)
- Right-clic on ALL_BUILD and clic on build
- It should compile Slic3r. You can test the .exe (it's inside C:\local\Slic3r\build\src\RelWithDebInfo)
Installing Slic3r
The install project will copy the include, lib & share folder inside the install folder (C:/Program Files/Slic3r), be sure to have the credentials to do so.
You have to copy the exe and dll yourself.
Some information about the version and name are in the version.inc file at the root folder.
other
For the 32-bit variant, use "Visual Studio 12" instead of "Visual Studio 12 Win64"
Building with ninja
To use Ninja, replace the cmake
and nmake
commands with:
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
ninja