cartpole_casadi_cplusplus icon indicating copy to clipboard operation
cartpole_casadi_cplusplus copied to clipboard

can not load shared library "libcasadi_nlpsol_ipopt.so"

Open seekku opened this issue 3 years ago • 3 comments

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.

seekku avatar Dec 24 '21 09:12 seekku

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

junkdood avatar Jan 04 '22 08:01 junkdood

I met this problem also. Is it necessary to reinstall casadi?

zhuhongwu0918 avatar Mar 07 '23 09:03 zhuhongwu0918

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.

zhuhongwu0918 avatar Mar 07 '23 10:03 zhuhongwu0918