-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
bindgen doesn't generate full path for dart_ffi.DynamicLibrary.open in rid-api.dart #43
Comments
Did this work before and broke recently? Also what is puzzling is why we have a superfluous if (dart_io.Platform.isLinux || dart_io.Platform.isAndroid)
return dart_ffi.DynamicLibrary.open(
'libridtest.so');
[ .. ]
if (dart_io.Platform.isLinux)
return dart_ffi.DynamicLibrary.open(
'/home/et/code/rust/ridtest/target/debug/libridtest.so'); |
It did work before. I'll try later today on a previous version and post the results. |
Not sure how I got it working before because #37 and #28 (which I had used) have the same issue. But I think I found the issue. In /rid-build/src/dart_generators.rs, in the function dart_open_dl
Also, unrelated, but once I run setup.sh, I always need to update Cargo.toml before I run bindgen
to
|
Awesome, thanks for tracking this down. Could you please file a PR that fixes it? WRT |
Submitted PR. Unable to test on Android as I am having issues successfully completing ./sh/android |
Bindgen generated file missing full path on first if statement in /plugin/lib/generated/rid_api.dart
Works when I add full path.
Flutter Linux/ Rid master pull today
Error message
[ERROR:flutter/lib/ui/ui_dart_state.cc(207)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libridtest.so': libridtest.so: cannot open shared object file: No such file or directory
#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:55)
Current Generated Code
works when I manually add full path
The text was updated successfully, but these errors were encountered: