-
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
YARP shared library is linked against static system libSDL.a instead of libSDL.so #191
Comments
I had the same issue, @Nicogene was able to workaround the problem with a trick. |
Get version from commit robotology/ycm-cmake-modules@3dcadbd, released as part of YCM 0.10 . Solve the warning mentioned in #191
Reproduced locally in my PC, the problem was not affecting Travis only because on Travis |
That is unrelated, it should be fixed by #193 . |
A workaround for this issue is this modification: b6ed1b3 . |
The problem is that for some reason this line in the upstream I have no idea what is going on, but with YCM 0.8.0 the find_library founds the correct library |
cc @drdanz |
It may be worth to try to create a minimal working example and if we are able to do so, move the bug in YCM. |
I found the root cause. On YCM 0.8, |
If this is the case, then I have to fix this upstream asap. |
Ok, you can replicate this issue by simply running this:
I'll fix this upstream and post here the fix. It should be a matter of adding two lines in |
To fix this issue, open set(USER_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
__glew_set_find_library_suffix(SHARED)
find_library(GLEW_SHARED_LIBRARY_RELEASE
NAMES GLEW glew glew32
PATH_SUFFIXES lib lib64 libx32 lib/Release/${_arch}
PATHS ENV GLEW_ROOT)
find_library(GLEW_SHARED_LIBRARY_DEBUG
NAMES GLEWd glewd glew32d
PATH_SUFFIXES lib lib64
PATHS ENV GLEW_ROOT)
__glew_set_find_library_suffix(STATIC)
find_library(GLEW_STATIC_LIBRARY_RELEASE
NAMES GLEW glew glew32s
PATH_SUFFIXES lib lib64 libx32 lib/Release/${_arch}
PATHS ENV GLEW_ROOT)
find_library(GLEW_STATIC_LIBRARY_DEBUG
NAMES GLEWds glewds glew32ds
PATH_SUFFIXES lib lib64
PATHS ENV GLEW_ROOT)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${USER_FIND_LIBRARY_SUFFIXES}) Since I'm opening a PR upstream to get this fixed once and for all. |
Upstream PR: https://gitlab.kitware.com/cmake/cmake/merge_requests/3179 Sorry for the inconvenience this may caused and thanks for your help in detecting this issue 🥇 |
@traversaro, using this trick, I did a clean installation (I mean without any error)! |
The fix was merged upstream 🎉 We now need to update the YCM, cc @drdanz |
Thanks @traversaro for debugging and @claudiofantacci for the fix! Imported it in YCM. I will import it in YARP as soon as I release YCM 0.10.1. |
As it can be verified by #198, the bootstrapped version has been fixed. I will wait for YCM 0.10.1 release to had the 0.10.1 YCM version as a requirement and close this issue. |
YCM 0.10.1 just released |
I tried to install the robotology-superbuild and I got the following error when I do
make
,I don't know what is the reason but I got the following warning when I did
cmake
The text was updated successfully, but these errors were encountered: