Comments (2)
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.
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)
- Set `MACOSX_DEPLOYMENT_TARGET` to 11.0 for CasADi v3.6.5 on arm64 macOS – `libcasadi.3.7.dylib` requires 11.1 and breaks linkage HOT 1
- Using casadi+integrator in a different thread
- compact dense sparsity patterns HOT 3
- Symmetric jacobian with MX
- pseudo MX optimizations HOT 1
- Add inlining MX call to SXFunction HOT 1
- undefined symbol: _ZN6casadi10differenceERKSt6vectorINS_2MXESaIS1_EES5_ HOT 11
- Performance difference between CasADi 3.5.5 and 3.6.4 HOT 4
- jtimes corner case
- Build Model error C2065: 'mxIsChar_is_not_supported_in_Simulink_Coder'
- Performance Degradation with Multithreading in Parametric Trajectory Optimization HOT 2
- MATLAB Coder meets CasADi codegen - macos - MEX, dylib, path error
- Fix fatrop printing
- undefined reference to `casadi::difference` when building in windows/mingw HOT 1
- Graceful failure when trying to load a co-simulation only FMU
- Using rootfinder object inside optimization fails HOT 2
- (Installation help) Python casadi, module not found _casadi on Ubuntu
- timer reset missing?
- Fix numpy compat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casadi.