From 095b50cc04b3dc572f9e1ade99647f56d1a59dd2 Mon Sep 17 00:00:00 2001 From: Italo Soares Date: Tue, 24 Dec 2019 00:01:11 -0300 Subject: [PATCH] Added a step by step guide I have added a step by step guide at the end of the original, i had tons of issued for lack of knowledge on how to work with visual studio, this guide has been provided by @douggorgen and helped me to make it work. --- doc/How to build - Windows.md | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/doc/How to build - Windows.md b/doc/How to build - Windows.md index b8829047b..c2dc31ce3 100644 --- a/doc/How to build - Windows.md +++ b/doc/How to build - Windows.md @@ -120,3 +120,49 @@ Refer to the CMake scripts inside the `deps` directory to see which dependencies \*) Specifically, the problem arises when building boost. Boost build tool appends all build options into paths of intermediate files, which are not handled correctly by either `b2.exe` or possibly `ninja` (?). + + +# Noob guide (step by step) + +Install Visual Studio Community 2019 from +visualstudio.microsoft.com/vs/ +Select all workload options for C++ + +Install git for Windows from +gitforwindows.org +download and run the exe accepting all defaults + +download PrusaSlicer-master.zip from github +I downloaded this to c:\PrusaSlicer and unzipped to c:\PrusaSlicer\PrusaSlicer-master\ so this will be my prefix for all my steps. Substitute your prefix. + +Go to the Windows Start Menu and Click on "Visual Studio 2019" folder, then select the ->"x64 Native Tools Command Prompt" to open a command window + +cd c:\PrusaSlicer\PrusaSlicer-master\deps + +mkdir build + +cd build + +cmake .. -G "Visual Studio 16 2019" -DDESTDIR="c:\PrusaSlicer\PrusaSlicer-master" + +msbuild /m ALL_BUILD.vcxproj // This took 13.5 minutes on my machine: core I7-7700K @ 4.2Ghz with 32GB main memory and 20min on a average laptop + +cd c:\PrusaSlicer\PrusaSlicer-master\ + +mkdir build + +cd build + +cmake .. -G "Visual Studio 16 2019" -DCMAKE_PREFIX_PATH="c:\PrusaSlicer\PrusaSlicer-master\usr\local" + +open Visual Studio for c++ development (VS asks this the first time you start it) + +Open->Project/Solution or File->Open->Project/Solution (depending on which dialog comes up first) + +click on c:\PrusaSlicer\PrusaSlicer-master\build\PrusaSlicer.sln + +Debug->Start Debugging or Debug->Start Without debugging +PrusaSlicer should start. You're up and running! + + +note: Thanks to @douggorgen for the original guide, as an answer for a issue