shekohex / flutterust

Flutter + Rust = :heart:
Apache License 2.0
699 stars 56 forks source link

libscrap_ffi.so not found #48

Closed ghost closed 9 months ago

ghost commented 9 months ago

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following ArgumentError was thrown building Builder: Invalid argument(s): Failed to load dynamic library 'libscrap_ffi.so': dlopen failed: library "libscrap_ffi.so" not found

The relevant error-causing widget was: MaterialApp MaterialApp:file:///home/StudioProjects/rust_flutter_app/flutterust/lib/ main.dart:10:12

ghost commented 9 months ago

Hello, trying to create an app that uses rust as a backend and flutter as a front. I cloned your repo and ran the command for android, and then ran flutter run. I am running this on a linux ubuntu. Thanks!

shekohex commented 9 months ago

Hey, did you compile the code using cargo make?

ghost commented 9 months ago

hello sorry for not getting back sooner, I complied the code using cargo android build.

ghost commented 9 months ago

No worries though, CLI and the web versions are working great, and that's all I need for now. thanks

shekohex commented 9 months ago

Glad to hear that! Also, you may want to take a look into more user-friendly solutions like https://github.com/fzyzcjy/flutter_rust_bridge

ghost commented 9 months ago

Ok cool thanks!