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

windows installation fails #25

Open
droekm opened this issue Dec 12, 2014 · 9 comments
Open

windows installation fails #25

droekm opened this issue Dec 12, 2014 · 9 comments
Labels

Comments

@droekm
Copy link

droekm commented Dec 12, 2014

Hey,

currently try to install iota on a Windows (32bit) machine. Have installed everything right, but running cargo build returns following error:

$ cargo build
   Compiling termbox-sys v0.0.1 (http://github.com/gchp/rustbox#9f6ca3c6)
Failed to run custom build command for `termbox-sys v0.0.1 (http://github.com/gchp/rustbox#9f6ca3c6)`
Process didn't exit successfully: `C:\users\droekm\documents\githubrepos\iota\target\build\termbox-sys-0aa44b9f7c4b257e\build-script-build.exe` (status=101)
--- stdout
waf configure: setting CFLAGS to: `-m32`
running: ./waf 'configure' '--prefix=/'

--- stderr
task '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: file not found (OS Error 2: The system cannot find file
)', C:\bot\slave\nightly-win-32\build\src\libcore\result.rs:744

running on MSYS, also tried from normal command prompt but same error. what can I do?

Regards,
Jan

@gchp
Copy link
Owner

gchp commented Dec 12, 2014

Hey Jan! I'm afraid my windows experience is somewhat limited. I'm gonna set up a windows VM right now simply for testing iota.

From your error message, it would appear that the build script for termbox-sys is failing which isn't too surprising, as there is no special logic in there to cater for windows. I'm gonna start investigating this now, so hopefully we can get it sorted for you soon!

Do you have termbox itself installed from source? Or did you just install rustbox directly with just the cargo build command? I'm wondering if you would still have the same error if you installed termbox separately. Obviously I want to make it work with just the cargo build, just thinking of a solution for you until this gets fixed.

@droekm
Copy link
Author

droekm commented Dec 12, 2014

@gchp Yes I install it using cargo build. I can try it tomorrow using termbox from source.

@toppy
Copy link

toppy commented Dec 12, 2014

@droekm I had similar errors on Ubuntu with docopt crate. What helped me was to install nightly build of Rust.

@droekm
Copy link
Author

droekm commented Dec 13, 2014

@toppy I've installed one of the installers, can this maybe the problem?

@ghost ghost mentioned this issue Dec 15, 2014
@gchp
Copy link
Owner

gchp commented Jan 7, 2015

@droekm the rustbox installation has changed a good bit since you would have come across this issue. Could you try installing again and see what happens?

@lachholden
Copy link

Not @droekm but was having the same issue - after updating to the most recent nightly (2015-01-05) using the installer, still getting the same error.

Build failed, waiting for other jobs to finish...
failed to run custom build command for `termbox-sys v0.1.2`
Process didn't exit successfully: `C:\Users\username\iota\target\build\termbox-sys-8c096ba63a48151e\build-scri
pt-build.exe` (status=101)
--- stdout
running: git 'clone' 'https://github.com/nsf/termbox' '.termbox'
waf configure: setting CFLAGS to: `-m64 -fPIC`
running: ./waf 'configure' '--prefix=/'

--- stderr
Cloning into '.termbox'...
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: file not found (OS Error 2: The system cannot
find the file specified.
)', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libcore\result.rs:746

@gchp
Copy link
Owner

gchp commented Jan 7, 2015

Ok, thanks @lachy-xe. I'll dig into this more!

@gchp gchp added the bug label Jan 7, 2015
@bombless
Copy link

That file not found is about unable to find the wscript file.
And then I tried to manually execute that waf command with python3, the waf thing succeeded, but finally there's an error about cannot compile termbox because of a missing sys/ioctl.h.

I was thinking about writing a termbox implementation in pure Rust, something similar as termbox-go.

@gchp
Copy link
Owner

gchp commented Feb 12, 2015

@bombless yeah, its tricky because the termbox C library doesn't work on windows. The Go version does, however.

I started writing rustbox as a pure Rust implementation of termbox. That is still my intention, however I've just not had the time to get into it fully just yet.

If you want to get involved, I'd welcome your contributions!

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

No branches or pull requests

5 participants