cartpole_casadi_cplusplus
cartpole_casadi_cplusplus copied to clipboard
can not load shared library "libcasadi_nlpsol_ipopt.so"
I met a problem. When i run the command "./mytest". can not load shared library "libcasadi_nlpsol_ipopt.so". However , I have installed the ipopt and casadi.
I met this problem when I build casadi using
cmake -DWITH_PYTHON=ON DWITH_IPOPT=true -DWITH_QPOASES=true -DWITH_LAPACK=true ..
I solve it by just using
cmake -DWITH_PYTHON=ON ..
and reinstall casadi. Then the code works well.
Here is a similar issue: casadi issues
I met this problem also. Is it necessary to reinstall casadi?
I met this problem also. Is it necessary to reinstall casadi?
Sloved. No need to uinstall casadi. Use cmake -DWITH_IPOPT=true .. instead of cmake -DWITH_PYTHON=ON .. when install casadi. and Use cmake -DWITH_PYTHON=ON .. instead of cmake .. for this project. And it runs.