dart-ffi Questions

11

Executing dart run ffigen got the following error: Unhandled exception: Invalid argument(s): Failed to load dynamic library '/Users/bruce/homebrew/opt/llvm/lib/libclang.dylib': dlopen(/Users/bruce/...
Scoundrelly asked 15/4, 2022 at 8:59

9

Solved

Read carefully before reporting. My flutter web project was working perfectly fine. A few hours later, it started complaining about 'dart:ffi: which i didn't even import. I saw similar questions bu...
Slippy asked 18/9, 2022 at 12:27

1

Flutter can binding to native code using dart:ffi. In other words, Dart can call C ++ methods, but can C ++ call Dart methods? as follows:
Cymatium asked 8/5, 2020 at 9:57

2

Solved

I am developing a package in C++ to be used in a Flutter app (and therefore in Dart), using dart::ffi and I was wondering if there was a better way to debug (step by step, variable watch, that sort...
Follmer asked 12/6, 2020 at 19:35

1

Solved

I am making a flutter application where I have my backend as C++. Through dart ffi I am signalling a load call when user enters a certain screen. My problem is Im loading audio in C++ but I want to...
Trussell asked 15/11, 2020 at 13:38

1

Solved

I'm trying to make my code a little more robust when allocating memory for ffi. I've written the following function: void withMemory<T extends NativeType>( int size, void Function(Pointer&lt...
Chiccory asked 17/6, 2021 at 11:46

1

Before I start my question I want to point out that it's not similar this question. Difference between writing platform specific code vs dart:ffi code. Here the questioner is asking the actual diff...
Marcmarcano asked 4/6, 2020 at 17:18

2

I am working on exposing an audio library (C library) for Dart. To trigger the audio engine, it requires a few initializations steps (non blocking for UI), then audio processing is triggered with a...
Purusha asked 19/4, 2020 at 18:24

1

Solved

I have a flutter app which uses Dart ffi to connect to my custom C++ audio backend. There I allocate around 10MB of total memory for my audio buffers. Each buffer has 10MB / 84 of memory. I use 84 ...
Fadeless asked 9/3, 2021 at 18:47

2

Solved

My app's backend is written in C++ and the frontend in Dart/flutter. I'd love to have the backend notify frontend whenever data is ready. This requires implementing an async callback scheme between...
Mont asked 8/8, 2020 at 1:54

1

Solved

What is difference between writing code using dart:ffi in flutter or writing code with the method chanel in flutter.
Scott asked 19/5, 2020 at 19:49

1

Solved

Trying to print to console when running my Flutter app (on Android) from the following C++ code I am running through dart:ffi: #include <iostream> std::cout << "Hello, World!"; Does...
Wallford asked 7/3, 2020 at 12:59

1

Solved

Hello I am using dart:ffi to build an interface with my native c/c++ library. and I needed a way to get a callback from c to dart as an example in sqlite: int sqlite3_exec( sqlite3*, /* An open d...
Ballesteros asked 1/5, 2020 at 11:12

1

Solved

I am learning Dart now and I playing with Dart's Interoperability with C. I am able to use a C method with two int params. Code below: hello.dart import 'dart:ffi' as ffi; typedef sum_func = ffi...
Piegari asked 27/3, 2020 at 14:28

0

The documentation is very unclear about how to use a static library that is provided through an archive file (library.a) First-party library A first-party native library can be included either ...
Schexnayder asked 16/3, 2020 at 18:16

1

Solved

I've the Dart type as: typedef dart_func = String Function(String x); And want to map it with Dart FFi, but their could not find neither String, nor Utf8, I tried typedef ffi_func = ffi.Pointer...
Tidal asked 17/2, 2020 at 20:54
1

© 2022 - 2024 — McMap. All rights reserved.