jpnurmi / flutter_libserialport

Serial Port for Flutter
https://pub.dev/packages/flutter_libserialport
MIT License
143 stars 80 forks source link

Can't build for android because of HAVE_STRUCT_TERMIOX #50

Closed augustbering closed 3 months ago

augustbering commented 2 years ago

Seems this issue still remains for Android https://github.com/jpnurmi/flutter_libserialport/issues/20 not sure if it's still not released for flutter_libserialport, I'm using 0.2.3 so I think that fix should have been merged. Anyway, the way I fix this is to comment out

define HAVE_STRUCT_TERMIOX 1

in my /.pub-cache/hosted/pub.dartlang.org/flutter_libserialport-0.2.3/android/libserialport/config.h

tanweilong commented 1 year ago

same here. Any solutions?

augustbering commented 1 year ago

Well, it seems the android port is quite broken either way, for new versions of android it needs to request permissions and there's no code for that in here. So some work required there.

lucafabbri commented 3 months ago

This is fixed in 0.4.0