tatsuyah / Model-Predictive-Control

C++ implementation of Model Predictive Control(MPC)
MIT License
86 stars 16 forks source link

make issue #1

Open freexile opened 5 years ago

freexile commented 5 years ago

I run the command"cd build"--"cmake .."--"make";but I got errors when I run the third command.As follows: /home/freexile/Model-Predictive-Control/src/MPC.cpp:2:27: fatal error: cppad/cppad.hpp: 没有那个文件或目录

include <cppad/cppad.hpp>

                       ^

compilation terminated. CMakeFiles/mpc.dir/build.make:62: recipe for target 'CMakeFiles/mpc.dir/src/MPC.cpp.o' failed make[2]: [CMakeFiles/mpc.dir/src/MPC.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mpc.dir/all' failed make[1]: [CMakeFiles/mpc.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

could you help me solve this problem?

YellowOrz commented 3 years ago

This problem is because you don't install cppad. You should read the doc named 'install_Ipopt_CppAD.md'. Except cppad, you should also install ipopt whose installation method can also be fould in 'install_Ipopt_CppAD.md'.