Skip to content

Using PYOPTSPARSE_IMPORT_SNOPT_FROM #396

Closed Answered by ewu63
swryan asked this question in Installation
Discussion options

You must be logged in to vote

pySNOPT requires a few more things to be linked during compilation (for example the error points to openunit not found. Here is a thread with more clear instructions (which we will try to add to our docs...), in particular note the line

SRC=pyoptsparse/pyoptsparse/pySNOPT
python -m numpy.f2py -m snopt -c ${SRC}/f2py/snopt.pyf ${SRC}/*.f -L${PREFIX}/lib -lsnopt7

The ${SRC}/*.f argument tells f2py to additionally build bindings for these fortran files that are shipped with pyOptSparse.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@swryan
Comment options

@swryan
Comment options

Answer selected by swryan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants