-
-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Description
I'm using package fvp for accessing the webcam (v4l2) on Raspberry PI Zero 2W and it doesn't work due to missing files.
My env:
- flutter 3.35.4 on dev machine
- flutter 3.35.4 engine binaries on Raspberry Pi Zero 2W
- fvp ^0.34.0
- fully upgraded rasperry pi os (27.10.2025)
The program runs, but I get the following errors and the camera won't work. My simple custom plugin which also uses FFI doesn't make such problem, but I haven't got to the point to actually use it.
The log:
user@host:/tmp/bandit_osd_lite $ ./flutter-pi --release --videomode 720x480 .
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libfvp_plugin.so': libfvp_plugin.so: cannot open shared object file: No such file or directory
#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 Libfvp._load (package:fvp/src/lib.dart:52)
#3 Libfvp.instance (package:fvp/src/lib.dart:58)
#4 Libfvp.registerType (package:fvp/src/lib.dart)
#5 new _GlobalCallbacks (package:fvp/src/global.dart)
#6 _GlobalCallbacks.instance (package:fvp/src/global.dart:260)
#7 setLogHandler (package:fvp/src/global.dart)
#8 MdkVideoPlayerPlatform._setupMdk (package:fvp/src/video_player_mdk.dart:211)
#9 MdkVideoPlayerPlatform.registerVideoPlayerPlatformsWith.<anonymous closure> (package:fvp/src/video_player_mdk.dart:203)
#10 new Future.delayed.<anonymous closure> (dart:async/future.dart:419)
#11 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18)
#12 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:423)
#13 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:454)
#14 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193)
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libfvp_plugin.so': libfvp_plugin.so: cannot open shared object file: No such file or directory
#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 Libfvp._load (package:fvp/src/lib.dart:52)
#3 Libfvp.instance (package:fvp/src/lib.dart:58)
#4 Libfvp.registerType (package:fvp/src/lib.dart)
#5 new _GlobalCallbacks (package:fvp/src/global.dart)
#6 _GlobalCallbacks.instance (package:fvp/src/global.dart:260)
#7 setLogHandler (package:fvp/src/global.dart)
#8 MdkVideoPlayerPlatform._setupMdk (package:fvp/src/video_player_mdk.dart:211)
#9 MdkVideoPlayerPlatform.registerVideoPlayerPlatformsWith.<anonymous closure> (package:fvp/src/video_player_mdk.dart:203)
#10 new Future.delayed.<anonymous closure> (dart:async/future.dart:419)
#11 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18)
#12 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:423)
#13 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:454)
#14 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193)
Those files appear in build directory for x64 architecture when I normally work on machine. I assume that flutterpi_tool manages them.
build/linux/x64/debug/plugins/fvp/libfvp_plugin.so
build/linux/x64/debug/bundle/lib/libfvp_plugin.so
build/linux/x64/release/plugins/fvp/libfvp_plugin.so
build/linux/x64/release/bundle/lib/libfvp_plugin.so
Metadata
Metadata
Assignees
Labels
No labels