Skip to content
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

json 插件加载不出来 #52

Open
No-sleeping opened this issue Mar 11, 2020 · 3 comments
Open

json 插件加载不出来 #52

No-sleeping opened this issue Mar 11, 2020 · 3 comments

Comments

@No-sleeping
Copy link

麻烦问下,我这里的json插件一直没有初始化成功。
怎么才能加载出来json插件的啊。
[info] 17:04:19 log.go:44: [json plugin total: 0]

@ywolf
Copy link
Member

ywolf commented Mar 11, 2020

打包JSON插件到项目代码中

esc -include='.json$' -o plugin/json/JSONPlugin.go -pkg jsonplugin plugin/json/

@No-sleeping
Copy link
Author

运行这一步了,还是提示如下
[info] 16:13:50 log.go:44: [go plugin total: 33]
[info] 16:13:50 log.go:44: [json plugin total: 0]

@No-sleeping
Copy link
Author

后来解决了,以下三条,命令都运行一遍就欧克。
esc -include='.json$' -o plugin/json/JSONPlugin.go -pkg jsonplugin plugin/json/
go build -buildmode=c-shared --ldflags="-w -s -X main.VERSION=20190226" -o kunpeng_c.so
python example/call_so_test.py

[info] 08:47:25 log.go:44: [go plugin total: 33]
[info] 08:47:25 log.go:44: [json plugin total: 14]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants