python交叉编译器版本要求_Windows Python的交叉编译

我尝试交叉编译64位Windows的libplist(https://github.com/libimobiledevice/libplist)并从中创建一个DLL。我在Windows10上下载了mingw-w64 for Linux子系统(ubuntu14.04bash),并设置了环境变量(CC、CXX、CPP、RANLIB)。我使用./autogen.sh --host=x86_64-w64-mingw32来配置包。但是它退出时会出现错误:configure:16825: error:

Could not link test program to Python. Maybe the main Python library has been

installed in some non-standard library path. If so, pass it to configure,

via the LDFLAGS environment variable.

Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"

============================================================================

ERROR!

You probably have to install the development version of the Python package

for your distribution. The exact name of this package varies among them.

============================================================================

在config.log中,它说:

^{pr2}$

当我试图为Linux编译它时,它没有返回这个错误,所以我认为这是因为它需要为windowsx86u64编译python库。我从C:/Python27/include复制了Windows中的相应文件,并尝试分别为配置LDFLAGS="-L/path/to/python/include"和{}设置环境变量。他们两个都没用。我还注意到,在C:/Python27/include中还有一个名为pyconfig.h的文件,为什么脚本使用Linux上安装的那个?有没有办法让它用另一个?在

我的主要目标是从libusbmuxd(https://github.com/libimobiledevice/libusbmuxd)生成一个64位的Windows DLL,但它也需要libplist进行编译。我怎样才能解决这个问题?谢谢你提前回答。在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值