Questions tagged [dart-ffi]

Use this tag for questions about Dart's Foreign Function Interface (FFI) - the ability to call C directly from Dart. It is equally applicable to applications running in the Dart VM and to Flutter applications (except Flutter Web, of course).

109 questions
0
votes
0 answers

How does one pass argv[] to a c function in dart?

I want to call a c function test_main(int argc, char *argv[]) from dart using dart FFI. But the code below doesn't work obviously because Dart string cannot have null characters in it. How does one compose argv in dart? // FFI signature of the C…
Vikram Kapoor
  • 41
  • 1
  • 5
0
votes
1 answer

How to use OpenCV with dart:ffi on iOS

I am developing a flutter plugin that uses OpenCV as a dependency to do some image processing. I created a bridge and initilized lookup function as mentioned in here. The basic sum function works, however as soon as I add s.dependency "OpenCV2" on…
Aawaz Gyawali
  • 3,244
  • 5
  • 28
  • 48
0
votes
0 answers

Run a sync function async in Dart

I'm using the new Dart FFI with a Rust library, but the call to the library blocks, but my flutter app should run while the call is executing. So I need to convert an sync function to an async function. I already tried isolates and I think that…
-1
votes
1 answer

Could not find a package configuration file provided by "openssl"

I'm trying to use OpenSSL with Flutter using dart:ffi, but when i run the project on Ubuntu 20.04 the error message as below comes out. I tested the project on Windows 10 and it worked. Project…
1 2 3 4 5 6 7
8