Cross compiling pybind11 module with Mingw-gcc for Windows from Linux

This page summarizes the projects mentioned and recommended in the original post on /r/cpp_questions

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • CPython

    The Python programming language

  • The incompatibility is with the Python library compatible with MinGW compiler. I tried compiling CPython but it just doesn't work as it seems that the support for MinGW was dropped at some point

  • pyenv

    Simple Python version management

  • Do you have the mingw bash setup as well? If so perhaps installing the python you need using pyenv (https://github.com/pyenv/pyenv) will help. I use pyenv to build different python binding version using pybind and cmake under linux.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • python-cmake-buildsystem

    A cmake buildsystem for compiling Python

  • However, someone tried to port the Python build system to CMake, so you could try that: https://github.com/python-cmake-buildsystem/python-cmake-buildsystem

  • msvc-wine

    Scripts for setting up and running MSVC in Wine on Linux

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts