robotology-legacy / codyco-modules

Whole-body Compliant Dynamical Contacts in Cognitive Humanoids
www.codyco.eu
Other
20 stars 13 forks source link

Update required iDynTree version #287

Closed GiulioRomualdi closed 4 years ago

GiulioRomualdi commented 4 years ago

Since the iDynTree 1.0.0 has been released The required minimum version of iDynTree has been updated. This is required by COMPATIBILITY SameMajorVersion

install_basic_package_files(iDynTree VARS_PREFIX ${VARS_PREFIX}
                                     VERSION ${${VARS_PREFIX}_VERSION}
                                     COMPATIBILITY SameMajorVersion
                                     TARGETS_PROPERTY ${VARS_PREFIX}_TARGETS
                                     NO_CHECK_REQUIRED_COMPONENTS_MACRO
                                     ENABLE_COMPATIBILITY_VARS
                                     DEPENDENCIES ${_IDYNTREE_EXPORTED_DEPENDENCIES})

In the main iDynTree CMakeLists.txt file

Indeed when I try to compile the library I got the following error

loSince the `iDynTree 1.0.0` has been [released](https://github.com/robotology/idyntree/releases/tag/v1.0.0) 
The required minimum version of iDynTree has been updated. This is required by `COMPATIBILITY SameMajorVersion` 
```cmake 
install_basic_package_files(iDynTree VARS_PREFIX ${VARS_PREFIX}
                                     VERSION ${${VARS_PREFIX}_VERSION}
                                     COMPATIBILITY SameMajorVersion
                                     TARGETS_PROPERTY ${VARS_PREFIX}_TARGETS
                                     NO_CHECK_REQUIRED_COMPONENTS_MACRO
                                     ENABLE_COMPATIBILITY_VARS
                                     DEPENDENCIES ${_IDYNTREE_EXPORTED_DEPENDENCIES})

In the main iDynTree CMakeLists.txt file

Indeed when I try to compile the library I got the following error

loading initial cache file /home/gromualdi/robot-code/robotology-superbuild/build/robotology/WBToolbox/CMakeFiles/YCMTmp/WBToolbox-cache-Release.cmake
-- Found YCM: /home/gromualdi/robot-code/robotology-superbuild/build/install/lib/cmake/YCM (found version "0.11.0.1-20191204+gitad8bb25")
-- Found YARP: /home/gromualdi/robot-code/robotology-superbuild/build/install/lib/cmake/YARP (found version "3.3.0+27-20200110.2+git5fbea1e6e")
CMake Error at CMakeLists.txt:35 (find_package):
  Could not find a configuration file for package "iDynTree" that is
  compatible with requested version "0.7.2".

  The following configuration files were considered but not accepted:

    /home/gromualdi/robot-code/robotology-superbuild/build/install/lib/cmake/iDynTree/iDynTreeConfig.cmake, version: 1.0.0
    /home/gromualdi/robot-code/robotology-superbuild/build/robotology/iDynTree/iDynTreeConfig.cmake, version: 1.0.0

Related to:

@traversaro

traversaro commented 4 years ago

I think https://github.com/robotology/idyntree/pull/629 is a more sensitive fix, unless 1.0 features are actually needed.

GiulioRomualdi commented 4 years ago

https://github.com/robotology/idyntree/pull/629 fixed the problem, we can close this issue