Skip to content

Windows Installation

geisserf edited this page Jul 10, 2020 · 3 revisions

This page is currently under construction

Installing PROST under Windows

  • Download Flex and Bison binaries from WinFlexBison. You need both executables, commonly named as win_bison.exe and win_flex.exe. In the following we assume Flex and Bison are located at C:\prost_libs\win_bison.exe and C:\prost_libs\win_flex.exe.

  • Add the location of Flex and Bison to the CMake variables: the variable BISON_EXECUTABLE has to point to C:\prost_libs\win_bison.exe and the variable FLEX_EXECUTABLE has to point to C:\prost_libs\win_flex.exe. In Visual Studio 2019 you can view these variables by checking the 'Show advanced variables' checkbox in the CMakeSettings.json window.

This is an example of how CMakeSettings.json for VisualStudio2019 looks on my system:

{
  "configurations": [
    {
      "name": "x64-Debug",
      "generator": "Ninja",
      "configurationType": "Debug",
      "inheritEnvironments": [ "msvc_x64_x64" ],
      "buildRoot": "${projectDir}\\out\\build\\${name}",
      "installRoot": "${projectDir}\\out\\install\\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "",
      "ctestCommandArgs": "",
      "variables": [
        {
          "name": "BISON_EXECUTABLE",
          "value": "E:\\Repositories\\win_flex_bison-2.5.22\\win_bison.exe",
          "type": "FILEPATH"
        },
        {
          "name": "FLEX_EXECUTABLE",
          "value": "E:\\Repositories\\win_flex_bison-2.5.22\\win_flex.exe",
          "type": "FILEPATH"
        }
      ]
    }
  ]
}

Clone this wiki locally