I'm trying to integrate BASS with Flutter, Google's cross-platform app development environment. I've started a Flutter plugin that can be found here:
https://github.com/JimTompkins/flutter_bass. It uses Flutter's FFI (foreign function interface) mechanism and a package called ffigen to convert the bass.h file to generated_bindings.dart.
It builds (Flutter 3.3, XCode 13) but throws a run-time error when I try to call the BASS_init function:
Failed to lookup symbol '_BASS_Init': dlsym(0x100f61e18, _BASS_Init): symbol not found
I can see the symbol in the libbass.a file using nm -gU libbass.a
I suspect this is more a Flutter problem than a BASS problem, but I thought there might be others interested in trying to use BASS with Flutter.
Any comments/suggestions welcomed!