b-inary / desktop-postflop

[Development suspended] Advanced open-source Texas Hold'em GTO solver with optimized performance
GNU Affero General Public License v3.0
215 stars 52 forks source link

Trouble building on Windows #10

Closed bkushigian closed 1 year ago

bkushigian commented 1 year ago

A couple of issues:

  1. Build instructions are not very clear. I looked at .github/workflows/release.yml to figure out how to build, but this should be made more explicit in README.md

  2. Dependency issue with once_cell. I've tried running both

    • cargo build from src-tauri, and
    • npm run tauri build -- --target x86_64-pc-windows-msvc

    and both have failed with message:

    desktop-postflop\src-tauri> cargo build
        Updating git repository `https://github.com/bkushigian/postflop-solver`
        Updating crates.io index
    error: failed to select a version for `once_cell`.
        ... required by package `sysinfo v0.27.7`
        ... which satisfies dependency `sysinfo = "^0.27.7"` (locked to 0.27.7) of package `desktop-postflop v0.2.3 (C:\Users\bkush\PostflopSolver\desktop-postflop\src-tauri)`
    versions that meet the requirements `^1.0` (locked to 1.17.0) are: 1.17.0
    
    all possible versions conflict with previously selected packages.
    
      previously selected package `once_cell v1.17.1`
        ... which satisfies dependency `once_cell = "^1.17.1"` of package `postflop-solver v0.1.0 (https://github.com/bkushigian/postflop-solver#b821c60c)`
        ... which satisfies git dependency `postflop-solver` of package `desktop-postflop v0.2.3 (C:\Users\bkush\PostflopSolver\desktop-postflop\src-tauri)`
    
    failed to select a version for `once_cell` which could resolve this conflict

    I've never run into Cargo dependency issues before, and especially since this is all a fresh clone this is a weird problem to be running into.

My setup

I'm on Windows 10 OS build 19045.2604. I cloned the repo and followed the Tauri install instructions. I'm using stable Rust.

b-inary commented 1 year ago
  1. Thanks for pointing this out. I will update the readme soon.
  2. Looks like you have a newer version of the solver engine. What happens when you do cargo update in the src-tauri directory?
bkushigian commented 1 year ago

Ahh, that works...thank you! Still learning my way around Rust :)