我尝试交叉编译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进行编译。我怎样才能解决这个问题?谢谢你提前回答。在