nfrancois / firmata

Apache License 2.0
8 stars 2 forks source link

cannot build serial_port #1

Open lukeorland opened 8 years ago

lukeorland commented 8 years ago

My main.dart is exactly the first blink example at https://github.com/nfrancois/firmata#samples

There's no bin/install.sh file as mentioned in https://github.com/nfrancois/firmata#install

Here is the error:

$ dart bin/main.dart
Cannot find extension library'package:serial_port/serial_port.dart': error: line 20 pos 1: library handler failed
import 'dart-ext:src/serial_port';

I'm on Mac OS X.

lukeorland commented 8 years ago

Ok, I got things working by cloning this repo, then running

pub run grinder

Then this worked as expected:

dart example/blink.dart

However, I'm trying to include this firmata package as a dependency in the pubspec.yml for a project I'm building. The necessary files seem to be missing after pub get installs firmata and its dependencies in my project.