Comments (20)
--with-xlswriter --enable-reader --with-openssl-md5
# --with-openssl-md5 使用Openssl MD5
# --with-bundled-md5 使用内置MD5
具体看这里:viest/php-ext-xlswriter#479 (comment)
我改了下 换成下面这个, 上面两个参数 不要了,换成 --with-openssl-dir=
viest/php-ext-xlswriter#479 (comment)
--with-xlswriter --enable-reader --with-openssl-dir=/usr/openssl
from swoole-cli.
原来就是不到自定义的宏,作者把定义宏提到了common里
不过,还得排掉 config.m4里的md5调用 就ok 了
from swoole-cli.
打开xlswriter扩展里的config.m4,删除带有md5的行,应该有两处,重新config,build就过了。
from swoole-cli.
@jatyPeng 因为一直都编译不成功,暂时把它移除了主分支。需要研究下xlswriter 源码,并做相应的修改。
具体信息看这里: #42
它还在这里了: jingjingxyk#59
from swoole-cli.
好的。我去加他们的QQ群,看看是否能够支持下。
from swoole-cli.
快速验证
添加这个文件: https://github.com/jingjingxyk/swoole-cli/blob/feature_ext_xlswriter/conf.d/xlswriter.php
php prepare.php --with-build-type=release \
-zip -swoole -curl -gd -imagick -mongodb -redis -sqlite3 -pdo_sqlite -mysqli -pdo_mysql -soap -xsl -gmp -yaml \
-openssl -bcmatch -pcntl -mbstring -sockets -mysqlnd -sodium -exif -readline -intl -opcache -bcmath \
-pdo \
+xlswriter
bash make.sh config
bash make.sh build
from swoole-cli.
多谢您的回复,xlsWriter作者说会尽快给到支持。感谢大家。😀
from swoole-cli.
@jingjingxyk 您xlsWriter用 main_static_built 分支编译试下,谢谢。
from swoole-cli.
原来就是不到自定义的宏,作者把定义宏提到了common里
不过,还得排掉 config.m4里的md5调用 就ok 了
能具体说下要怎么处理吗?🏊🏻♀️
from swoole-cli.
快速验证 添加这个文件: https://github.com/jingjingxyk/swoole-cli/blob/feature_ext_xlswriter/conf.d/xlswriter.php
php prepare.php --with-build-type=release \ -zip -swoole -curl -gd -imagick -mongodb -redis -sqlite3 -pdo_sqlite -mysqli -pdo_mysql -soap -xsl -gmp -yaml \ -openssl -bcmatch -pcntl -mbstring -sockets -mysqlnd -sodium -exif -readline -intl -opcache -bcmath \ -pdo \ +xlswriter bash make.sh config bash make.sh build
按照这个,我本地已经编译成功
https://github.com/jingjingxyk/swoole-cli/pull/59/files#diff-fdc5006be5d11efba7f32aa4463ef212c137e952383aad3991f709589456407b
不过,还需要有处理的地方
https://github.com/jingjingxyk/swoole-cli/actions/runs/4970122832/jobs/8893799193
from swoole-cli.
/usr/bin/ld: /usr/openssl/lib/libcrypto.a(libcrypto-lib-md5_dgst.o): in function `MD5_Update':
md5_dgst.c:(.text+0x0): multiple definition of `MD5_Update'; ext/xlswriter/library/libxlsxwriter/third_party/md5/md5.o:/work/ext/xlswriter/library/libxlsxwriter/third_party/md5/md5.c:219: first defined here
/usr/bin/ld: /usr/openssl/lib/libcrypto.a(libcrypto-lib-md5_dgst.o): in function `MD5_Final':
md5_dgst.c:(.text+0x130): multiple definition of `MD5_Final'; ext/xlswriter/library/libxlsxwriter/third_party/md5/md5.o:/work/ext/xlswriter/library/libxlsxwriter/third_party/md5/md5.c:259: first defined here
/usr/bin/ld: /usr/openssl/lib/libcrypto.a(libcrypto-lib-md5_dgst.o): in function `MD5_Init':
md5_dgst.c:(.text+0x1e0): multiple definition of `MD5_Init'; ext/xlswriter/library/libxlsxwriter/third_party/md5/md5.o:/work/ext/xlswriter/library/libxlsxwriter/third_party/md5/md5.c:208: first defined here
more info : https://github.com/jingjingxyk/swoole-cli/actions/runs/4970122832/jobs/8893799193#step:7:8456
from swoole-cli.
构建好了:
https://github.com/jingjingxyk/swoole-cli/actions/runs/4970402562
https://github.com/jingjingxyk/swoole-cli/actions/runs/4970402472
按照提供的办法,加了 hook 后,能编译通过
可以下载下来试试
from swoole-cli.
@jingjingxyk 您编译个支持m1的,我来下载测试。谢谢。
from swoole-cli.
@jatyPeng 我没有M1 的 macos
github action 关于macos m1 actions/runner#805 (comment)
from swoole-cli.
@jingjingxyk 我看您一直在编译,也看不懂您在处理什么。如果需要沟通的您直接说哈。
from swoole-cli.
@jatyPeng 对于 外部依赖库的路径处理
from swoole-cli.
@jatyPeng 对于 外部依赖库的路径处理
看不懂啊。。您能去对方git里再沟通吗?
from swoole-cli.
@jatyPeng 对于 外部依赖库的路径处理
看不懂啊。。您能去对方git里再沟通吗?
from swoole-cli.
@jatyPeng 验证完毕了,现在可以了哈。 你可以在你的 macos m1 上试试
git clone -b feature_ext_xlswriter https://github.com/jingjingxyk/swoole-cli.git
from swoole-cli.
@jingjingxyk 非常感谢周末也帮忙处理这些问题。我看xlsWriter作者早上6点也将代码合并到了master。此事完美解决了。我关掉此issue了。
等您合并推送到cli master,我就可以找cli打带swoole-loader的包了。😀
from swoole-cli.
Related Issues (20)
- GD 库 库支持.avif 格式的图片
- ./make.sh config 成功,但 ./make.sh build 报错 HOT 1
- 构建加速:方式
- 项目镜像地址
- Makefile:14198 HOT 4
- 是否不支持macos11 HOT 3
- macos 、linux 构建步骤 HOT 5
- 建议将Swoole Compiler的loader编译到cli中。 HOT 4
- gdb swoole-cli core.xx 提示 (no debugging symbols found) ...done. HOT 3
- 5.1 编译pdo 协程 有适配的方案吗? HOT 7
- 大佬,常用的国标加密库能不能加进去? HOT 4
- main分支 alpine 容器内构建 make openssl 失败 HOT 3
- swoole-cli /sync-source-code.php 代码有问题 HOT 1
- windows 使用 Cygwin 构建 swool-cli 不成功。 HOT 18
- swoole-cli 5.1.1 不支持php-fpm运行了吗? HOT 1
- Cygwin 环境中的这个 swoole-cli 似乎不能够很好的支持 phpstan HOT 1
- swoole-cli 是否对 try catch 捕获的协程异常做了一些调整,使调用栈的错误信息不在控制台打印出来了? HOT 7
- build提示 ext/phar/phar_internal.h:619:1: error: expected identifier or '(' HOT 4
- fpm下安装composer失败 HOT 5
- 配合hyperf使用提示 swoole_signalfd_event_callback HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-cli.