Skip to content

Building AutoGrid on Windows using MSVC and Meson#6

Open
rwxayheee wants to merge 45 commits intoccsb-scripps:masterfrom
rwxayheee:compat_fixes_win
Open

Building AutoGrid on Windows using MSVC and Meson#6
rwxayheee wants to merge 45 commits intoccsb-scripps:masterfrom
rwxayheee:compat_fixes_win

Conversation

@rwxayheee
Copy link

This PR adds support for building AutoGrid on Windows using MSVC and Meson.

@rwxayheee
Copy link
Author

rwxayheee commented Apr 20, 2025

Summary of changes

  1. Minor revision on meson.build to:
    (1) Support build on Windows with MSVC
    (2) Ensure numerical consistency with Linux x86_64 build (validated)
    (3) Build the Windows .exe into a self-contained (portable) executable

  2. Added a centralized win_compat.h/.cc to provide missing includes on Windows

  3. Multiple minor changes are made because MSVC is stricter with string literals (has to be const char* not just char*)

  4. Port paramdat2h.tch to an equivalent Python script to use on Windows

@rwxayheee
Copy link
Author

Steps to install

  1. Download this version (currently branch compat_win_fixes) of the code

  2. Ensure that the target Windows system has the following:
    Python3, meson, ninja, MSVC
    (also recommended) micromamba, PowerShell, Git

  3. Use the same exact commands to build AutoGrid with meson as outlined in README (https://github.com/ccsb-scripps/AutoGrid?tab=readme-ov-file#meson-newer-method)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant