php配方,php - bitbake:向php配方添加php-intl支持 - 堆栈内存溢出

所以我创建了一个bbappend:

bernardo@bernardo-UX51VZA:~/dev/yocto/meta-steempi$ cat recipes-devtools/php/php_7.%.bbappend

DEPENDS += " icu apache2"

RDEPENDS_${PN} += " icu apache2"

PACKAGECONFIG_append_pn-php = " apache2 icu icu-dev"

EXTRA_OECONF += " --with-openssl=${STAGING_DIR_TARGET}${exec_prefix} \

--with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \

--with-icu-dir=${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/icu/60.2-r0/image/usr \

--enable-intl \

"

为了启用intl编译,我在EXTRA_OECONF中添加了--enable-intl和--with-icu-dir 。 但是,即使icu-config的路径已添加到--with-icu-dir ,配置任务也会出现以下错误。

...

| checking whether to enable internationalization support... yes

| checking for location of ICU headers and libraries... not found

| configure: error: Unable to detect ICU prefix or /home/bernardo/dev/yocto/poky/build-qemux86-64/tmp/work/core2-64-poky-linux/icu/60.2-r0/image/usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.

| NOTE: The following config.log files may provide further information.

| NOTE: /home/bernardo/dev/yocto/poky/build-qemux86-64/tmp/work/core2-64-poky-linux/php/7.2.4-r0/build/config.log

| ERROR: configure failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_configure (log file is located at /home/bernardo/dev/yocto/poky/build-qemux86-64/tmp/work/core2-64-poky-linux/php/7.2.4-r0/temp/log.do_configure.19483)

ERROR: Task (/home/bernardo/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb:do_configure) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1802 tasks of which 1801 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

/home/bernardo/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb:do_configure

Summary: There were 2 WARNING messages shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

我怀疑配置正在尝试查找icu的标头,因为icu-config脚本(由icu配方生成)设置了正确的路径。

当我尝试在bbappend中将icu-dev添加到DEPENDS变量时,我得到

ERROR: Nothing PROVIDES 'icu-dev' (but /home/leprechaun/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb DEPENDS on or otherwise requires it). Close matches:

udev

icu RPROVIDES icu-dev

ERROR: Required build target 'php' has no buildable providers.

Missing or unbuildable dependency chain was: ['php', 'icu-dev']

当我尝试将icu-dev添加到bbappend中的RDEPENDS变量时,出现以下错误:

ERROR: Nothing RPROVIDES 'icu-dev-native' (but virtual:native:/home/leprechaun/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb RDEPENDS on or otherwise requires it)

NOTE: Runtime target 'icu-dev-native' is unbuildable, removing...

Missing or unbuildable dependency chain was: ['icu-dev-native']

ERROR: Required build target 'php' has no buildable providers.

Missing or unbuildable dependency chain was: ['php', 'php-native', 'icu-dev-native']

关于如何摆脱困境的任何想法?

谢谢!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值