Comments (7)
Building CasADi with mainline SWIG is currently not supported. Afaik, all binary builds are made with the matlab-customdoc branch of jaeandersson/swig. It would be great to be compliant with latest SWIG (and to align the MATLAB/SWIG interfaces), but until now there has been no projects justifying work in this direction.
from casadi.
By the way, I guess this was totally by chance, but until SWIG 4.1.0 everything worked fine.
If I remember right, you get quite a few compiler warnings with mainline SWIG. But yes, the work to get it compliant is probably minimal.
from casadi.
@traversaro, the change to make should be fairly clear if you look at the related issues you posted as well as the changes within the SWIG code base in f89dd59d4b82ece899087682fdb86e94d2611513. If you can point me to the casadi code base where SWIG_Python_str_AsChar is, I can probably suggest a fix.
from casadi.
Building CasADi with mainline SWIG is currently not supported. Afaik, all binary builds are made with the matlab-customdoc branch of jaeandersson/swig. It would be great to be compliant with latest SWIG (and to align the MATLAB/SWIG interfaces), but until now there has been no projects justifying work in this direction.
No problem, I totally understand that, thanks for the reply! Thanks to the use of SWIG_IMPORT
the workaround is simply to use a release tarball and avoid to use SWIG at all. I mainly opened the issue to track what I found in case someone else experienced the same problem. By the way, I guess this was totally by chance, but until SWIG 4.1.0 everything worked fine.
from casadi.
@traversaro, the change to make should be fairly clear if you look at the related issues you posted as well as the changes within the SWIG code base in f89dd59d4b82ece899087682fdb86e94d2611513. If you can point me to the casadi code base where SWIG_Python_str_AsChar is, I can probably suggest a fix.
@wsfulton All instances should be in this file: https://github.com/casadi/casadi/blob/main/swig/casadi.i
from casadi.
I've raised #3520 which should fix it. I'm not sure how to tweak your build system to set it to use swig-4.2.0 though.
from casadi.
Should be fixed now with that pull request merged
from casadi.
Related Issues (20)
- Set bounds not constraint HOT 2
- The infeasible result is shown as βThe infeasible result is shown as abcβ in matlab, I can't find it in the help doc, I look forward to your help.
- NLP solver returning over-constrained warning and wrong results
- Change casadi_int by size_t (unsigned) when iterating vectors and strings
- Use `Fmu2::deserialize` only if compiled with `WITH_FMI2`
- Acessing the adjoint state HOT 3
- python kernel crash during integration
- Integrade NLPsolver in a class but outputs are all zeros
- Performance of FMU implementation HOT 1
- External function derivative detection in CasADi 3.6.x HOT 7
- qpsol creates multiple gurobi environment
- ipopt Nan detect for output jac_g_x
- 'C compiler cannot create executables' error when trying to compile HSL solver on Mac OS X HOT 5
- g and lam_g from nlpsol_out does not return any values HOT 4
- Too much pagefile HOT 1
- No parallelization when NLP (using mumps) is converted to function object and map is used with threads
- python crash when funtion from opti (sqpmethod) is evaluated in parallel HOT 2
- Add option to check if the number and names of function inputs is correct even when using a map
- stdout handling for external
- codegen C API finenuning HOT 1
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.