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

Build break on checkout #14

Closed
AArnott opened this issue Jul 9, 2023 · 4 comments
Closed

Build break on checkout #14

AArnott opened this issue Jul 9, 2023 · 4 comments

Comments

@AArnott
Copy link

AArnott commented Jul 9, 2023

Following the readme, after cloning, I ran fetch-params.sh and then tried to build, but the build failed:

$ cargo b --release --bin warp-rpc --features=rpc
warning: version requirement `=2.0.1+zstd.1.5.2` for dependency `zstd-sys` includes semver metadata which will be ignored, removing the metadata is recommended to avoid confusion
    Updating crates.io index
    Updating git repository `https://github.com/hhanh00/librustzcash.git`
    Updating git repository `https://github.com/hhanh00/zcash-params.git`
error: failed to select a version for `orchard`.
    ... required by package `zcash_primitives v0.10.2 (https://github.com/hhanh00/librustzcash.git?rev=f39dd6c2af20662fd1aaa9e00172efebd3435ff4#f39dd6c2)`
    ... which satisfies git dependency `zcash_primitives` of package `zcash-warpsync v1.2.15 (/home/andrew/git/zcash-sync)`
versions that meet the requirements `^0.3` are: 0.3.0

the package `zcash_primitives` depends on `orchard`, with features: `multicore` but `orchard` does not have these features.


failed to select a version for `orchard` which could resolve this conflict
andrew@ryzen9-ubuntu:~/git/zcash-sync$ 
@hhanh00
Copy link
Owner

hhanh00 commented Jul 14, 2023

Even if you don't plan to use flutter, it is easier to clone the zwallet repo and use zcash-sync as a submodule. Otherwise there may be missing dependencies or version conflicts.

@AArnott
Copy link
Author

AArnott commented Aug 1, 2023

Thanks. I've done a recursive clone of zwallet, then re-ran the above command within native/zcash-sync. It failed, but with different errors, including:

error[E0308]: mismatched types
   --> native/zcash-sync/src/main/rpc.rs:384:13
    |
384 |     Ok(Json(result))
    |        ---- ^^^^^^ expected `RaptorQDrops`, found `RaptorQDropsT`
    |        |
    |        arguments to this struct are incorrect

Suggestions?

@hhanh00
Copy link
Owner

hhanh00 commented Aug 1, 2023

Try

git clone https://github.com/hhanh00/zwallet.git
cd zwallet
git submodule update --init --recursive
cd native/zcash-sync
cargo b --features=dart_ffi

lmk if you still have issues

@AArnott
Copy link
Author

AArnott commented Aug 3, 2023

Yes, changing the --features=rpc to --features=dart_ffi did the trick. Thanks.

@AArnott AArnott closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
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