How to pass a list of strings to C In dart ffi

I'm learning how to use dart ffi. I don't have much C experience or knowledge. I'm trying to call a function from a C library(<a href="https://sourceforg...

Can I call a C++ constructor function in dart ffi?

I'm new to ffi. But I successfully used dart-ffi with functions call. Now, I'd like to use a C++ object in dart ffi. I don't know if it is possible, but I trie...

Dart/Flutter FFI: Convert List to Array

I have a struct that receives an array of type Float from a C++ library. <pre><code>class MyStruct extends Struct{ @Array.multi([12]) external Array&lt;F...

Testing Library functions in a flutter package with Native Functions using Dart::ffi

I am writing a Dart library to access a C shared object using Flutter. So far, the example app I created is working (somewhat) as expected, but i want to includ...

How to convert Uint8List to C equivalent datatype using dart:ffi

I am trying to send an image to my Custom C++ code which I am planning to run using dart:ffi. I have successfully run the hello world problem where I send two integers...

Flutter Failed to load DLL with error code

I am trying to import a dll into my windows app and use it with ffi. I successfully generated the bindings with ffigen. But when I try to open the dll I get an...

How to include dlls in flutter build windows

I am working on a flutter project that runs fine in development. However I do not know how to get the build to include dll's referenced using FFI. I can't find...

Flutter: Dart FFI cant find symbol

I have included <code>libavcodec.dylib</code> in a Flutter project following the standard <a href="https://docs.flutter.dev/development/platform-integration/c-interop#...

Flutter on Windows: Unhandled Exception: Invalid argument(s): Failed to load dynamic library abc.dll: error code 193

I build a 'abc.dll', which is dependent on some other dll. <pre><code>add_library( abc SHARED mycode.cpp ) target_link_libraries( abc avutil-57 av...

How to use dart:ffi in Flutter?

I'm stuck on how I would implement <a href="https://dart.dev/guides/libraries/c-interop" rel="nofollow noreferrer">dart::ffi</a> in Flutter, specifically the <a href="...

Call native code in flutter via DllExport

Hi I have several code on C# and I want call in on flutter. I add <a href="https://github.com/3F/DllExport" rel="nofollow noreferrer">https://github.com/3F/DllExport</...

Flutter, get image as data back from c++ opencv

I am really new to Flutter and C++. So I am struggling with this one. I want to do some transformation to an image through ffi-&gt;c++ (opencv). Here's my code on the...

How to run a c statically linked library (.a archive) in flutter?

I'm trying to include a C library in my flutter app. I have some .h files, and a .a file. If I understand correctly, the .h files are headers, and the .a file is a sta...

How to read audio metadata using TagLib with dart FFI

I am working on a <strong>cross-platform</strong> music player app with <strong>Flutter</strong>. I encounter a problem with reading audio metadata. I have found a pac...

Use a compiled dart executable as DynamicLibrary in Flutter

Since a longer time now it is possible to open a DynamicLibrary (dylib, dll, so) in Flutter. Those libraries are written in C or C++. I've now tried to build a...