esa / pagmo_plugins_nonfree

A pagmo affiliated package (https://github.com/esa/pagmo2) adding commercial solvers to the list of solvers/algorithms: SNOPT7, WORHP
GNU General Public License v3.0
10 stars 9 forks source link

Using the snopt7_c.so library as provided by Stanford Optimisation Software #3

Closed darioizzo closed 5 years ago

darioizzo commented 5 years ago

When downloading the snopt libraries from Stanford Optimization Software website one receives, for example, libsnopt7.so (FORTRAN) and libsnopt7_c.so (c)

In pagmo_plugins_nonfree we need to load the libsnopt7_c.so library, specifying its path upon construction. But this will not make the fortran symbols available since libsnopt7_c.so is shipped by Stanford without linking to the fortran library (WHY? its a mistery) .

So we need to manually add that using (linux) the command:

patchelf --add-needed libsnopt7.so libsnopt7_c.so
darioizzo commented 5 years ago

Tested and works bu the libraries are crashing. Did they chage the API w.r.t. the snopt 7 we developed around?

darioizzo commented 5 years ago

Yes they did!!! Opening a new issue for that.

darioizzo commented 5 years ago

This is related to #6

darioizzo commented 5 years ago

close this and contiunue in #6