forsyde / IDeSyDe

Design space identification and exploration
https://forsyde.github.io/IDeSyDe
4 stars 4 forks source link

ORTools produces build error #24

Closed BeethovenKodar closed 7 months ago

BeethovenKodar commented 7 months ago

error: could not compile rust-bridge-ortools (lib) due to 1 previous error; 1 warning emitted

the error was

error: environment variable `OUT_DIR` not defined at compile time
  --> rust-bridge-ortools/src/lib.rs:14:1
   |
14 | / include_cpp! {
15 | |     #include "ortools/base/logging.h"
16 | |     #include "ortools/sat/cp_model.h"
17 | |     #include "ortools/sat/cp_model.pb.h"
...  |
21 | |     // generate!("CpModelBuilder") // add this...
22 | | }
   | |_^
   |
   = help: Cargo sets build script variables at run time. Use `std::env::var("OUT_DIR")` instead
   = note: this error originates in the macro `env` which comes from the expansion of the macro `include_cpp` (in Nightly builds, run with -Z macro-backtrace for more info)
BeethovenKodar commented 7 months ago

fixed in commit ca02f7a or earlier, closing