Skip to content
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

Unable to run wallet locally #5

Closed
frozenmafia opened this issue Jul 5, 2024 · 2 comments
Closed

Unable to run wallet locally #5

frozenmafia opened this issue Jul 5, 2024 · 2 comments

Comments

@frozenmafia
Copy link

No description provided.

@Slixe
Copy link
Member

Slixe commented Jul 5, 2024

I can't help without more context

@frozenmafia
Copy link
Author

I tried it multiple times , I was able to run it locally . I followed the following commands
These are the steps to follow

  1. Cloned the repository.
  2. Installed Flutter on Linux (Ubuntu 22.04.4 LTS).
  3. Navigated to the xelis-genesix-wallet directory.
  4. Ran just init:
luffy@predator:/media/luffy/Data/rust_projects/blockchain/xelis-genesix-wallet$ just init
cargo install 'flutter_rust_bridge_codegen@^2.0.0-dev'
Updating crates.io index
Ignored package `flutter_rust_bridge_codegen v2.0.0` is already installed, use --force to override
cd rust && cargo update
Updating crates.io index
Updating git repository `https://github.com/xelis-project/xelis-blockchain`
Updating git repository `https://github.com/xelis-project/bulletproofs`
Updating git repository `https://github.com/xelis-project/curve25519-dalek`
Updating git repository `https://github.com/xelis-project/xelis-hash`
Updating git repository `https://github.com/Slixe/tokio-with-wasm`
Locking 0 packages to latest compatible versions
note: pass `--verbose` to see 50 unchanged dependencies behind latest
flutter_rust_bridge_codegen generate
[2024-07-05T10:45:00.373Z INFO /home/luffy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs:52] To handle some types, `enable_lifetime: true` may need to be set. Please visit https://fzyzcjy.github.io/flutter_rust_bridge/guides/lifetimes for more details
[2024-07-05T10:45:00.380Z INFO /home/luffy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/sanity_checker/auto_accessor_checker.rs:21] To use the automatically generated getters of the following fields of opaque types, it is suggested to read https://fzyzcjy.github.io/flutter_rust_bridge/guides/types/arbitrary/rust-auto-opaque/properties to know more details. (Related fields: crate::api::logger::SendToDartLogger.level, crate::api::logger::SendToDartLogger.level)
[3.5s] Parse  
[3.5s] Parse  
[3.5s] Parse  
[3.5s] Parse  
└── [3.4s] Cargo expand & syn parse  
└── [0.0s] Parse HIR  
└── [0.0s] Parse MIR  
[0.1s] Generate  
[181.6s] Polish  
└── [175.4s] Run Dart build_runner  
└── [5.7s] Run Dart formatter  
└── [0.4s] Run Rust formatter  
└── [0.0s] Auto upgrade                                                 Done!
flutter pub get
Resolving dependencies... (2.8s)
Downloading packages... 
_fe_analyzer_shared 68.0.0 (72.0.0 available)
analyzer 6.5.0 (6.7.0 available)
collection 1.18.0 (1.19.0 available)
http_parser 4.0.2 (4.1.0 available)
macros 0.1.0-main.0 (0.1.2-main.4 available)
material_color_utilities 0.8.0 (0.12.0 available)
! meta 1.15.0 (overridden)
rxdart 0.27.7 (0.28.0 available)
shelf 1.4.1 (1.4.2 available)
test_api 0.7.2 (0.7.3 available)
very_good_analysis 5.1.0 (6.0.0 available)
Got dependencies!
10 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

  1. Ran flutter run --release
luffy@predator:/media/luffy/Data/rust_projects/blockchain/xelis-genesix-wallet$ flutter run --release
Connected devices:
Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.4 LTS 6.5.0-41-generic
Chrome (web)    • chrome • web-javascript • Google Chrome 124.0.6367.60
[1]: Linux (linux)
[2]: Chrome (chrome)
Please choose one (or "q" to quit): 2
Launching lib/main.dart on Chrome in release mode...
Compiling lib/main.dart for the Web...                            246.5s
✓ Built build/web

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants