-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue running on on NixOS #548
Comments
Thanks for reporting!
This sounds like the shared library isn't bundled at all. It should be in a Can you
|
Hey! The lib is at the right place - I've tested it on a just created flutter project. My dependencies are exactly the same as in getting started (with latest versions from pub.dev). |
This could be relevant:
We don't test on NixOS, so I'm sorry that we cannot really help here. This is extremely common lib with Linux, so my guess that this is a very NixOS-specific issue. Let us know if you find something out. |
Okay! I'll investigate that further and let you know about the details! |
I am not familiar with how flutter packaging works, but I packaged the I am able to get apps running if I manually delete |
@jordanisaacs I think that a flag for building objectbox as a part of flutter build is they way to go - but I'm unsure what's the objectbox team on that. |
I don't follow; e.g. what's "the patched binary from the nix store"? If you do not want the CMake setup, you can e.g. go with download.sh - there's a tab for that in the installation docs. And/or, copy and adjust the CMakeLists.txt for your needs? |
the patched binary from the nix store is output of the nix expression posted by @jordanisaacs. (p.s. I couldn't get it to work with nix-build). And I think that I'll speak for me and other nix users who use objectbox - we wouldn't really want to manually adjust the CMakeLists.txt in every project because we are already using |
also I've just realized that objectbox is closed source.. truly a good job at obfuscating that fact.. And since using closed source code is a blocker for me I guess that I'll need to find some other database that doesn't hide the (quite important imo) fact about the project source being unavailable. |
also since we are here already - could you change licensing on https://pub.dev/packages/objectbox? This is a bit misleading - mentioning that you also accept the objectbox binary license would be a cool thing. |
The issue is NixOS doesn't have its shared libraries in the standard Linux location. Hence you see missing libraries with I think all I need as a packager is for objectbox to provide an environment variable that skips downloading the shared object in the build phase. My goal is to package BlueBubbles for Nix which utilizes this library, and it would also make life easier packaging anything else that utilizes this library . |
@jordanisaacs Thanks for providing some background! Had a quick look... CMake offers providing some "patch command" (docs here, search for "PATCH_COMMAND"). If there would be a way to "inject" (e.g. env var?) a patch command from your side, would you be able to run autopatchelf and do the adjustments? This would also cover updating to a new version and stuff; might be a smoother (more automated) process? |
Basic info:
Steps to reproduce
Expected behavior
App would run
Code
N/A
Logs, stack traces
To fix the issue I tried..
but it didn't work. I thought that the issue may be with flutter run overriding the LD_LIBRARY_PATH - so I've decided to test it another way:
But it still doesn't work
The text was updated successfully, but these errors were encountered: