ethz-adrl / towr

A light-weight, Eigen-based C++ library for trajectory optimization for legged robots.
http://wiki.ros.org/towr
BSD 3-Clause "New" or "Revised" License
929 stars 233 forks source link

Could not find a package configuration file provided by "ifopt" #64

Closed ccrescent closed 5 years ago

ccrescent commented 5 years ago

hello everyone, when i run cmake .. -DCMAKE_BUILD_TYPE=Release ,it shows: gin@gin-desktop[11:31:25]:~/robot/towr/towr/build$ cmake .. -DCMAKE_BUILD_TYPE=Release CMake Error at CMakeLists.txt:5 (find_package): By not providing "Findifopt.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ifopt", but CMake did not find one.

Could not find a package configuration file provided by "ifopt" (requested version 2.0.1) with any of the following names:

ifoptConfig.cmake
ifopt-config.cmake

Add the installation prefix of "ifopt" to CMAKE_PREFIX_PATH or set "ifopt_DIR" to a directory containing one of the above files. If "ifopt" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred! See also "/home/gin/robot/towr/towr/build/CMakeFiles/CMakeOutput.log".

awinkler commented 5 years ago

Install ifopt, by cloning the repo and then: cmake .. && make install on your system. You might have to reopen the terminal. Hope this helps!

ccrescent commented 5 years ago

sorry it's my fault