Giter Site home page Giter Site logo

Comments (7)

jaeandersson avatar jaeandersson commented on July 18, 2024 1

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.

jaeandersson avatar jaeandersson commented on July 18, 2024 1

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.

wsfulton avatar wsfulton commented on July 18, 2024 1

@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.

traversaro avatar traversaro commented on July 18, 2024

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.

jaeandersson avatar jaeandersson commented on July 18, 2024

@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.

wsfulton avatar wsfulton commented on July 18, 2024

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.

jgillis avatar jgillis commented on July 18, 2024

Should be fixed now with that pull request merged

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.