jpnurmi / libserialport.dart

Serial Port for Dart
https://pub.dev/packages/libserialport
GNU Lesser General Public License v3.0
86 stars 34 forks source link

Error during web build #80

Open pluzmedia opened 11 months ago

pluzmedia commented 11 months ago

Hi, When I try to build for web I a getting the following error.

/E:/pub_cache/hosted/pub.dev/libserialport-0.3.0+1/lib/src/bindings.dart:990:19: Error: 'Pointer' isn't a type.
              ffi.Pointer<sp_port_config>, ffi.Int32)>>('sp_set_config_rts');
                  ^^^^^^^
/E:/pub_cache/hosted/pub.dev/libserialport-0.3.0+1/lib/src/bindings.dart:990:48: Error: 'Int32' isn't a type.
              ffi.Pointer<sp_port_config>, ffi.Int32)>>('sp_set_config_rts');

the above error is a sample but I am getting too many errors when I try to build. Any help would be a great relief. Thanks

higaski commented 10 months ago

FFI doesn't support web.