【问题标题】:meson finds python3 binary, fails to find python3 dependencymeson 找到 python3 二进制文件,找不到 python3 依赖项
【发布时间】:2021-09-20 15:52:08
【问题描述】:

我正在尝试在 Cygwin 上使用介子构建某个存储库。这就是发生的事情:

$ meson build_dir
The Meson build system
Version: 0.58.2
Source dir: /home/joeuser/src/meld-3.21.0
Build dir: /home/joeuser/src/meld-3.21.0/build_dir
Build type: native build
Project name: meld
Project version: 3.21.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
Found pkg-config: /usr/bin/pkg-config (1.6.3)
Run-time dependency python3 found: NO (tried pkgconfig and sysconfig)

meson.build:18:0: ERROR: Dependency "python3" not found, tried pkgconfig and sysconfig

为什么会这样?以及如何让介子找到python3的依赖?

注意:我已经安装了python38-pkgconfig,以防万一。

【问题讨论】:

    标签: python python-3.x cygwin pkg-config meson-build


    【解决方案1】:

    如果您还使用 Cygwin 安装程序安装了 python3-devel 软件包,meson 将找到 python3。

    【讨论】:

    • 没错,python3 是一个二进制文件,但大多数 linux 发行版(和 cygwin)分别打包开发头文件。
    • @dcbaker:好吧,我会假设由于 python3 不是库,它不会有“-devel”版本 - 但我想我错了。
    • Python 既是库又是程序。当您使用 C 或 C++ 构建 python 扩展时,您包括 python 头文件和(有时)链接到 libpython。
    猜你喜欢
    • 2019-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-12
    • 2012-04-11
    • 2011-01-24
    相关资源
    最近更新 更多