I have included libavcodec.dylib
in a Flutter project following the standard Flutter FFI instructions.
Calling DynamicLibrary.open('libavcodec.59.dylib')
executes without issue, and returns a non-negative handle address, which (I think) indicates a successful load.
When I try to lookup any symbol, Flutter throws an error:
"[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol...".
When I call providesSymbol()
with various symbol names, it always returns false
.
Does anyone know why this might be happening? Are there additional steps needed to bootstrap such a library? how I can debug the root cause of the issue?
I think this is the root header file. This is the lib's documentation.