cmake fails to configure the package
Closed this issue · 2 comments
florent-lamiraux commented
I am on devel branch, commit 89297b1.
When I run cmake, I get the output below: the target dynamic_graph_bridge::sot_loader
is not found although it is defined in dynamic_graph_bridgeTargets.cmake
that should be loaded by command ADD_PROJECT_DEPENDENCY(dynamic_graph_bridge REQUIRED)
.
Looking at the cmake output, dynamic_graph_bridge does not seem to be loaded.
-- PythonInterp: /usr/bin/python
-- PYTHON_INCLUDE_DIRS:/usr/include/python2.7
-- PYTHON_INCLUDE_DIR:/usr/include/python2.7
-- PythonLibraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- PythonLibraryDirs: /usr/lib/x86_64-linux-gnu
-- PythonLibVersionString: 2.7.17
-- Python site lib: lib/python2.7/dist-packages
-- bullet is required.
-- Checking for module 'bullet'
-- Found bullet, version 2.87
-- Pkg-config module bullet v2.87 has been detected with success.
-- urdfdom is required.
-- Checking for module 'urdfdom'
-- Found urdfdom, version 1.0.0
-- Pkg-config module urdfdom v1.0.0 has been detected with success.
-- Using CATKIN_DEVEL_PREFIX: /home/florent/devel/pyrene/src/roscontrol_sot/build-rel/devel
-- Using CMAKE_PREFIX_PATH: /home/florent/devel/pyrene/install;/opt/ros/melodic;/opt/openrobots;/usr
-- This workspace overlays: /home/florent/devel/pyrene/install;/opt/ros/melodic;/opt/openrobots
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/florent/devel/pyrene/src/roscontrol_sot/build-rel/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Warning (dev) at /usr/src/googletest/CMakeLists.txt:3 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/src/googletest/googlemock/CMakeLists.txt:40 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/src/googletest/googletest/CMakeLists.txt:47 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.23
-- BUILD_SHARED_LIBS is on
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- dynamic-graph is required.
-- Checking for module 'dynamic-graph'
-- Found dynamic-graph, version 4.0.0-2-g6055
-- Pkg-config module dynamic-graph v4.0.0-2-g6055 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- eigen3 >= 3.0.5 is required.
-- Checking for module 'eigen3>=3.0.5'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- urdfdom >= 0.2.0 is required.
-- Checking for module 'urdfdom>=0.2.0'
-- Found urdfdom, version 1.0.0
-- Pkg-config module urdfdom v1.0.0 has been detected with success.
-- hpp-fcl >= 1.3.0 is required.
-- Checking for module 'hpp-fcl>=1.3.0'
-- Found hpp-fcl, version 1.4.1
-- Pkg-config module hpp-fcl v1.4.1 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- dynamic-graph is required.
-- Checking for module 'dynamic-graph'
-- Found dynamic-graph, version 4.0.0-2-g6055
-- Pkg-config module dynamic-graph v4.0.0-2-g6055 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- dynamic-graph is required.
-- Checking for module 'dynamic-graph'
-- Found dynamic-graph, version 4.0.0-2-g6055
-- Pkg-config module dynamic-graph v4.0.0-2-g6055 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- pinocchio is required.
-- Checking for module 'pinocchio'
-- Found pinocchio, version 2.3.1-189-g819f
-- Pkg-config module pinocchio v2.3.1-189-g819f has been detected with success.
-- eigen3 >= 3.0.5 is required.
-- Checking for module 'eigen3>=3.0.5'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- urdfdom >= 0.2.0 is required.
-- Checking for module 'urdfdom>=0.2.0'
-- Found urdfdom, version 1.0.0
-- Pkg-config module urdfdom v1.0.0 has been detected with success.
-- hpp-fcl >= 1.3.0 is required.
-- Checking for module 'hpp-fcl>=1.3.0'
-- Found hpp-fcl, version 1.4.1
-- Pkg-config module hpp-fcl v1.4.1 has been detected with success.
-- dynamic-graph-python is required.
-- Checking for module 'dynamic-graph-python'
-- Found dynamic-graph-python, version 3.5.1
-- Pkg-config module dynamic-graph-python v3.5.1 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- dynamic-graph is required.
-- Checking for module 'dynamic-graph'
-- Found dynamic-graph, version 4.0.0-2-g6055
-- Pkg-config module dynamic-graph v4.0.0-2-g6055 has been detected with success.
-- eigen3 is required.
-- Checking for module 'eigen3'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- eigen3 >= 3.0.5 is required.
-- Checking for module 'eigen3>=3.0.5'
-- Found eigen3, version 3.3.4
-- Pkg-config module eigen3 v3.3.4 has been detected with success.
-- urdfdom >= 0.2.0 is required.
-- Checking for module 'urdfdom>=0.2.0'
-- Found urdfdom, version 1.0.0
-- Pkg-config module urdfdom v1.0.0 has been detected with success.
-- hpp-fcl >= 1.3.0 is required.
-- Checking for module 'hpp-fcl>=1.3.0'
-- Found hpp-fcl, version 1.4.1
-- Pkg-config module hpp-fcl v1.4.1 has been detected with success.
-- Doxygen rendering: using LaTeX backend
-- Configuring done
CMake Error at CMakeLists.txt:70 (add_library):
Target "rcsot_controller" links to target
"dynamic_graph_bridge::sot_loader" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
CMake Error at tests/CMakeLists.txt:6 (ADD_EXECUTABLE):
Target "roscontrol_sot_hardware" links to target
"dynamic_graph_bridge::sot_loader" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
CMake Error at CMakeLists.txt:70 (add_library):
Target "rcsot_controller" links to target
"dynamic_graph_bridge::sot_loader" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
-- Generating done
-- Build files have been written to: /home/florent/devel/pyrene/src/roscontrol_sot/build-rel
olivier-stasse commented
Sorry for the problem.
I run few times in this problem and often it was due to a directory configuration problem.
I guess that you already tried, but could you confirm the following:
- Your CMAKE_PREFIX_PATH points towards the installation path of dynamic_graph_bridge.
- Did you clean your build directory ?
- Did you check the CMake error file related to this problem ?
Thanks again for your time.
florent-lamiraux commented
Cleaning the build repository solved the issue. I should have though of it.
Thank you.