Closed clocksmith closed 3 years ago
What do you mean by it's not needed on windows? On which platform didn't it work?
For me, Android. The call to resolveDylibPath takes care of the prefix, platform dependent:
https://github.com/jpnurmi/dylib.dart/blob/master/lib/dylib.dart#L54-L66
uhm but why does it work on windows then witht the currentl solution. Unfortuantely Android isn't working yet or did you make progress there?
I did not, but on Android I got "Could not find "liblibEGL.so", so that is when I found that it auto added the prefix. Once I changed this locally I got another error but did not have time to debug it.
Good question on windows, maybe on windows the file name actually is libEGL.dll?
yep on windows it is indeed named like this. I will get back to android soon but I ran into some other problems that last time.
currently Windows and MacOs is working
same problem on android.
it will throw another ERROR when I fixed the "Could not find liblibEGL.so" issue, trace is:
I/flutter (28762): EGL version: 1.4
E/flutter (28762): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Failed to create context for display [Pointer
this is fixed now in the latest master that now also runs on Android
Drop prefix for EGL path, it is included automatically except for windows where it is not needed.