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

macOS Compilation #6

Open
DeepakIngole opened this issue Aug 27, 2018 · 1 comment
Open

macOS Compilation #6

DeepakIngole opened this issue Aug 27, 2018 · 1 comment

Comments

@DeepakIngole
Copy link

Hi Deng,

I am using ParNMPC on MATLAB 2018a and macOS High Sierra 10.13.6. While code generation I am getting an error.

`1 error generated.
gmake: *** [NMPC_Iter.o] Error 1

Error(s) encountered while building "NMPC_Iter":

Failed to generate all binary outputs.


??? Build error: C compiler produced errors. See the Build Log for further details.

Code generation failed: View Error Report
Error using codegen

Error in NMPC_Iter_CodeGen (line 83)
codegen -config cfg ...

Error in Simu_Simulink_Setup (line 31)
NMPC_Iter_CodeGen('dll','C',DoP);
`
How to generate dylib insted of dll?

Thank you.

@deng-haoyang
Copy link
Owner

Hi DeepakIngole,

Sorry for late response.
I don't have a mac in my hand right now and I cannot give you the exact solution.

Most likely, it is the problem of generating or compiling the openmp code. One way to check is to disable parallel code generation, i.e., by setting DoP to 1 and remove openmp timer function in Timer.m.

Another way is to switch 'dll' to 'lib' to generate C code without compiling. But I am not sure it will work or not.

The code generation function NMPC_Iter_CodeGen is actually based on MATLAB Coder and you can check the codegen function and possibly fix it.

Thank you for your feedback and I will fix it as soon as possible.

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

No branches or pull requests

2 participants