robotology / wb-toolbox

Simulink toolbox to rapidly prototype robot controllers
https://robotology.github.io/wb-toolbox/
GNU Lesser General Public License v2.1
23 stars 16 forks source link

Update required iDynTree version #182

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

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: https://github.com/dic-iit/bipedal-locomotion-controllers/pull/8

@traversaro

GiulioRomualdi commented 4 years ago

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