Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundled feature: Link to SCIP binaries statically #10

Open
mmghannam opened this issue Mar 13, 2024 · 3 comments
Open

bundled feature: Link to SCIP binaries statically #10

mmghannam opened this issue Mar 13, 2024 · 3 comments

Comments

@mmghannam
Copy link
Member

No description provided.

@jacobsvante
Copy link
Contributor

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
Copy link
Member Author

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
Copy link
Contributor

Minor correction. New PR is at #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants