thlorenz / rid

Rust integrated Dart framework providing an easy way to build Flutter apps with Rust.
64 stars 4 forks source link

fix: Added linux_run script for LD_LIBRARY_PATH. #55

Closed MGlolenstine closed 2 years ago

MGlolenstine commented 2 years ago

In Linux, there's a problem when .so files (dynamic libraries) get copied into plugin/linux they're not found when running.

I've added a run script that changes the LD_LIBRARY_PATH, which is the path that Linux uses to search for dynamic libraries.

After the execution is completed, the environment variable is reset back to the previous value.

Usage:

Go into the root of your project and execute ./sh/linux_run, and it should execute the same way as it does on other platforms when you run flutter run -d <platform>.

Notes:

thlorenz commented 2 years ago

Awesome, this is great! All this will be replaced once we get a proper rid command line tool going, but for now this works.

Thanks!