Skip to content

Instantly share code, notes, and snippets.

@freiguy1 freiguy1/cargo.toml Secret
Created Nov 13, 2014

Embed
What would you like to do?
My attempt at using piston on windows
[package]
name = "dodgeball"
version = "0.1.0"
authors = [ "me" ]
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston.git"
[dependencies.glfw_window]
git = "https://github.com/PistonDevelopers/glfw_window.git"
[dependencies.graphics]
git = "https://github.com/PistonDevelopers/rust-graphics.git"
[dependencies.opengl_graphics]
git = "https://github.com/PistonDevelopers/opengl_graphics.git"
fn main() {
println!("Hello world!");
}
PS C:\Users\freiguy1\dev\dodgeball> cargo build --verbose
Fresh current v0.0.0 (https://github.com/PistonDevelopers/current#3d202524)
Fresh input v0.0.0 (https://github.com/PistonDevelopers/input#27bfb0e8)
Fresh rust-xml v0.1.0 (https://github.com/netvl/rust-xml#d6c57380)
Fresh shader_version v0.0.0 (https://github.com/pistondevelopers/shader_version#03509f5d)
Compiling glfw-sys v3.0.4 (https://github.com/servo/glfw?ref=cargo-3.0.4#765dace7)
Fresh noise-rs v0.0.1 (https://github.com/bjz/noise-rs#0f5cc984)
Fresh gl_common v0.0.1 (https://github.com/bjz/gl-rs#218f14c9)
Fresh khronos_api v0.0.2 (https://github.com/bjz/gl-rs#218f14c9)
Fresh semver v0.1.0 (https://github.com/rust-lang/semver#7dca047a)
Fresh uuid v0.0.1 (https://github.com/rust-lang/uuid#8f2ea67d)
Fresh vecmath v0.0.0 (https://github.com/PistonDevelopers/vecmath#052095e8)
Fresh texture v0.0.0 (https://github.com/pistondevelopers/texture#8ef1371d)
Fresh genmesh v0.1.0 (https://github.com/csherratt/genmesh.git#bf63483a)
Fresh image v0.1.0 (https://github.com/pistondevelopers/image#64c6dbd0)
Running make -f makefile.cargo
Compiling event v0.0.0 (https://github.com/PistonDevelopers/event#386cd7dd)
Compiling gl_generator v0.0.1 (https://github.com/bjz/gl-rs#218f14c9)
Compiling graphics v0.0.0 (https://github.com/pistondevelopers/graphics#8c3a975d)
Compiling graphics v0.0.0 (https://github.com/PistonDevelopers/rust-graphics.git#8c3a975d)
Running `rustc src\lib.rs --crate-name event --crate-type lib -g -C metadata=d2eb2aff2ff908df -C extra-filename=-d2eb2aff2ff908df --out-dir C:\Users\freiguy1\dev\dodgeball\target\deps --dep-info C:\Users\freiguy1\dev\dodgeball\target\.fingerprint\event-d2eb2aff2ff908df\dep-lib-event -L C:\Users\freiguy1\dev\dodgeball\target\deps -L C:\Users\freiguy1\dev\dodgeball\target\deps --extern input=C:\Users\freiguy1\dev\dodgeball\target\deps/libinput-352a37395565b0f6.rlib --extern current=C:\Users\freiguy1\dev\dodgeball\target\deps/libcurrent-2328b67b040fed74.rlib` Running `rustc lib.rs --crate-name gl_generator --crate-type dylib -g -C metadata=cda8351b0c2935af -C extra-filename=-cda8351b0c2935af--out-dir C:\Users\freiguy1\dev\dodgeball\target\deps --dep-info C:\Users\freiguy1\dev\dodgeball\target\.fingerprint\gl_generator-cda8351b0c2935af\dep-lib-gl_generator -L C:\Users\freiguy1\dev\dodgeball\target\deps -L C:\Users\freiguy1\dev\dodgeball\target\deps --extern gl_common=C:\Users\freiguy1\dev\dodgeball\target\deps/libgl_common-24f328cfdd47c8f1.rlib --extern xml=C:\Users\freiguy1\dev\dodgeball\target\deps/libxml-759dae9327f1df3d.rlib --extern khronos_api=C:\Users\freiguy1\dev\dodgeball\target\deps/libkhronos_api-3be9472ee0a2eac6.rlib`
Running `rustc src\lib.rs --crate-name graphics --crate-type lib -g -C metadata=0ff0cc139860decc -C extra-filename=-0ff0cc139860decc --out-dir C:\Users\freiguy1\dev\dodgeball\target\deps --dep-info C:\Users\freiguy1\dev\dodgeball\target\.fingerprint\graphics-0ff0cc139860decc\dep-lib-graphics -L C:\Users\freiguy1\dev\dodgeball\target\deps -L C:\Users\freiguy1\dev\dodgeball\target\deps --extern vecmath=C:\Users\freiguy1\dev\dodgeball\target\deps/libvecmath-d85a0b36facb3341.rlib --extern texture=C:\Users\freiguy1\dev\dodgeball\target\deps/libtexture-b5db752edfa83ea4.rlib`
Running `rustc src\lib.rs --crate-name graphics --crate-type lib -g -C metadata=df91ca9d8885b687 -C extra-filename=-df91ca9d8885b687 --out-dir C:\Users\freiguy1\dev\dodgeball\target\deps --dep-info C:\Users\freiguy1\dev\dodgeball\target\.fingerprint\graphics-df91ca9d8885b687\dep-lib-graphics -L C:\Users\freiguy1\dev\dodgeball\target\deps -L C:\Users\freiguy1\dev\dodgeball\target\deps --extern texture=C:\Users\freiguy1\dev\dodgeball\target\deps/libtexture-b5db752edfa83ea4.rlib --extern vecmath=C:\Users\freiguy1\dev\dodgeball\target\deps/libvecmath-d85a0b36facb3341.rlib`
Q:\sbin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x2420000) in child, cygheap, Win32 error 0
Build failed, waiting for other jobs to finish...
error: linking with `gcc` failed: exit code: 1
note: gcc '-Wl,--enable-long-section-names' '-fno-use-linker-plugin' '-Wl,--nxcompat' '-static-libgcc' '-m64' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-o' 'C:\Users\freiguy1\dev\dodgeball\target\deps\gl_generator-cda8351b0c2935af.dll' 'C:\Users\freiguy1\dev\dodgeball\target\deps\gl_generator-cda8351b0c2935af.o' 'C:\Users\freiguy1\dev\dodgeball\target\deps\gl_generator-cda8351b0c2935af.metadata.o' '-fno-lto' 'C:\Users\freiguy1\dev\dodgeball\target\deps\libxml-759dae9327f1df3d.rlib' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lrustc-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lrbml-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-ltime-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lrustc_back-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lflate-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lrustc_llvm-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lgetopts-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lsyntax-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lserialize-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lterm-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-llog-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lfmt_macros-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-larena-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lgraphviz-4e7c5e5c' '-L''C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lregex-4e7c5e5c' 'C:\Users\freiguy1\dev\dodgeball\target\deps\libkhronos_api-3be9472ee0a2eac6.rlib' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lstd-4e7c5e5c' '-L' 'C:\Program Files(x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lsync-4e7c5e5c' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\x86_64-pc-windows-gnu\lib' '-lrustrt-4e7c5e5c' '-L' 'C:\Users\freiguy1\dev\dodgeball\target\deps' '-L' 'C:\Users\freiguy1\dev\dodgeball\target\deps' '-L' 'C:\Users\freiguy1\.cargo\git\checkouts\gl-rs-5020f97825182d66\master\src\gl_generator\.rust' '-L' 'C:\Users\freiguy1\.cargo\git\checkouts\gl-rs-5020f97825182d66\master\src\gl_generator' '-Wl,--whole-archive' '-Wl,-Bstatic' '-Wl,--no-whole-archive' '-Wl,-Bdynamic' '-lshell32' '-lpsapi' '-limagehlp' '-lm' '-lstdc++' '-lkernel32' '-lws2_32' '-shared' '-lcompiler-rt'
note: c:/program files (x86)/mingw-builds/x32-4.8.1-posix-dwarf-rev5/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.1/../../../../i686-w64-mingw32/bin/ld.exe: unrecognised emulation mode: i386pep
Supported emulations: i386pecollect2.exe: error: ld returned 1 exit status
error: aborting due to previous error
Failed to run custom build command for `glfw-sys v3.0.4 (https://github.com/servo/glfw?ref=cargo-3.0.4#765dace7)`
Process didn't exit successfully: `make -f makefile.cargo` (status=2)
--- stdout
cd "C:\Users\freiguy1\dev\dodgeball\target\native\glfw-sys-405a7f865560b277" && cmake -DCMAKE_C_FLAGS=-fPIC -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF "/cygdrive/c/Users/freiguy1/.cargo/git/checkouts/glfw-4fd4342c6777c12d/cargo-3.0.4"
--- stderr
Q:\sbin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x2420000) in child, cygheap, Win32 error 0
0 [main] sh 8092 sync_with_child: child 3016(0xF0) died before initialization with status code 0x1
22 [main] sh 8092 sync_with_child: *** child state waiting for longjmp
Cannot fork
make: *** [all] Error 2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.