Skip to content

Couldn't resolve native function 'opencc_open' #3

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

Closed
zeqinjie opened this issue Jul 27, 2024 · 3 comments
Closed

Couldn't resolve native function 'opencc_open' #3

zeqinjie opened this issue Jul 27, 2024 · 3 comments

Comments

@zeqinjie
Copy link

你好我使用这个库,我遇到错误如下
Invalid argument(s): Couldn't resolve native function 'opencc_open' in 'package:opencc/src/lib_opencc.dart' : No asset with id 'package:opencc/src/lib_opencc.dart' found. No available native assets. Attempted to fallback to process lookup. dlsym(RTLD_DEFAULT, opencc_open): symbol not found.

@lindeer
Copy link
Owner

lindeer commented Aug 5, 2024

@zeqinjie 你好,opencc作为直接可运行文件目前native-assest还不支持,windows下编译因为msys的原因也有这个错误,能把你的情况说的再详尽些么?

@zeqinjie
Copy link
Author

@lindeer 你好,我安装文档说明先执行了 dart --enable-experiment=native-assets run bin/opencc.dart. 后执行脚本还是会报上面的错误。

@lindeer
Copy link
Owner

lindeer commented Aug 16, 2024

@zeqinjie 这是因为native-assets不支持直接dart run这里

@lindeer lindeer closed this as completed Aug 16, 2024
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