hypharos_minicar icon indicating copy to clipboard operation
hypharos_minicar copied to clipboard

Compilation Error on Melodic

Open ngjermundshaug opened this issue 5 years ago • 5 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

ngjermundshaug avatar Jan 22 '20 21:01 ngjermundshaug

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?

haochihlin avatar Jan 25 '20 11:01 haochihlin

Could this be solved?

rahuldeo2047 avatar Mar 04 '20 04:03 rahuldeo2047

Hi

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

ngjermundshaug avatar Mar 04 '20 08:03 ngjermundshaug

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

soorajanilkumar avatar May 18 '20 11:05 soorajanilkumar

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

rtkartista avatar May 24 '21 18:05 rtkartista