php - 交叉编译 PHP for arm - 错误无法运行测试
问题描述
我正在尝试为 cortex A6 - armv7 平台编译 PHP 5.6.36(在 PHP 网站上下载)。
我这样配置编译器:
./configure --host=arm CC="arm-gad-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/gad/1.0.0/sysroots/cortexa9hf-vfp-neon-gad-linux-gnueabi" --disable-dom --without-iconv --without-openssl --without-pear --without-sqlite3 --disable-pdo --without-pdo-sqlite --disable-phar
但我得到这个错误:
checking for strcasestr... configure: error: in `/home/PHP/php-5.6.36':
configure: error: cannot run test program while cross compiling
问我是否需要更精确。
谢谢你的帮助,
解决方案
当您进行交叉编译时,您正在创建不会在您正在编译的系统上运行(测试)的二进制文件。观察。
然而,编写配置脚本的人并不认为人们会进行交叉编译。这应该被标记为维护者的错误。
推荐阅读
- javascript - 在 JavaScript 中运行 python (selenium)
- java - 从主要活动单击按钮时应用程序自动关闭
- html - 绝对定位跨度自动被推离网页
- python - 在 sympy 中解析数组表达式
- python-3.x - 使用插值从 csv 文件绘制等高线图:结果为 NaN
- javascript - 如何将“面积(平方公里):整数”添加到我的架构中
- javascript - React Hook "useDispatch" 在函数 "setApprovedDecision" 中被调用,它既不是 React 函数组件
- sql - 更新记录以从相关记录之一设置值
- python - 用python进行变量替换
- python - “请在此处输入您的密码:无”无问题