linux交叉编译出错,交叉编译Python for ARM时出错

我正在尝试为ARM编译Python(3.1.3版),遵循this guide。

以下是我在Ubuntu 12上发出的命令:CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ AR=arm-linux-gnueabi-ar RANLIB=arm-linux-gnueabi-ranlib ./configure --host --build=x86_64-linux-gnu --prefix=/python

make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED="arm-linux-gnueabi-gcc -shared" CROSS_COMPILE=arm-linux-gnueabi- CROSS_COMPILE_TARGET=yes HOSTARCH=x86_64-linux-gnu BUILDARCH=x86_64-linux-gnu

make install HOSTPYTHON=./hostpython BLDSHARED="arm-linux-gnueabi-gcc -shared" CROSS_COMPILE=arm-linux-gnueabi- CROSS_COMPILE_TARGET=yes prefix=~/Python-2.7.2/_install

有几件事要注意。在执行第一个命令时,如果--host设置为arm linux,则不会执行该命令,这告诉我应该使用'--host'进行交叉编译。这就是为什么我什么都没做。

当运行第二条线路时,我得到configure: WARNING: Cache variable ac_cv_host contains a newline.

Failed to configure _ctypes module

Python build finished, but the necessary bits to build these modules

were not found:

_curses _curses_panel _dbm

_gdbm _hashlib _sqlite3

_ssl bz2 ossaudiodev readline zlib To find the necessary bits, look

in setup.py in detect_modules() for the module's name.

Failed to build these modules:

_tkinter

我在运行第三行时也遇到了类似的错误,但我想这是因为上面的命令不起作用。

我想看看有没有人能帮我修好它。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值