-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not use ipopt binding #4
Comments
The above problem has been fixed and it was due to the fact that To fix the problem, it has been sufficient to set the environment variable export MATLABPATH=/home/adinale/src/ipopt-matlab-interface-cmake/build/matlab:/home/adinale/src/ipopt-matlab-interface-cmake/build/install/mex Nevertheless, I was still not able to run examplehs051, because the >> [x, info] = examplehs051
Invalid MEX-file '/home/adinale/src/ipopt-matlab-interface-cmake/build/matlab/ipopt.mexa64':
/home/adinale/src/ipopt-matlab-interface-cmake/build/matlab/ipopt.mexa64: undefined symbol: _ZN5Ipopt7Journal4NameB5cxx11Ev.
Error in examplehs051 (line 33)
[x info] = ipopt(x0,funcs,options); |
I remembered that I had a similar issue when building iDyntree bindings. So I decided to follow the suggestion given on WB-Toolbox troubleshooting and run Matlab by preloading Then I have found that in the troubleshooting of Pypopt (IpOpt bindings for Python), they suggest to do the following:
I did not install IpOpt from source yet but I am planning to go for this option since it looks like I have exactly the same problem as Pypopt. @traversaro What do you think about it? Would I have to worry about compatibilities issue with |
This seems a linking problem in the bindings file ipopt.mexa64 .
Note : all the mentioned commands are available only on Linux, let me know if you are on another OS because there are equivalent commands. If @diegoferigo is around, he can give you some more info on this linking issues. |
In a very simple way, I downloaded last version of ipopt mex file that is available for download at https://www.coin-or.org/download/binary/Ipopt/ and fortunately it works.
|
@traversaro I went through the ipopt installation instruction and at the end added the mex folder path to the MATLAB.
Now command
help ipopt
works but when I run the examplehs051, I receive following error,The text was updated successfully, but these errors were encountered: