-
I have no clue whats going on here, maybe some one can explain me what is going wrong. Tumbleweed and Ubuntu 22.04, same setup on both machines
Now, when run
The reason is, that the Some examples: // ubuntu
typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer<ffi.Void>)>>;
typedef DartPort = ffi.Int64;
// ^^^^^^^^^^^^^^^^^^^^ not present on tumbleweed
// tumbleweed defines a type "bool" what is an "int"?
typedef bool = ffi.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Int>)>;
// ^^^^ bool vs. int? ^^^ ^^^ // ubuntu
void store_dart_post_cobject(
DartPostCObjectFnType ptr,
^^^^^^^^^^^^^^^^^^^^^ bool? ffi.Pointer<ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer<ffi.Void>)>>;
) {
return _store_dart_post_cobject(
ptr,
);
}
late final _store_dart_post_cobjectPtr = _lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>('store_dart_post_cobject');
// ^^^^^^^^^^^^^^^^^^^^^ bool?
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr.asFunction<void Function(DartPostCObjectFnType)>();
// ^^^^^^^^^^^^^^^^^^^^^ bool?
// tumbleweed
void store_dart_post_cobject(
int ptr,
^^^
) {
return _store_dart_post_cobject(
ptr,
);
}
late final _store_dart_post_cobjectPtr = _lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int)>>('store_dart_post_cobject');
// ^^^ int?
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr.asFunction<void Function(int)>();
// ^^^ int? // ubuntu
bool rustdesk_core_main() {
^^^^
return _rustdesk_core_main();
}
late final _rustdesk_core_mainPtr = _lookup<ffi.NativeFunction<ffi.Bool Function()>>('rustdesk_core_main');
// ^^^^
late final _rustdesk_core_main = _rustdesk_core_mainPtr.asFunction<bool Function()>();
// ^^^^ // tumbleweed
int rustdesk_core_main() {
^^^
return _rustdesk_core_main();
}
late final _rustdesk_core_mainPtr = _lookup<ffi.NativeFunction<ffi.Int Function()>>('rustdesk_core_main');
// ^^^
late final _rustdesk_core_main = _rustdesk_core_mainPtr.asFunction<int Function()>();
// ^^^ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
flutter_rust_bridge_codegen : fatal error: 'stdbool.h' file not found |
Beta Was this translation helpful? Give feedback.
-
https://discord.com/invite/nDceKgxnkV build channel |
Beta Was this translation helpful? Give feedback.
https://discord.com/invite/nDceKgxnkV build channel