Ask questionsissues compiling with VS2019



Operating system type + version

Windows 10 1903


I 99% sure this is me doing something wrong. I want to understand better how the program works in order to be more helpful and create some functions, one of the first steps i'm trying is to learn how to compile the source (never did anything similar before), so i followed the guide but did not suceeded, i never used visual studio before (my programming skills are arduino, lol).

The error i'm having when trying to compile is posted here pastebin .

i also read something about compiling libraries, i have no idea which ones are, and where to download them. there is nothing on the guide.


Answer questions douggorgen

I am now able to compile and run PrusaSlicer using Visual Studio 2019. Hope this helps.


  1. I am a total noob, so go easy on me. This procedure is probably not optimal.

  2. I installed all of Visual Studio because I was getting errors for missing includes. The errors went away after installing everything. If anyone knows the exact minimum set of options, please post here. For me, it's not worth my time to figure out the minimum set of options just to save a few GB.

  3. After this worked the first time, I uninstalled everything and did it over to make sure it still worked.

  4. I have not tried all the combinations of builds i.e. debug, release, 32 bit, 64bit, cross compile, etc. So far it works for me in Windows 64 bit debug mode.

  5. I did this on my gaming machine which had never before been used for code development so there should not have been anything present that helped me without my knowing about it.

  6. These build steps are of course based on the "Building PrusaSlicer on Microsoft Windows" guide. I repeat those steps to show the actual parameters that I used.

Now for the procedure I followed:

  1. Install Visual Studio Community 2019 from Select all workload options // I don't know which ones are required, so I selected them all

  2. Install git for Windows from download and run the exe accepting all defaults

  3. download from github I downloaded this to d:\downloads\PrusaSlicer and unzipped to d:\downloads\PrusaSlicer\PrusaSlicer-master\ so this will be my prefix for all my steps. Substitute your prefix.

  4. go to the Windows Start Menu and Click on "Visual Studio 2019"->"x64 Native Tools Command Prompt" to open a command window

  5. cd d:\downloads\PrusaSlicer\PrusaSlicer-master\deps

  6. mkdir build

  7. cd build

  8. cmake .. -G "Visual Studio 16 2019" -DDESTDIR="d:\downloads\PrusaSlicer\PrusaSlicer-master"

  9. msbuild /m ALL_BUILD.vcxproj // This took 13.5 minutes on my machine: core I7-7700K @ 4.2Ghz with 32GB main memory

  10. cd d:\downloads\PrusaSlicer\PrusaSlicer-master\

  11. mkdir build

  12. cd build

  13. cmake .. -G "Visual Studio 16 2019" -DCMAKE_PREFIX_PATH="d:\downloads\PrusaSlicer\PrusaSlicer-master\usr\local"

  14. open Visual Studio for c++ development (VS asks this the first time you start it)

  15. Open->Project/Solution or File->Open->Project/Solution (depending on which dialog comes up first)

  16. click on d:\downloads\PrusaSlicer\PrusaSlicer-master\build\PrusaSlicer.sln

  17. Debug->Start Debugging or Debug->Start Without debugging PrusaSlicer should start. You're up and running!


Related questions

Confusing dialog when trying to enable soluble interfaces with support_material_contact_distance > 0. hot 2
Feature request for MMU2/MMU2S: Integrate Skinnydip string reduction into PrusaSlicer hot 2
Prusaslicer 2.0 Colorchange enhancement idea hot 1
[Feature Request] bridge infill width hot 1
Prusa Slicer 2.0.0 File Associations hot 1
Firmware update fail hot 1
Bad seams on non-straight surfaces - PrusaSlicer hot 1
MMU2S Single mode filament selection inconsistency between Slic3r and printer hot 1
Some objects are too tall and cannot be printed without extruder collisions hot 1
Errors compiling dependancies for version_2.0.0-rc on macOS (10.14 - Mojave) hot 1
slic3r 1.42.0 beta2, z contact distance issue. hot 1
"Gtk-CRITICAL" messages on command line (PrusaSlicer 2.0.0, AppImage, Ubuntu 18.04) hot 1
Feature request: Configure wipe to infill/object settings on individual parts hot 1
Firmware update fail hot 1
Printer profiles for printers other than Prusa. - PrusaSlicer hot 1
Github User Rank List