Hypha-ROS / hypharos_minicar

1/20 MiniCar: An ackermann based rover for MPC and Pure-Pursuit controller
https://hypharosworkshop.wordpress.com/
Apache License 2.0
310 stars 113 forks source link

Compilation Error on Melodic #14

Open ngjermundshaug opened 4 years ago

ngjermundshaug commented 4 years ago
/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
haochihlin commented 4 years ago

Hi @ngjermundshaug

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?

rahuldeo2047 commented 4 years ago

Could this be solved?

ngjermundshaug commented 4 years ago

Hi

I haven't looked any more at this, sorry.

soorajanilkumar commented 4 years ago

Hi This error is due to missing dependency of cppad lib in your system. A simple sudo apt install cppad should do the trick

rtkartista commented 3 years ago

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