Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with swig 4.2.0 #3083

Open
randaz81 opened this issue Feb 9, 2024 · 5 comments
Open

issue with swig 4.2.0 #3083

randaz81 opened this issue Feb 9, 2024 · 5 comments

Comments

@randaz81
Copy link
Member

randaz81 commented Feb 9, 2024

Swig 4.2.0 seems not to work properly with yarp master: when compiling I get this error "Type Error. Expecting an integral type" on some enums.

I reported the error here: swig/swig#2796

The recommended version of swing to use is thus 4.0.2

@traversaro
Copy link
Member

Did you tried with swig master? I think the fix for swig/swig#2783 should have fixed yarp generation, but perhaps I was testing an earlier version of YARP.

@randaz81
Copy link
Member Author

It looks like that Ubuntu 24.04 is currently including by default swig 4.2.0

@traversaro
Copy link
Member

It looks like that Ubuntu 24.04 is currently including by default swig 4.2.0

Yes, unfortunately Ubuntu 24.04 got released in the unlucky windows between swig 4.2.0 and 4.2.1 . In the superbuild to handle this case we download (just on Ubuntu 24.04 when compiling with apt dependencies) a private swig binary that is just used for YARP: robotology/robotology-superbuild#1642 and https://github.com/robotology/robotology-superbuild/blob/df8e0567f194ca410581a8ddc36fa30880c25f3a/cmake/RobotologySuperbuildLogic.cmake#L39-L64 .

@randaz81
Copy link
Member Author

Thank you @traversaro , I'll follow your suggestion for Yarp CI with Ubuntu 24.04

PeterBowman added a commit to roboticslab-uc3m/kinematics-dynamics that referenced this issue Sep 20, 2024
PeterBowman added a commit to roboticslab-uc3m/kinematics-dynamics that referenced this issue Sep 20, 2024
@PeterBowman
Copy link
Member

On a side note, it seems that SWIG 4.2.0 is preinstalled on Ubuntu 24.04 runners for GitHub Actions. I had to remove the "swig" package via apt before building it from sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants