Closed Ginkbel closed 3 months ago
Hello @Ginkbel !
Hello, I've followed every step along the way (including exporting the environment variables and adding them to .bashrc), but when invoking:
Which step? I am afraid I am missing a bit of context regarding your issue. To what steps are you referring to?
Oh, sorry, the steps I'm referencing are these: https://github.com/ami-iit/ami-commons/blob/master/doc/casadi-ipopt-hsl.md (for getting Casadi+Ipopt+HSL installed). So I've followed 0.-15. exactly as it is stated, and then on step 16 when invoking cmake I get the error above.
Sorry for bothering you, although it says Ipopt wasn't found Casadi seems to differentiate between Ipopt and IPOPT.
I've tried building and running code that uses the Casadi library and it works. Thank you very much for the installation instructions. :)
Glad you found that instructions useful. Anyhow, it is not strictly necessary to recompile ipopt and casadi to actually use HSL solvers, just ensuring that libcoinhsl.so
can be found by ipopt's dlopen, for example adding the library that contains it to LD_LIBRARY_PATH
is sufficient. Probably we should add a disclaimer on top of that document. fyi @GiulioRomualdi
Hello, I've followed every step along the way (including exporting the environment variables and adding them to .bashrc), but when invoking:
cmake -DWITH_IPOPT:BOOL=ON -DWITH_HSL:BOOL=ON -DINCLUDE_PREFIX:PATH=include -DCMAKE_PREFIX:PATH=lib/cmake/casadi -DLIB_PREFIX:PATH=lib -DBIN_PREFIX:PATH=bin ..
I've got Ipopt not found in the terminal output:
What can I do so Ipopt is found by cmake?