Compilation Error on Melodic
ngjermundshaug opened this issue · comments
/home/xxxx/catkin_ws/src/hypharos_minicar/src/MPC.cpp:19:10: fatal error: cppad/cppad.hpp: No such file or directory
#include <cppad/cppad.hpp>
^~~~~~~~~~~~~~~~~
compilation terminated.
hypharos_minicar/CMakeFiles/MPC_Node.dir/build.make:62: recipe for target 'hypharos_minicar/CMakeFiles/MPC_Node.dir/src/MPC.cpp.o' failed
make[2]: *** [hypharos_minicar/CMakeFiles/MPC_Node.dir/src/MPC.cpp.o] Error 1
CMakeFiles/Makefile2:3954: recipe for target 'hypharos_minicar/CMakeFiles/MPC_Node.dir/all' failed
make[1]: *** [hypharos_minicar/CMakeFiles/MPC_Node.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
Sorry, I don't have an 18.04 environment to test the compilation on Melodic version.
However, based on the error msg, I think it was caused by the installation of Ipopt.
Did you install the ipopt properly?
Could this be solved?
Hi
I haven't looked any more at this, sorry.
Hi
This error is due to missing dependency of cppad lib in your system.
A simple
sudo apt install cppad
should do the trick
Hi
This error is due to missing dependency of cppad lib in your system.
A simple
sudo apt install cppad
should do the trick
the issue was not solved after using cppad install cmd