alnitak / flutter_opengl

A Flutter OpenGL ES plugin using a Texture() widget. Supports Android, Linux and Windows. Many shaders from ShaderToy.com can be copy/pasted
Other
173 stars 20 forks source link

Failed to load dynamic library 'libflutter_opengl_plugin.so' #10

Open cwwww24 opened 1 month ago

cwwww24 commented 1 month ago

Hello brother, I Fork the source code, according to the tutorial to run the example code after the prompt 'Failed to load dynamic library 'libflutter_opengl_plugin.so', I tried for a long time, still can not solve, Did I miss some steps? It's still the same problem when I introduced flutter_opengl from pub to new projects, I think I missed something, but I didn't find another way in the tutorial, can you help me solve it

alnitak commented 1 month ago

Hi,

can you please copy/paste some relevant log errors? Are you trying on Linux right?

Anyway, I almost abandoned this project because of the incoming support for OpenGL by the Flutter team.

xiaweizi commented 2 weeks ago
 [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libflutter_opengl_plugin.so': dlopen failed: library "libopencv_java4.so" not found: needed by /data/app/~~9Gb3uLkP959jAfYTyvHxGA==/com.example.flutter_opengl_example-Gf4QUz23KLujePboD7LJRQ==/base.apk!/lib/arm64-v8a/libflutter_opengl_plugin.so in namespace clns-4
 #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11)
 #1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22)
 #2      OpenGLController.initializeGL (package:flutter_opengl/src/opengl_controller.dart:21)
 #3      main (package:flutter_opengl_example/main.dart:5)
 #4      _runMain.<anonymous closure> (dart:ui/hooks.dart:301)
 #5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297)
 #6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184)
alnitak commented 2 weeks ago

Have you followed the instructions here?