Development

Software development on Windows is always interesting. This page documents some platform-specific issues people have encountered, and ways to resolve them.

Python

Windows 10 “helpfully” redirects the “python” executable in PATH to its bundled one, instead of any you may have installed separately (such as the one provided by Visual Studio). This breaks many python scripts.

To fix this:

Some Python scripts used by optional features of specregex require the pyyaml python pacakge to be installed. Running pip install pyyaml in the appropriate environment will achieve this.

Git Bash

Your home directory defaults to C:\Users\<Your name here>\.

CMake

CMake works the same on Windows as it does on Linux.

Spectral LLVM

Make sure the /bin folder can be found in PATH.

Ninja

If you choose to use the Ninja cmake generator, do not use versions later than 1.10.0. They introduce an as-yet-unfixed bug that causes it to crash in some circumstances.

Instead, either: - Use the JOM CMake generator. It’s functionally equivalent to GNU make on Linux, so may feel familiar to users with experience there. - Use the Visual Studio CMake generator - Use Ninja 1.9.0