问题描述
我已经安装了所有我认为必要的软件包.我不知道是什么原因导致我无法成功编译最新的稳定python的问题.
I have installed all necessary packages i think. I do not know what causes my problem that i cannot successfully compile latest stable python.
./configure --host=i686-w64-mingw32 --build=x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-w64-mingw32
checking for python3.7... python3.7
checking for python interpreter for cross build... python3.7
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... configure: error: cross build not supported for i686-w64-mingw32
还有一个有希望的cmake项目.→这个问题仍然悬而未决. https://github.com/python-cmake-buildsystem/python-cmake-构建系统
There is also promising project for cmake.. → The question remains open.https://github.com/python-cmake-buildsystem/python-cmake-buildsystem
推荐答案
对我和 Python的自述文件,知识,不支持此功能. Windows版本是使用非跨平台MSVC编译器正式制作的,因此没有必要维护其他工具链支持.
To my, and Python's README's, knowledge, this is not supported. Windows builds are officially made with the non-cross-platform MSVC compiler, so there's no point maintaining an additional toolchain support.
在 https://bugs.python.org/issue3754 .
Anaconda必须在其python
食谱中私下添加 的支持Python的代码库.
Anaconda must be adding support privately in its python
recipe by extensively patching Python's codebase.
这篇关于如何在Linux下为Windows交叉编译python解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!