anima-engine / mrusty

mruby safe bindings for Rust
Mozilla Public License 2.0
205 stars 19 forks source link

update mruby to 1.4.1 #98

Open dsisnero opened 6 years ago

dsisnero commented 6 years ago

I couldn't get this to compile for the included mruby of 1.2 . Tried to update it to 1.4.1 but the build.rs file is broken for mrbgems because the include files aren't located where its searching.

The directory mruby-io has an error when trying to include this -> #include "mruby/ext/io.h"

the include is located under mrubygems/mruby-io/include/mruby/ext/io.h

CFLAGS = None DEBUG = Some("true") running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-I" "target/mruby-out/include" "-Wall" "-Wextra" "-o" "C:\Dominic\programming\repos\git\mrusty\target\debug\build\mrusty-509596ed8d3c3d96\out\target/mruby-out/src\mrbgems\mruby-io\gem_init.o" "-c" "target/mruby-out/src\mrbgems\mruby-io\gem_init.c" exit code: 0 TARGET = Some("x86_64-pc-windows-gnu") OPT_LEVEL = Some("0") TARGET = Some("x86_64-pc-windows-gnu") HOST = Some("x86_64-pc-windows-gnu") TARGET = Some("x86_64-pc-windows-gnu") TARGET = Some("x86_64-pc-windows-gnu") HOST = Some("x86_64-pc-windows-gnu") CC_x86_64-pc-windows-gnu = None CC_x86_64_pc_windows_gnu = None HOST_CC = None CC = None TARGET = Some("x86_64-pc-windows-gnu") HOST = Some("x86_64-pc-windows-gnu") CFLAGS_x86_64-pc-windows-gnu = None CFLAGS_x86_64_pc_windows_gnu = None HOST_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-I" "target/mruby-out/include" "-Wall" "-Wextra" "-o" "C:\Dominic\programming\repos\git\mrusty\target\debug\build\mrusty-509596ed8d3c3d96\out\target/mruby-out/src\mrbgems\mruby-io\src\file.o" "-c" "target/mruby-out/src\mrbgems\mruby-io\src\file.c" cargo:warning=target/mruby-out/src\mrbgems\mruby-io\src\file.c:9:10: fatal error: mruby/ext/io.h: No such file or directory cargo:warning= #include "mruby/ext/io.h" cargo:warning= ^~~~ cargo:warning=compilation terminated. exit code: 1

--- stderr thread 'main' panicked at '

Internal error occurred: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-I" "target/mruby-out/include" "-Wall" "-Wextra" "-o" "C:\Dominic\programming\repos\git\mrusty\target\debug\build\mrusty-509596ed8d3c3d96\out\target/mruby-out/src\mrbgems\mruby-io\src\file.o" "-c" "target/mruby-out/src\mrbgems\mruby-io\src\file.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

', C:\Users\Dominic E Sisneros.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.55\src\lib.rs:1672:5 note: Run with RUST_BACKTRACE=1 for a backtrace.

dragostis commented 6 years ago

Thanks for the issue! Unfortunately, I don't plan on maintaining mrusty anymore since there has been very low interest in the project. It should build with mruby 1.2 though. You can check Travis builds for more info.

Also, there is a bash script for generating the mruby dependency but it might need updating for 1.4.1.