tomaka / hlua

Rust library to interface with Lua
MIT License
510 stars 48 forks source link

Can't compile lua52-sys #38

Closed TyOverby closed 9 years ago

TyOverby commented 9 years ago
failed to run custom build command for `lua52-sys v0.0.2`
Process didn't exit successfully: `/Users/tyoverby/workspace/rust/hlua-test/target/build/lua52-sys-c513186a8dc2f8d8/build-script-build` (status=101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"lua5.2\"`: No such file or directory (os error 2)"', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/result.rs:744
tomaka commented 9 years ago

It probably can't find pkg-config. You can override the build script: http://doc.crates.io/build-script.html#overriding-build-scripts

TyOverby commented 9 years ago

Lua is really easy to build from scratch. Would you consider doing what I did in chipmunk-sys and just compile the entire library and statically link against it? As you can see, the build file is really simple.

The benefits are pretty huge. Anyone with a C compiler will be able to use the library without needing to install anything else.