ethz-adrl / control-toolbox

The Control Toolbox - An Open-Source C++ Library for Robotics, Optimal and Model Predictive Control
BSD 2-Clause "Simplified" License
1.46k stars 314 forks source link

Installation error with blasfeo #215

Open dd292 opened 2 years ago

dd292 commented 2 years ago

Hey,

I am just trying to run this library in Ubuntu 20.04 but getting the error: In file included from /usr/local/include/ct/optcon/nloc/NLOCBackendBase.hpp:16, from /usr/local/include/ct/optcon/optcon.h:25, from /home/airlab/Documents/Projects/Cppilqr/src/control-toolbox/ct_models/src/HyQ/codegen/HyQLinearizationCodegen.cpp:6: /usr/local/include/ct/optcon/solver/lqp/HPIPMInterface.hpp:12:10: fatal error: blasfeo_target.h: No such file or directory 12 | #include <blasfeo_target.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated. I installed the HPIPM and BLASFEO using ./src/control-toolbox/ct/install_hpipm.sh I checked the CMakeCache.txt in ct_optcon/build, and that points to the correct location of BLASFEO which is blasfeo_DIR:PATH=/opt/blasfeo/cmake

I was curious if this issue is because of my Ubuntu version or just incorrect installation. I would appreciate the help.

condor-cp commented 2 years ago

I had the same issue that you have but somehow the repo owner could not reproduce. Try to modify CMakeLists.txt files as I did with this commit

Regards

haasithp commented 2 years ago

Hey, I was able to install and made these notes. Please go through it and let me know if there are any issues. https://haasith.notion.site/Control-Toolbox-ec4e170501914120b4b666e89353d35c