diff --git a/samples/ffi/sqlite/README.md b/samples/ffi/sqlite/README.md index 4f7c8ebca93..fbd5cb93f4e 100644 --- a/samples/ffi/sqlite/README.md +++ b/samples/ffi/sqlite/README.md @@ -2,6 +2,20 @@ This is an illustrative sample for how to use `dart:ffi`. +## Prerequirement + +For Windows, Linux, and MacOS, you should make sure, sqlite dev lib installed on your system. + +Windows user can download dll from https://www.sqlite.org/download.html + +If you do not have any sqlite3.dll or so file, you may found error message: + +``` +Unhandled exception: +Invalid argument(s): Failed to load dynamic library (126) +#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:13:55) +#1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) +``` ## Building and Running this Sample diff --git a/samples/ffi/sqlite/pubspec.yaml b/samples/ffi/sqlite/pubspec.yaml index 04a5fc27c8b..dcc5d40141f 100644 --- a/samples/ffi/sqlite/pubspec.yaml +++ b/samples/ffi/sqlite/pubspec.yaml @@ -6,7 +6,6 @@ author: Daco Harkes , Samir Jindel environment: sdk: '>=2.1.0 <3.0.0' dependencies: - ffi: - path: ../../../third_party/pkg/ffi + ffi: ^0.1.3 dev_dependencies: test: ^1.5.3