scipopt / scip-sys

Raw rust bindings to SCIP's C-API
https://crates.io/crates/scip-sys
2 stars 4 forks source link

bundled feature: Link to SCIP binaries statically #10

Open mmghannam opened 8 months ago

jacobsvante commented 7 months ago

I see that you made an attempt at this in #13. I managed to get a bit closer by changing from:

#[cfg(not(windows))]
println!("cargo:rustc-link-lib=static=scip");

to:

    #[cfg(not(windows))]
    {
        println!("cargo:rustc-link-lib=static=gmp");
        println!("cargo:rustc-link-lib=static=gmpxx");
        println!("cargo:rustc-link-lib=static=ipopt");
        println!("cargo:rustc-link-lib=static=soplex");
        println!("cargo:rustc-link-lib=static=scip");
    }

Instead of 834 we now "only" get 564 lines of undefined symbols on macos-arm: linking-errors-macos-aarch64.txt

Mainly it was including soplex that reduced the number of missing symbols.

There's a libsoplexshared.dylib file in libscip-macos-arm.zip lib/. Does that contain the rest of the referenced symbols?

mmghannam commented 7 months ago

Thanks for the suggestion @jacobsvante! I was starting to lose hope that this could work 😄 I added your suggestion plus the other missing libraries and reopened #13

jacobsvante commented 7 months ago

Minor correction. New PR is at #19