SpiralP / classicube-cef-loader-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Not working on NixOS

inkstray opened this issue · comments

  • I get the following error: (most likely due to NixOS storing files differently)
DEBUG dll_load ./cef/classicube_cef_linux_x86_64.so
ERROR Error(
    Msg(
        "libgobject-2.0.so.0: cannot open shared object file: No such file or directory",
    ),
    State {
        next_error: None,
        backtrace: InternalBacktrace {
            backtrace: None,
        },
    },
)
 INFO &cCouldn't load cef plugin: &flibgobject-2.0.so.0: cannot open shared object file: No such file or directory

probably cant find due to nixos using
/nix/store/7fg5lvqxx3wrgj74c5xljyil1d0ah7n8-glib-2.78.4/lib/libgobject-2.0.so.0
instead of /usr/lib directory

@inkstray i just pushed a branch that probably works on nixos

in a classicube directory, try:

nix build --print-build-logs github:SpiralP/classicube-cef-plugin/nixos
rm -rf cef
rm -v plugins/*_cef_*
cp -va result/* .
chmod -R u+w cef plugins

i normally run classicube (on nixos) in flatpak or other FHS envs because it's easier to use plugins on a normal debian/ubuntu linux

also this repo (cef-loader-plugin) is for the loader, which downloads the "normal" linux library files without patching them for nix

i pushed that nixos branch to the real cef repo here and might eventually get it into master (i have to test on all the other OS's since they're probably broken now)

i don't think i can get the loader to download dependencies for nix nicely, since i would have to host the whole nix tree somewhere (i saw libcef is 1GB+) (and having the user "nix build" automatically on a their machine is probably not good)