Closed pattacini closed 3 years ago
That is strange, the iDynTree version for 2021.08 should be v4.2.0 : https://github.com/robotology/robotology-superbuild/blob/v2021.08/releases/2021.08.yaml#L77 . Is this a clean build or an update from a previous version? In case it is an update, are you sure that there is not YCM_EP_DEVEL_MODEL_<..>
variable set?
Is this a clean build or an update from a previous version
It's a clean build.
BTW, no YCM_EP_DEVEL_MODEL_<..>
variable is set.
If you go in src/iDynTree
what is the tag used there? What happens if you run make iDynTree
in the superbuild root?
I think it compiles just fine.
The tag is correctly set to v2021.08
.
Can you check the content of /usr/local/src/robot/robotology-superbuild/build/install/lib/cmake/iDynTree/iDynTreeConfigVersion.cmake to check if it contains 3.0.1 or 4.2.0 ?
It contains 3.0.1
set(PACKAGE_VERSION "3.0.1")
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
# if the installed project requested no architecture check, don't perform the check
if("FALSE")
return()
endif()
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
return()
endif()
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
math(EXPR installedBits "8 * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
I suspect there are some tricky details on the logic of installation that prevents the new file to overwrite the old one, probably related to timestamps. Can you try to remove the build/install
and re-compiled the superbuild? You can also inspect src/iDynTree/CMakeLists.txt
to check that indeed the source version is indeed v4.2.0 .
I've removed the build/install
dir, but I'm still getting the same problem with the file build/install/lib/cmake/iDynTree/iDynTreeConfigVersion.cmake
pointing to 3.0.1
.
I don't have any build/src/iDynTree/CMakeLists.txt
file, but I can see that build/src/iDynTree/CMakeCache.txt
contains somehow:
//Value Computed by CMake
CMAKE_PROJECT_VERSION:STATIC=3.0.1
I don't have any
build/src/iDynTree/CMakeLists.txt
file
I guess you can inspect the actual version of iDynTree used in robotology-superbuild/src/iDynTree/CMakeLists.txt
I overlooked the robotology-superbuild/src
dir. So the iDynTree version therein is the 3.0.1.
I only purged the content of the build
, actually.
So, when I said "clean" I was meaning right that.
Do I have to purge robotology-superbuild/src
as well then?
Do I have to purge
robotology-superbuild/src
as well then?
Either you purge it, or you update it via make update-all
(but I am not 100% sure that will work).
It worked 🎉 Thanks 👍🏻
While building
Distro 2021.08
anew in a clean WSL2 setup, I got the following CMake error:cc @traversaro