Hi! I’m trying to run Scenebuilder (a javafx UI maker application).
It is packaged in the AUR but not in nixpkgs.
I’ve been following the steps in Packaging/Binaries - NixOS Wiki and currently stuck at The Dynamic Loader part, getting this error:
dlopen(/home/kazimazi/dev/deb-playground/scenebuilder/opt/scenebuilder/lib/runtime/lib/libjli.so) failed. Error: libz.so.1: cannot open shared object file: No such file or directory
I tried to set the correct rpath with the path of zlib, but nothing changed.
Could anyone give me some pointers?
I added zlib to the makeLibraryPath invocation, and added a patchelf call for libjli.so. It now fails with other similar errors (no libX11.so), but I guess they require similar solutions.
Trying with pkgs.autoPatchelfHook (mentioned on the page you linked) in the nativeBuildInputs (and leaving out the preFixup commands) seems to take care of this automatically, but requires some more dependencies (it seems to find the zlib dependency in libjli.so already).
Very nice! I’ve eliminated some missing dependencies, currently I’m getting this error:
error: builder for '/nix/store/skg36wq1qqifaqz6assj7dnx6y6m610v-scenebuilder-16.0.0.drv' failed with exit code 1;
last 10 log lines:
...
> libavcodec-ffmpeg.so.56 -> not found!
> libavformat-ffmpeg.so.56 -> not found!
This is troubling since nix-locate -1 -w lib/libavcodec-ffmpeg.so.56 doesn’t return anything.
I’m kinda stuck again.
let me know If you encounter any problems or have any questions or improvements. For me everything everything I tried was functional, but I’m not using it that heavily (using too many JavaFx libraries that are incompatible with scene builder, so I’m stuck with manually writing fxml).
I’ve also run into this situation where I was stuck trying to package something and when I asked for help I was pointed to an almost complete PR and a bunch of issues I had completely missed. Maybe github PRs (and NUR) should be included in nixos’s package search