deng-haoyang / ParNMPC

A Parallel Optimization Toolkit for Nonlinear Model Predictive Control (NMPC)
https://deng-haoyang.github.io/ParNMPC/
BSD 2-Clause "Simplified" License
297 stars 78 forks source link

Failed to load custom code simulation #9

Open xeeman opened 5 years ago

xeeman commented 5 years ago

Dear Deng, I have tried the Quadcopte example, but the simulink file at the last step didnt run. I t gives me this error:

Failed to load custom code simulation library:D:\Users\sanim\Documents\MATLAB\MPC\ParNMPC\Quadrotor\slprj_slcc\oSDpra6UYTzTcubJVwU2TH\oSDpra6UYTzTcubJVwU2TH_cclib.dll Component:Simulink | Category:Model error

deng-haoyang commented 5 years ago

Hi xeeman,

It seems some users have encountered the same problem, but currently, I don't know where the problem is. Could u delete the slprj_slcc folder and try it again? Or "clear mex" might help.

gaorunzebit commented 4 years ago

Hello Haoyang:

I met the same question. It seems when run Simulink, the floder slprj/slcc would be created automatically. Then the same error happened. But now I dont know the reason. Have you figured it out? Thank you.

souravsanyal06 commented 2 years ago

Hi. I solved the issue by disabling the import custom code flag in simulation configurations

JiaoShouMing commented 1 year ago

1、type '' mex -setup'' command in matlab commandline 2、select ''Microsoft Visual C++'' instead of '' MinGW64 Compiler (C)'' image

note: i installed matlab2021a 、 visual studio 2019 and mingw6.3