Skip to content

Meta: Native Windows support #40676

@tobiasdiez

Description

@tobiasdiez

This issue tracks support for the native build on Windows.

Missing Windows support of dependencies

Conda Issues:

  • Meson cannot find libraries without pkg-config files.
    • Workaround: Check that set LIB includes the conda env (e.g. ...\.conda\envs\sage-dev\Library\lib). If not, run conda deactivate followed by conda activate sage-dev and then check again.
    • Alternatively, set LIB=%CONDA_PREFIX%\Library\lib;%LIB%
    • Possible upstream improvement: the compilers conda package should set LIB
  • If you don't have the debug version of Python installed, you may get "LINK : fatal error LNK1104: cannot open file 'python311_d.lib'"
    • Workaround: meson setup builddir -Dbuildtype=release
    • Alternatively, in <path to conda>\sage-dev\include\pyconfig.h uncomment: //# define Py_DEBUG and change python311_d.lib to python311.lib
    • Possible upstream improvement: conda should either ship a debug version of python or a correct pyconfig.h
  • When installingc-compiler on Windows, VS 2022 Build Tools init file is not installed conda-forge/compilers-feedstock#66
    • Workaround: Run everything in "VS x64 Native Tools Command Prompt" (for 64bit) or "Developer Command Prompt for VS2022 (or 2019)" (for 32bit)

Related issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions