Closed gcxfd closed 2 years ago
Thanks. Assuming this is a Dart only project? Did you install objectbox-c as noted at https://github.com/objectbox/objectbox-dart/blob/main/objectbox/README.md#dart-native (or also at https://docs.objectbox.io/getting-started under the Dart tab)?
yes i installed, see the image below
and I run dart run build_runner build
in windows can generate objectbox.g.dart
and I test code in mac and linux , it runs ok
$ sha256sum.exe lib/objectbox.dll 7296135050c481940f00bfac6e7d5637f9b5ac9b40f4c894a548c15ac7485af0 *lib/objectbox.dll
Works for me using the same file, also inside a lib
subfolder. Though I am on Windows 10 64-bit.
The returned error codes are also unexpected and do not lead to any useful info.
Can you try to run the benchmark app inside this repo (it's Dart only), e.g. inside the benchmark
folder run dart run bin/read.dart
? Then we can be sure it isn't an issue with your code or setup.
This is also happening here https://github.com/objectbox/objectbox-dart/issues/346 on android @greenrobot-team
@richard457 The error message in #346 is completely different. Doubt this is related.
Closing because this issue is missing details. Feel free to comment with additional details and we can re-open it.
Slightly unrelated to objectbox but windows .dll
s, I encountered a similar issue with another number trying to load a .dll in production builds
Failed to load dynamic library 'win_x64/sqlite3.dll': error code 1329587768
Solution: place .dll in root folder and remove the lib
from the path, like
DynamicLibrary _openOnWindows() {
final corePath = 'sqlite3.dll';
return DynamicLibrary.open(corePath);
}
I build the apps with hover
, msix has the same issues
windows 11 Dart SDK version: 2.15.0-208.0.dev (dev) (Mon Oct 11 22:12:57 2021 -0700) on "windows_x64" ( use
choco install dart-sdk --pre -y
install ) objectbox dart latesterror