Only x64 builds are curretnly supported.
- Install Visual Studio 2019 or later with C++ Desktop Development,
Meson, and
CMake. Make sure
meson
,ninja
, andcmake
are on thePATH
. - Install Becker-Hickl's TCSPC Package (make sure SPCM and SPCM-DLL are selected).
- In Git Bash, clone vcpkg (if you do not already have it) and this repo:
git clone https://github.com/microsoft/vcpkg.git
git clone https://github.com/openscan-lsm/OpenScan-BHSPC.git
(Currently, vcpkg is used to obtain libzip conveniently.)
- Bootstrap vcpkg (if you have not done so yet) and install libzip. This should be done in PowerShell or Command Prompt, not Git Bash:
cd path\to\vcpkg
.\bootstrap-vcpkg -disableMetrics
.\vcpkg install libzip --triplet=x64-windows-static
- Build OpenScan-BHSPC. This is best done in the Developer PowerShell for VS 2019 (or later), which can be started from the Start Menu (hint: type 'developer powershell' into the Start Menu to search).
cd path\to\OpenScan-BHSPC
meson setup builddir -Dvcpkgdir=C:\full\path\to\vcpkg -Db_vscrt=static_from_buildtype --buildtype release
meson compile -C builddir
This results in the module OpenScanBHSPC.osdev
in builddir
.