-
Notifications
You must be signed in to change notification settings - Fork 48
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
Compilation of externalwrench failing on MacOS with Gazebo9 when also ignition-math2 or 3 are installed #447
Comments
I also have ROS installed on my laptop, but I checked the cmake configuration and it seems to be pointing to the right files:
|
I had had the same error after trying to install ROS on MACOS 10.14.6 and after a |
If that fixes the problem can you open a PR? Thanks! |
Sorry guys, the problem is indeed more fishy and can be properly solved. |
@traversaro Probably duplicated. By the way @kouroshD, did you find any solution to the problem? |
CC @kouroshD |
No, not yet. The last update was the one I mentioned in the issue #428 . I am not sure, if #434 is really a solution for the problem we are facing, it is just a workaround. I will follow the suggestions given by @traversaro this week. |
As @traversaro suggested the path to the dynamic library is :
by demangling the results of the symbol table:
and as we can see it can find the declaration of the |
The linker is searching for |
Note that if you recompiled from source gazebo9 instead of using the bottle, I would expect everything to work. However, I think the issue is in the homebrew-compiled binaries, so it could make sense to open an issue on this in https://github.com/osrf/homebrew-simulation . |
There is no specific reason, I will update my gazebo to gazebo10 and I will update here about the issue. |
Yes, that superbuild is not updated at all, don't trust it at all. |
@traversaro I tried with gazebo10, the result is the same. But why the symbol is with
|
I am using |
I guess each bottle is os-specific, so if this bug is in the Mojave bottle is different from @nunoguedelha's bottle. |
Did you run CMake again? Are you sure that the externalwrench plugin is actually compiling? |
It would be useful if you could check if the symbols in your |
Now that I think a bit about it, the strange things is not that the gazebo have the |
By the way, did you already tried with a clean build of gazebo-yarp-plugins? |
If you are with me, yes! It was cleaned when I moved to gazebo10. |
The beginning of the file for
In my case I have in my system also
|
I could find three versions of ignition math:
in all three versions the namespace is as following: |
I have just done again cmake, I have got two versions of ignition-math: Color.hh of ignition-math3
Color.hh of ignition-math4
|
@traversaro a question, what is the result of this command in Ubuntu? |
Your ignition-math4 |
my fault! there is that line as written by @lrapetti @CarlottaSartore . |
On Linux,
|
Mhh, then the strange thing is why libgazebo_yarp_externalwrench.dylib is looking for the version without the |
with make VERBOSE=1, I can see I have both |
Mhh, this is interesting. However, what matters here are the include directories, that you can see by modifying the |
However, what happens if you uninstall ignition-math3 ? You can't because it is some kind of transitive dependency of gazebo10 in some way? |
No, I am uninstalling them:
I checked their dependencies with gazebo10, and it seems there is not conflict!
|
It seems that the uninstallation is failing from the message that you pasted. |
No, I just put them here as a reference for the check I did for the dependencies. So, gazebo10 does not have dependency to ignition-math3 and ignition-math2. i remove them by following commnads:
|
It works ! I could Build :) |
Thanks a lot @traversaro . |
So, as a recap:
|
but the question is why at least @lrapetti and @CarlottaSartore have ignition-math3 ? Their laptop was clean and it should be clean when they installed gazebo. |
@CarlottaSartore was not using master branch! but in any case, even in devel there should be similar problem! |
I think the presence of ignition-math3 comes from having tried to install |
same for me |
To add, If we try to install gazebo, |
if you agree we close this issue. @traversaro |
Before closing the issue, we should at least clearly document that a user must uninstall ignition-math3 or ignition-math2 to compile the gazebo-yarp-plugins with gazebo10 . |
we may add here a note for MacOS users. |
I would also add a note in gyp's own docs at https://github.com/robotology/gazebo-yarp-plugins/blob/master/doc/install.md#dependencies . |
I was unable to reproduce the issue on a clean build on 10.14 in robotology/robotology-superbuild#291 , so unless someone is able to reproduce the issue on a clean system, I would not update the docs and I would just close the issue. |
Since on a very clean system, there is not |
I verified on Kourosh laptop and he was having the same problem. It is due to the fact that The problem is fixed by
and recompiling |
I am trying to compile
gazebo-yarp-plugins
but it is failing with the following error:I am currently on
MacOS10.14.6
, and I have installedGazebo9
viahomebrew
.From what I see, it may be similar to the problem with gazebo7 fixed by @gabrielenava with #434.
The text was updated successfully, but these errors were encountered: