-
Notifications
You must be signed in to change notification settings - Fork 194
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
Java and C# bindings extended analog sensor interfaces do not compile. #1770
Comments
Probably I have the build messy because I just noticed that the binding of JAVA are compiled on travis and there they work. I will check tomorrow and eventually close it! |
I can reproduce it also on a clean build, could be related to the version of swig? |
Hi @Nicogene , ... regarding the SWIG versionas we generate bindings for Matlab too, we are actually using a SWIG fork that Silvio and I maintain: https://github.com/robotology-dependencies/swig. The default branch is regarding the BUGThe generated symbols you are seeing are clearly incomplete. You should get |
Hi @nunoguedelha ! I updated to Bionic Beaver and now I have swig 3.0.12 and the problem persists. I don't know what could be the problem in my case 🤔 |
It looks like the preprocessor of SWIG is doing a wrong interpretation of the defines in the interface file You should really try with the latest commit on the |
@Nicogene , any news? |
Also @drdanz had my same issue and he has swig So if I understood correctly these changes (robotology-dependencies/swig#1) are necessary to compile the java bindings with newer version of swig than So this is the situation now
We have to fix it, we can't assume that the users use this custom version of swig. |
I am surprised that 3.0.12 is not working, as the related fix swig/swig#781 should be part of the released version. |
Tested clean builds with all "official" swig versions from 3.0.0 to 3.0.12:
On travis we have |
The matlab branch contains explicitly the fix for this issue (swig/swig#781), that was backported in robotology-dependencies/swig#1 . However, I did not test it. |
This PR is available both in |
I have tested the matlab branch on MacOS, and also on Linux (icub-30 machine). And I'm sure I was using the custom build swig executable. Apparently the fix was reverted from the official releases after 3.0.2. |
Since we are releasing on YARP 3.1.0 next Monday, we need to fix this ASAP. Can we insert the broken part in a |
I guess yes. |
Seems fine to me too. |
#1817 disabled the interfaces for java, I renamed the bug, but I think we shouldn't close this until we actually fix the issue, or swig is fixed upstream... |
I agree ! |
The same happens in C#:
I created a patch in #1830 |
closed because too old. This issue might be not present anymore in newer versions of yarp/swig |
Describe the bug
The java bindings doesn't compile since #1756
To Reproduce
Enable
CREATE_JAVA
and compilesOutput
Configuration (please complete the following information):
The text was updated successfully, but these errors were encountered: