-
Notifications
You must be signed in to change notification settings - Fork 12
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
Switch to generate YARP idl files at every build to fix compatibility with YARP master #131
Conversation
Example of failure with latest YARP master without this change (from https://github.com/robotology/robotology-superbuild/runs/4297622640):
|
To understand the issue, before, the auto-generated files are pulled from the remote repo. So CMake with the variable The problem could appear when the compiled YARP version and the YARP version in which the auto-generated files are different. So the solution is to add the auto-generated files in the build directory to avoid such mismatch? I guess it might happen also if the user compiles with one YARP version and then switches YARP version and tries to compile again? but at least it won't happen out-of-the-box! I know I just rephrased what you said above! I am just making sure I understood it correctly! |
Yes, that is correct. However, if you switch some version of the dependencies and you do not cleanup the build, problems are kind of expected, so this should not be a big problem.
Yes, this is a good idea. I think your recap is correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'll update the CHANGELOG with the fix and then merge it!
Good point, I forgot it. |
@HosameldinMohamed if it is ok for you, we can merge to unblock robotology/robotology-superbuild#926, thanks! |
Sorry I waited few minutes for the CI after committing then I forgot to merge it! |
you mean robotology/robotology-superbuild#900? |
Ah ok, no problem! |
robotology/robotology-superbuild#926 is the PR that should fix robotology/robotology-superbuild#900 . |
While working on robotology/robotology-superbuild#900, I had problems with the idl generated files, as the one generated with YARP 3.5 (I guess) had problems to be compiled with YARP master. To avoid the problem at the root, I switched to generate the idl files at each build (instead of committing them manually) and I removed the autogenerated files that at the moment were committed in the repo. This was done by just generating the idl files in the build directory instead of the source directory.