-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unable to find osqp-eigen #33
Comments
Since the diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70c6517..9b6a01b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,7 +93,7 @@ set(UCPLANNER_HEADERS include/ControlledUnicycle.h
add_library(UnicyclePlanner ${UCPLANNER_HEADERS} ${UCPLANNER_SOURCES})
target_include_directories(UnicyclePlanner PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
target_include_directories(UnicyclePlanner PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
-target_link_libraries(UnicyclePlanner ${iDynTree_LIBRARIES})
+target_link_libraries(UnicyclePlanner iDynTree::idyntree-core)
set_property(TARGET UnicyclePlanner PROPERTY PUBLIC_HEADER ${UCPLANNER_HEADERS})
target_compile_features(UnicyclePlanner PUBLIC cxx_attribute_deprecated) The generation phase went fine. However when I tried to compile the code. The linker return the following error
This is strange. Since the |
It depends on RK4 which is part of the opimal control library. |
The problem is solved updating the main $ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2495d51..82f1526e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,6 +68,9 @@ if(NOT IDYNTREE_ONLY_DOCS)
list(APPEND _IDYNTREE_EXPORTED_DEPENDENCIES orocos_kdl)
endif()
+ list(APPEND _IDYNTREE_EXPORTED_DEPENDENCIES OsqpEigen)
+ list(APPEND _IDYNTREE_EXPORTED_DEPENDENCIES osqp)
+
include(InstallBasicPackageFiles)
install_basic_package_files(iDynTree VARS_PREFIX ${VARS_PREFIX}
VERSION ${${VARS_PREFIX}_VERSION} I think this is only a workaround. Waiting for @traversaro, for more hints |
The issue is the following:
|
(Note that this happens only if iDynTree is compiled with |
Hotfix for the problem provided in robotology/idyntree#642 . |
I think we can close this issue then as it is not a problem of the |
I'm trying to build the
unicycle-footstep-planner
on Windows usingVisual Studio 2019
. When I generate the solution using CMake, I retrieved the following error.The planner uses nither
osqp-eigen
norosqp
. HoweveriDynTree
, that is widely used in the unicycle library, requiredosqp-eigen
orosqp
.The text was updated successfully, but these errors were encountered: