Closed reflector-li closed 2 years ago
Hi @reflector-li, thanks for opening the issue. I suspect it might be related to a setup issue. Can you try to add the path to the bin
folder where you installed OsqpEigen
to the Windows PATH env variable?
Yes, 0xC0000135
is the error raised if some .dll
required by the executable can't be found. I guess the missing .dll
could be the one of osqp
or the one of òsqp-eigen
Hi @reflector-li, thanks for opening the issue. I suspect it might be related to a setup issue. Can you try to add the path to the
bin
folder where you installedOsqpEigen
to the Windows PATH env variable?
Thank you very much! I use MinGW as my complile enviroment. It remind that libosqp-eigen.dll can not be found. So I compile it with my cmake configuration. Now I can use it. I will post the CMakeLists.txt I use to help someone who met the same problem with me.
cmake_minimum_required(VERSION 3.20)
project(osqp_eigen)
include_directories(./include)
aux_source_directory(./src DIR_LIB_SRCS)
find_package(Eigen3 REQUIRED)
# add the customed install path of osqp
find_package(osqp REQUIRED
PATHS D:/cppThirdParty/libInstall/osqpLib
NO_DEFAULT_PATH)
add_library(osqp_eigen STATIC ${DIR_LIB_SRCS})
target_link_libraries(osqp_eigen Eigen3::Eigen osqp::osqpstatic)
install(TARGETS osqp_eigen ARCHIVE DESTINATION lib)
install(DIRECTORY ./include/ DESTINATION include)
Hi @reflector-li, I closed the issue since according to https://github.com/robotology/osqp-eigen/issues/118#issuecomment-1098213601 it seems that you were able to have a working setup. Please do not hesitate to open it again if I misunderstood
I want to use osqp-eigen on windows 11, and I have already installed and tested Eigen3.4.0 and osqp0.6.2 which ran normally. However, When I compiled and installed osqp-eigen successfully, I want to test it using MPCExample.cpp and it failed with the following error:
The CMakeLists.txt I used for the example is
I installed osqp to customized path, so I declare it on
find_packages()
. I guass the error occurs for false to find the osqp-eigen library. I used bothfind_package()
way andinclude_package()
manually, but both failed. Can someone help me solver it? Thank you!