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

Can't comile amp on NixOS #28

Closed
flosse opened this issue Jan 26, 2018 · 5 comments
Closed

Can't comile amp on NixOS #28

flosse opened this issue Jan 26, 2018 · 5 comments

Comments

@flosse
Copy link

flosse commented Jan 26, 2018

[nix-shell:~/dev/amp]$ cargo build --release
   Compiling miniz-sys v0.1.10
   Compiling backtrace-sys v0.1.15
   Compiling cmake v0.1.26
   Compiling termbox-sys v0.2.10
   Compiling base64 v0.6.0
   Compiling xcb v0.7.7
   Compiling termion v1.1.1 (https://github.com/jmacdonald/termion?branch=esc#09f4c021)
   Compiling time v0.1.38
error: failed to run custom build command for `termbox-sys v0.2.10`
process didn't exit successfully: `/home/mk/dev/amp/target/release/build/termbox-sys-93246560dcc0a181/build-script-build` (exit code: 101)
--- stdout
running: "git" "clone" "https://github.com/nsf/termbox" ".termbox"

--- stderr
fatal: Zielpfad '.termbox' existiert bereits und ist kein leeres Verzeichnis.
thread 'main' panicked at 'assertion failed: cmd.stdout(Stdio::inherit()).stderr(Stdio::inherit()).status().unwrap().success()', /home/mk/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.10/build.rs:87:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@jmacdonald
Copy link
Owner

Have you installed both the build and general dependencies before building?

@flosse
Copy link
Author

flosse commented Jan 27, 2018

Have you installed both the build and general dependencies before building?

sure:

nix-shell -p python3 -p cmake -p git -p xorg.libxcb -p pkgconfig 

@flosse
Copy link
Author

flosse commented Jan 27, 2018

It seems to be related to gchp/termbox-sys#11 but there is no solution :(

@flosse
Copy link
Author

flosse commented Jan 27, 2018

workaround:

rm -rf ~/.cargo/registry/src/github.com-1ecc6299db9ec823/

@flosse
Copy link
Author

flosse commented Jan 27, 2018

With openssl and zlib it works => #30

@flosse flosse closed this as completed Jan 27, 2018
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