Giter Site home page Giter Site logo

Build failure on OSX about cddlib.jl HOT 6 CLOSED

joehuchette avatar joehuchette commented on August 28, 2024
Build failure on OSX

from cddlib.jl.

Comments (6)

joehuchette avatar joehuchette commented on August 28, 2024

Looking over the repo, it appears that the issue is likely with a missing gmp header. However, I'm not sure how to track it down on OSX; AFAICT Homebrew doesn't have a dev version of gmp like pacman and friends.

from cddlib.jl.

blegat avatar blegat commented on August 28, 2024

Yes, Julia installs GMP libraries but not necessarily GMP headers :(
On Travis, both GMP headers and libraries were already there for Mac and for Linux I just had to add the libgmp-dev package.
Windows isn't supported yet and I thought all Mac would have the headers but apparently this is not the case :'(

from cddlib.jl.

blegat avatar blegat commented on August 28, 2024

Maybe I should just download GMP, unzip it and link to the headers like that. This sounds ugly since it may not be same version as the version of the libraries already installed by Julia but this could also work for Windows... Or maybe I should check how Julia handles the GMP installation and try to do something similar

from cddlib.jl.

blegat avatar blegat commented on August 28, 2024

It seems that what Julia does is either use GMP from a package manager of build GMP 6.1.0 from scratch (that might be the solution used for Windows).
If I can find a way to check whether the headers are available, I could just download GMP 6.1.0 if it is not the case.
Or maybe the easiest way would be to patch cddlib to let it handle it ^^ For instance GLPK.jl does not seem to worry to much about GMP in its deps/build.jl because I guess that glpk does all the job

from cddlib.jl.

blegat avatar blegat commented on August 28, 2024

I just looked more closely at your error. It seems that you have GMP and the issue is rather that you do not have -lgmp in the link commands that fail.
Which version of CDDLib.jl are you using ? Did you do Pkg.checkout("CDDLib") ?

from cddlib.jl.

joehuchette avatar joehuchette commented on August 28, 2024

Wow, I could've sworn I tried this before...it's working now (after checking out)! Thanks a bunch.

from cddlib.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.