chrisvest / xxv

The XXV visual hex viewer for the terminal.
https://chrisvest.github.io/xxv/
85 stars 5 forks source link

build error on windows #14

Closed BruceChen2017 closed 5 years ago

BruceChen2017 commented 5 years ago

On windows 10, I run cargo install xv, but I get such error: error: failed to run custom build command for ncurses v5.99.0

chrisvest commented 5 years ago

Yeah, Cursive does not have any build instructions for Windows: https://github.com/gyscos/Cursive/wiki/Install-ncurses

If you switch to make it use the pancurses backend, then in theory it should work on Windows: https://github.com/gyscos/Cursive/wiki/Backends

I haven't (and can't) tried this, though.

The crossterm backend most likely does not work, because it is at least broken on Linux.

Please update the wiki with instructions if you figure out how to do this.

chrisvest commented 5 years ago

Quick ping to @gyscos in case he has any insights.

chrisvest commented 5 years ago

@BruceChen2017 something you can try:

BruceChen2017 commented 5 years ago

@chrisvest Yes,it works with last step cargo install --path . --no-default-features --features pancurses-backend