jpnurmi / flutter_libserialport

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

string.h file not found #83

Open czrobi opened 10 months ago

czrobi commented 10 months ago

Hi folks, I have tried to use the package on Ubuntu 22.04.2 LTS with 5.19 and 5.11 kernels, but the building is failed. Target platform would be Linux. I got the following errors:

/home/robert/Desktop/flutter/proba2/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:37:10: fatal error: 'stdlib.h' file not found /home/robert/Desktop/flutter/proba2/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/linux/libserialport/../../third_party/libserialport/libserialport_internal.h:52:10: fatal error: 'string.h' file not found /home/robert/Desktop/flutter/proba2/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/linux/libserialport/../../third_party/libserialport/libserialport_internal.h:52:10: fatal error: 'string.h' file not found /home/robert/Desktop/flutter/proba2/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/linux/libserialport/../../third_party/libserialport/libserialport_internal.h:52:10: fatal error: 'string.h' file not found Exception: Build process failed

The string.h file is really missing, I have checked it. Anybody knows the solution for this?

lucafabbri commented 2 months ago

hi @czrobi this should be fixed in 0.4.0, could you check if it is working now?