Open gerardsimons opened 3 years ago
This seems to be an issue with Dart and ffi itself, I have commented on this issue here: https://github.com/dart-lang/sdk/issues/39231. Feel free to close it
Same issue here not an M1 mac.
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.54.3) [✓] Connected device (2 available)
• No issues found!
Hey there,
I am writing a CLI companion app for my Flutter apps that should not rely on Flutter so I want to get it working without using
flutter_serial_port
. I managed to compile and run the C examples oflibserialport
but I am getting an issue running the example here that should do the same thing (list the ports).First of all I had to mess around with
DYLD_LIBRARY_PATH
and set it to my installation of libserialport (not sure if that's the proper way to figure out the library linking stuff in the case of Dart), but then I get this exception:This is why I mentioned Mac M1 in the title as I thought maybe it had something to do with the ARM instruction set? Then again I think Mach-O is what the architecture was before this so I am not sure. Any help would be greatly appreciated!