Giter Site home page Giter Site logo

missing .so file about casadi HOT 2 OPEN

gelatinouscube42 avatar gelatinouscube42 commented on June 24, 2024
missing .so file

from casadi.

Comments (2)

tmmsartor avatar tmmsartor commented on June 24, 2024

Regarding the missing clang plugin, I guess it is not supported anymore, see #3372

Regarding the missing header you can make it work specifying the headers file shipped with casadi explicitly,
in case of python with something like:

from pathlib import Path
opts = {"compiler_flags": f"-I{Path(cas.__file__).parent / 'include/'}"}
f_imp = Importer('solver.c','shell',opts)

NB1: Also installing ipopt on your system will likely solve that, in that case you will have the header the compiler is looking for on system default paths.

NB2: If you are code-generating the call to ipopt nlpsol plugin you may also need:
opts = {"compiler_flags": f"-I{Path(cas.file).parent / 'include/'}"
"linker_flags": f"-L{Path(cas.file).parent} -lcasadi_nlpsol_ipopt"}

from casadi.

gelatinouscube42 avatar gelatinouscube42 commented on June 24, 2024

It seems the opts you provided in the code block have at least compiled the solver for me, will have to wait till the evening till I get around to testing to verify this is a fix on my system. Seems likely though.

Re: installing ipopt on my system. Pretty sure it is installed already, but in any case trying to make a package with minimal dependencies for ease of distribution, so trying to avoid manual installs to the extent possible.

Thanks for the help!

from casadi.

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.