kenz-gelsoft / wxRust

A Rust binding of the wxWidgets cross platform toolkit.
Other
134 stars 19 forks source link

Build problems #40

Open andrewdavidmackenzie opened 8 years ago

andrewdavidmackenzie commented 8 years ago

I'm trying to build this, but keep getting an error - if I figure i tout I'll update this and maybe PR the README or whatever's needed - meanwhile here's the problem I have.

Scanning dependencies of target wxrust [ 87%] Generating ../rust-bindgen/target/debug/bindgen Updating git repository https://github.com/rust-lang/log.git Compiling rust-bindgen v0.13.0 (file:///Users/andrew/workspace/wxRust/rust-bindgen) Running rustc build.rs --crate-name build_script_build --crate-type bin -g --out-dir /Users/andrew/workspace/wxRust/rust-bindgen/target/debug/build/rust-bindgen-be5058dd5296614b --emit=dep-info,link -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps Compiling log v0.3.6 (https://github.com/rust-lang/log.git#d040d323) Running rustc /Users/andrew/.cargo/git/checkouts/log-c58e1db3de7c154d/master/src/lib.rs --crate-name log --crate-type lib -g --cfg feature=\"use_std\" --cfg feature=\"default\" -C metadata=5439bf31eed317bd -C extra-filename=-5439bf31eed317bd --out-dir /Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps --emit=dep-info,link -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps --cap-lints allow build.rs:1:1: 1:22 error: #[feature] may not be used on the stable release channel build.rs:1 #![feature(path_ext)] ^~~~~ error: aborting due to previous error

I've tried using rustup, setting 'nightly' as rust version in the wxRust/ folder (parent of 'build/'). Then I get this:

patching file wxc/src/include/wxc_glue.h Reversed (or previously applied) patch detected! Skipping patch. 4 out of 4 hunks ignored -- saving rejects to file wxc/src/include/wxc_glue.h.rej [ 0%] Built target patch_wxc_glue_h [ 86%] Built target wxc [ 87%] Generating ../rust-bindgen/target/debug/bindgen Compiling rust-bindgen v0.13.0 (file:///Users/andrew/workspace/wxRust/rust-bindgen) Compiling log v0.3.6 (https://github.com/rust-lang/log.git#d040d323) Running rustc build.rs --crate-name build_script_build --crate-type bin -g -C metadata=be5058dd5296614b --out-dir /Users/andrew/workspace/wxRust/rust-bindgen/target/debug/build/rust-bindgen-be5058dd5296614b --emit=dep-info,link -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps Running rustc /Users/andrew/.cargo/git/checkouts/log-c58e1db3de7c154d/master/src/lib.rs --crate-name log --crate-type lib -g --cfg feature=\"use_std\" --cfg feature=\"default\" -C metadata=5439bf31eed317bd -C extra-filename=-5439bf31eed317bd --out-dir /Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps --emit=dep-info,link -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps --cap-lints allow error[E0432]: unresolved import std::fs::PathExt --> build.rs:4:5 | 4 | use std::fs::PathExt; | ^^^^^^^^^^^^^^^^ no PathExt in std::fs

error: aborting due to previous error

Build failed, waiting for other jobs to finish... error: Could not compile rust-bindgen.

Caused by: Process didn't exit successfully: rustc build.rs --crate-name build_script_build --crate-type bin -g -C metadata=be5058dd5296614b --out-dir /Users/andrew/workspace/wxRust/rust-bindgen/target/debug/build/rust-bindgen-be5058dd5296614b --emit=dep-info,link -L dependency=/Users/andrew/workspace/wxRust/rust-bindgen/target/debug/deps (exit code: 101) make[2]: * [../rust-bindgen/target/debug/bindgen] Error 101 make[1]: * [CMakeFiles/wxrust.dir/all] Error 2 make: *\ [all] Error 2