-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何自定义每个依赖库的编译选项,添加自己想要的其他库? #287
Comments
关键就是修改这个文件 https://github.com/crazywhalecc/static-php-cli/blob/main/config/ext.json 修改 lib-depends 项 或者 lib-suggests 项 例子: "gd": {
"type": "builtin",
"arg-type": "custom",
"arg-type-windows": "with",
"lib-depends": [
"zlib",
"libpng"
],
"ext-depends": [
"zlib"
],
"lib-suggests": [
"libavif",
"libwebp",
"libjpeg",
"freetype"
]
},
|
我指的是这样的编译选项:CFLAGS='' CC='x86_64-linux-musl-gcc -static -idirafter /software/spc/buildroot/include -idirafter /usr/include/ -idirafter /usr/include/x86_64-linux-gnu/ ' ./Configure no-shared zlib --prefix=/ --libdir=lib -static --with-zlib-include=/software/spc/buildroot/include --with-zlib-lib=/software/spc/buildroot/lib no-legacy linux-x86_64 |
[15:27:06] [INFO] enabling gd without library libavif |
只要编译 |
我检查了日志里面EXEC里的./configure,编译选项里的确没有--with-webp,但是编出来的cli文件的确-i里有webp,很奇怪。另外把configure命令重新到php-src里执行,不能检测通过libevent_core checking PHP version... PHP 8.x
checking for include/event2/event.h... found in /software/spc/buildroot
checking for libevent version... ok
checking for event_free in -levent_core... no
configure: error: event_free not found in event_core library, or the library is not installed |
这个问题解决了,原因是putenv设置的环境变量没有用export等效设置到shell当中。 |
我不是pull源码的,是直接下载的release里的spc可执行文件
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: Jerry Ma ***@***.***>
发送时间: 2023年12月21日 00:22
收件人: crazywhalecc/static-php-cli ***@***.***>
抄送: Endy ***@***.***>, Author ***@***.***>
主题: Re: [crazywhalecc/static-php-cli] 如何自定义每个依赖库的编译选项,添加自己想要的其他库? (Issue #287)
我刚才试了下这个 log 提示的问题,似乎最新的分支没有这个问题。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
No description provided.
The text was updated successfully, but these errors were encountered: