Skip to content

Installation: Windows

Markus Hollander edited this page Feb 8, 2021 · 4 revisions

Step 1: Install C++

Install a C++17 compiler, or update an existing C++ compiler if necessary. Microsoft provides a tutorial for installing the Visual C++ compiler. Make sure to tick "Desktop development in C++" during the isntallation of Visual Studio.

Step 2: Install CMake

Install CMake 3.13 or newer, or update an existing CMake if necessary. CMake.org provides a guide for installing CMake on your computer. This should add cmake to the environment variables but might require a restart of the computer to take effect.

Step 3: Download ProPores2

Download this repository as a ZIP file and extract it to a location of your choice, or use Git to clone the repository.

Step 4: Compile ProPores2

The final step is to create the executable propores.exe in the ProPores2 folder. Open the ProPores2 folder where you have extracted or cloned ProPores2. There are three ways of compiling ProPores2, if one of them does not work, try one of the others:

Option 1: Simply double-click install_windows.bat.

Option 2: Right-click on install_windows.bat and select Run as administrator.

Option 3: Open the Windows command line or PowerShell, e.g. via the search field in the Windows task bar, and navigate to the ProPores2 folder with the cd command (tutorial). Then execute the following commands:

if exist "build\" rmdir /Q /S build
cmake -S . -B build
cmake --build build --config Release --target install
if exist "build\" rmdir /Q /S build

Step 5: Install Python 3 (Optional)

If you want to use batch processing, install Python3 with the package pyyaml.

  1. Download the newest Python 3 installer for Windows.

  2. In the installer, make sure to select Add Python to PATH and then follow the standard installation (Install Now). If you choose a custom installation, make sure that pip is included in the installation.

  3. Open the Command Prompt or PowerShell, e.g. via the search bar in the Windows taskbar, and execute the following command: pip3 install pyyaml

Clone this wiki locally