Open celalaslan2001 opened 2 years ago
No worries. Happy to help as I am able.
The rpi_gpio
package is designed to be compiled on the RPi itself and has only been tested with the Raspberry Pi OS.
pubspec.yaml
file)Please let me know how it goes.
Hi Danrubel. I m new on dart and sorry for asking stupid question. I want to compile your examples on win10 and upload to rpi with lineage os. I m using VSCode and "pub global activate rpi_gpio" is completed succesfully.
flutter pub global activate rpi_gpio Package rpi_gpio is currently active at version 0.7.2. Resolving dependencies... The package rpi_gpio is already activated at newest available version. To recompile executables, first run
global deactivate rpi_gpio
. Activated rpi_gpio 0.7.2.But pub global run rpi_gpio:build_native get errors like below. PS C:\Users\celal\Desktop\rpi_gpio.dart-main\bin> dart run build_native.dart Dart VM... C:\flutter\bin\cache\dart-sdk\bin\dart.exe Dart SDK... C:\flutter\bin\cache\dart-sdk Unhandled exception: ProcessException: The system cannot find the file specified.
Command: C:\flutter\bin\cache\dart-sdk\bin\pub list-package-dirs
0 _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:476:7)
1 _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:619:18)
2 Process.runSync (dart:io-patch/process_patch.dart:66:12)
3 main (file:///C:/Users/celal/Desktop/rpi_gpio.dart-main/bin/build_native.dart:26:15)
4 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
How can i add C:\flutter\bin\cache\dart-sdk\bin\pub list-package-dirs? Any response at any time would be appreciated! Bst Rgds, celal