

A relative path like ".\PrusaSlicer-deps\usr\local" does not work.


Note that CMAKE_PREFIX_PATH must be absolute path. G "Visual Studio 16 2019" -DCMAKE_PREFIX_PATH="c:\src\PrusaSlicer-deps\usr\local" Go to the Windows Start Menu and Click on "Visual Studio 2019" folder, then select the ->"圆4 Native Tools Command Prompt" to open a command window and run the following:Ĭmake. Compile the dependencies.ĭependencies are updated seldomly, thus they are compiled out of the PrusaSlicer source tree. Reading through the instructions in the next section may help diagnose more complex issues.įollow the steps below if you want to understand how to perform a manual build, or if you're troubleshooting issues with the automatic build script.After a deps change, you may just need to rebuild everything with the -s=all switch.after updating Visual Studio), building with build_win.bat will force CMake to regenerate its cache on an error. If CMake complains about missing binaries or paths (e.g.The last several lines of output from build_win.bat will usually have the most helpful error messages.However, the build_win.bat script can be very helpful if you run into build failures after updating your source tree. You're best off initiating builds from within Visual Studio for day-to-day development. The full list of build script options can be listed by running: build_win.bat -?.Clean and rebuild everything (app and deps): build_win.bat -s=all.Clean and rebuild the dependencies: build_win.bat -s=deps.Clean and rebuild the application: build_win.bat -s=app.Perform an incremental application build (the default) with: build_win.bat -s=app-dirty.Generate a release build without debug info by adding -c=Release or a full debug build with -c=Debug.Open the solution in Visual Studio after the build completes by changing the -r switch to -r=ide.Change the destination for the dependencies by pointing -d to a different directory such as: build_win.bat -d=s:\PrusaSlicerDeps.You can change the above command line options to do things like: Launch the resulting prusa-slicer-console.exe binary.Configure and build all application targets as RelWithDebInfo.Configure and build deps as RelWithDebInfo with c:\src\PrusaSlicer-deps as the destination directory.The build script will run for a while (over an hour, depending on your machine) and automatically perform the following steps: C:\src\PrusaSlicer>build_win.bat -d=.\PrusaSlicer-deps -r=console
