Closed marimes closed 1 month ago
If you change this line from 5 secs to 30 does it fix?
https://github.com/MutinyWallet/harbor/blob/82fc5b2802fb7240d463779168a6b59f29c68dc0/src/db.rs#L25
yes, that worked 👍🏻 now just run produces the next error:
(nix:nix-shell-env) marius@a64:~/harbor$ just run
RUST_LOG=harbor=debug,iced_wgpu=error,wgpu_core=error,info cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s
Running `target/debug/harbor`
thread 'main' panicked at /home/marius/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/b30d34f/winit/src/application.rs:153:10:
Create event loop: Os(OsError { line: 81, file: "/home/marius/.cargo/git/checkouts/winit-57d3141eaf559308/8affa52/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoWaylandLib)) })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
You might have to do just run
without nix develop
beforehand. We're still figuring out how to get it working in nix for every platform
Here is the error log of just run
:
(nix:nix-shell-env) marius@a64:~/harbor$ just run
RUST_LOG=harbor=debug,iced_wgpu=error,wgpu_core=error,info cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s
Running `target/debug/harbor`
thread 'main' panicked at /home/marius/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/b30d34f/winit/src/application.rs:153:10:
Create event loop: Os(OsError { line: 81, file: "/home/marius/.cargo/git/checkouts/winit-57d3141eaf559308/8affa52/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoWaylandLib)) })
stack backtrace:
0: rust_begin_unwind
at /rustc/ef0027897d2e9014766fb47dce9ddbb925d2f540/library/std/src/panicking.rs:652:5
1: core::panicking::panic_fmt
at /rustc/ef0027897d2e9014766fb47dce9ddbb925d2f540/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/ef0027897d2e9014766fb47dce9ddbb925d2f540/library/core/src/result.rs:1654:5
3: core::result::Result<T,E>::expect
at /rustc/ef0027897d2e9014766fb47dce9ddbb925d2f540/library/core/src/result.rs:1034:23
4: iced_winit::application::run
at /home/marius/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/b30d34f/winit/src/application.rs:151:22
5: iced::application::Application::run
at /home/marius/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/b30d34f/src/application.rs:215:12
6: iced::program::Program<P>::run_with
at /home/marius/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/b30d34f/src/program.rs:247:9
7: iced::program::Program<P>::run
at /home/marius/.cargo/git/checkouts/iced-f01cba4d5e61fd0a/b30d34f/src/program.rs:171:9
8: harbor::main
at ./src/main.rs:35:5
9: core::ops::function::FnOnce::call_once
at /rustc/ef0027897d2e9014766fb47dce9ddbb925d2f540/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: Recipe `run` failed on line 8 with exit code 101
OK, I exited nix and tried cargo run
but that produced a ton or error messages.
OK, I exited nix and tried
cargo run
but that produced a ton or error messages.
Running in nix on linux currently has problems: https://github.com/MutinyWallet/harbor/issues/7
So the only way to run this on linux at the moment is to build outside of nix. Unfortunately, that means a bunch of required development environment libraries like openssl libraries, crypto libraries, etc. I would imagine these are your errors? Only way through them would be one at a time. If you were able to solve them, it would help to have this documented so we can tell people what to install if outside of nix.
Thanks, I see. I do get linker errors like /usr/bin/ld: cannot find -lsqlcipher: No such file or directory
Is there a list of dependencies I need to install to build with cargo directly?
You need sqlcypher. You can also just run with --features vendored
OS: Linux a64 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 GNU/Linux
nix develop
andjust test
Error outputs: