Skip to content
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

Undefined Symbols with BUILD_OPENFAST_SIMULINK_API and USE_LOCAL_STATIC_LAPACK on Linux #1681

Closed
deslaughter opened this issue Jul 12, 2023 · 1 comment

Comments

@deslaughter
Copy link
Collaborator

Hi all. I'm not sure if this will be helpful to anyone, but to get a working MEX file on my system (Ubuntu 22.04) with USE_LOCAL_STATIC_LAPACK ON, I had to explicitly add a lot of sources to the simulink CMakeLists.txt (NWTC, PDAS, NetLib SLATEC, Supercontroller, RanLux, Openfoam). Otherwise I would get errors like: "undefined symbol: __openfoam_types_MOD_opfm_destroyoutput" when calling FAST_SFunc in Matlab.

Originally posted by @henyau in #1010 (comment)

@deslaughter
Copy link
Collaborator Author

I was able to reproduce the issue on Linux and it is caused by order that the libraries are linked in glue-codes/simulink/CMakeLists.txt. A PR will be submitted after verifying that it works on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant