Open Nicd opened 2 years ago
This was due to the run_mix
script stripping all *.so
files from the built app.zip
. When I include the library, I'm getting
20:52:44.691 [error] WX ERROR: Could not load library: :load_failed
Failed to load NIF library /data/user/0/io.elixirdesktop.example/files/app/lib/wx-2.2/priv/wxe_driver: 'dlopen failed: "/data/data/io.elixirdesktop.example/files/app/lib/wx-2.2/priv/wxe_driver.so" has bad ELF magic: cffaedfe'
so I'm guessing there was a reason for the stripping.
There seems to be something wrong with how the release is built. wxWidgets WebView is not available on the phones and thus the sample app is packaging a drop-in-replacement package "bridge" that is using the phones native webview. Try to replace :wx with bridge in your release build, and then it should work.
This is the relevant part in the desktop library: https://github.com/elixir-desktop/desktop/blob/dc1575c1963950ff18b2682a3fdb1887ac3a9ffa/mix.exs#L87
Thanks, that does it! I guess it should be added to instructions somewhere. I can make a PR later, I'm now trying to get this to work.
Btw is there a chat avenue for this library? It would be possibly faster / lower friction than talking in the issues. :) If you use Discord, we could make a separate #elixir-desktop channel on the Elixir server.
It's the #desktop channel on the Elixir slack https://join.slack.com/t/elixir-lang/shared_invite/zt-1f13hz7mb-N4KGjF523ONLCcHfb8jYgA
I guess I need to rejoin Slack then. :)
I have just gotten the app to run for the first time! This is glorious! Thanks so much. <3
My app immediately crashes on startup with
Everything builds correctly though.