{"id":20843142,"url":"https://github.com/zephyrproject-rtos/crosskit-mingw-w64-libpython","last_synced_at":"2026-04-16T09:33:32.180Z","repository":{"id":126443942,"uuid":"268468695","full_name":"zephyrproject-rtos/crosskit-mingw-w64-libpython","owner":"zephyrproject-rtos","description":"Pre-generated \"libpython*.dll\" Import Libraries for MinGW-w64","archived":false,"fork":false,"pushed_at":"2025-06-02T12:53:02.000Z","size":1348,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T21:18:57.477Z","etag":null,"topics":["sdk-components"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zephyrproject-rtos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-01T08:41:11.000Z","updated_at":"2025-06-02T12:53:08.000Z","dependencies_parsed_at":"2024-11-18T01:35:51.406Z","dependency_job_id":"9a036e71-a4f7-4bf3-a64c-36e375254637","html_url":"https://github.com/zephyrproject-rtos/crosskit-mingw-w64-libpython","commit_stats":null,"previous_names":["zephyrproject-rtos/crosskit-mingw-w64-libpython"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zephyrproject-rtos/crosskit-mingw-w64-libpython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrproject-rtos%2Fcrosskit-mingw-w64-libpython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrproject-rtos%2Fcrosskit-mingw-w64-libpython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrproject-rtos%2Fcrosskit-mingw-w64-libpython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrproject-rtos%2Fcrosskit-mingw-w64-libpython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephyrproject-rtos","download_url":"https://codeload.github.com/zephyrproject-rtos/crosskit-mingw-w64-libpython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrproject-rtos%2Fcrosskit-mingw-w64-libpython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sdk-components"],"created_at":"2024-11-18T01:27:09.619Z","updated_at":"2026-04-16T09:33:32.165Z","avatar_url":"https://github.com/zephyrproject-rtos.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crosskit-mingw-w64-libpython\n\nThis repository contains the pre-generated `libpython*.dll` import libraries\nand headers for the MinGW-w64, in order to facilitate Linux-to-Windows cross\ncompilation of the programs that depend on the `libpython*.dll` (e.g. GDB).\n\nNote that the import libraries in this repository do not target the MSYS2\nPython DLLs; instead, they target the [native Windows Python distribution from\nthe official Python website](https://www.python.org/downloads/windows/).\n\n__SUPERHACK WARNING!__ This repository also contains a special shell script\n(`${LIBPYTHON_KIT_ROOT}/bin/python`) that emulates the GDB build system\n`python-config.py` to allow the Linux GDB build system to resolve the\n`include` and `lib` paths for the Windows Python.\n\n## Generate a new kit\n\nFollow the steps below to generate a new cross `libpython` kit:\n\n1. Download and install x86-64 Python distribution from the\n   [Python website](https://www.python.org/downloads/windows/).\n\n2. Create a kit root directory (referred to as `${LIBPYTHON_KIT_ROOT}` in this\n   document).\n\n3. Copy Python `include` directory to the kit root directory, such that the\n   contents of the `include` directory resides in\n   `${LIBPYTHON_KIT_ROOT}/include`.\n\n4. Copy Python `python[maj][min].dll` (e.g. `python38.dll` for Python 3.8) to\n   `${LIBPYTHON_KIT_ROOT}/lib`.\n\n5. Run the following commands in `${LIBPYTHON_KIT_ROOT}/lib` directory to\n   generate an import library (using Python 3.8 as example):\n\n    ```\n    gendef python38.dll\n    x86_64-w64-mingw32-dlltool -D python38.dll -d python38.def -l libpython38.a\n    ```\n\n## Build GDB\n\n```\n/usr/local/src/gdb-9.1/configure \\\n    --build=x86_64-build_pc-linux-gnu \\\n    --host=x86_64-w64-mingw32 \\\n    --target=arm-none-eabi \\\n    --prefix=\u003cOUTDIR\u003e \\\n    --with-python=${LIBPYTHON_KIT_ROOT}/bin/python\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrproject-rtos%2Fcrosskit-mingw-w64-libpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephyrproject-rtos%2Fcrosskit-mingw-w64-libpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrproject-rtos%2Fcrosskit-mingw-w64-libpython/lists"}