Building Issue ConfigurationDesk 2022-A

Hi Jonathan,

thanks for the reply and the help. I included only the C files listed in make_sfun.m and make_sfun_sim.m in ConfigurationDesk. As you predicted, the original error disappeared, but now I am encountering a new error when compiling the model via ConfigurationDesk:

fatal error: simstruc.h: No such file or directory

Currently, my Custom Code settings in ConfigurationDesk are as follows:

Search Paths:

C:\acados\buildDS1403\install\include; C:\acados\buildDS1403\install\include\blasfeo\include; C:\acados\buildDS1403\install\include\hpipm\include

Custom Source Files:

C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_sim_solver_sfunction_pendulum.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_sim_solver_pendulum.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_ode_fun.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_vde_forw.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_vde_adj.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_ode_fun.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_vde_forw.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_constraints\pendulum_constr_h_0_fun.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_constraints\pendulum_constr_h_0_fun_jac_uxt_zt_hess.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_constraints\pendulum_constr_h_0_fun_jac_uxt_zt.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_solver_sfunction_pendulum.c; C:\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_solver_pendulum.c

Include Directories:

C:\acados\buildDS1403\install\lib\libacados.a; C:\acados\buildDS1403\install\lib\libblasfeo.a; C:\acados\buildDS1403\install\lib\libhpipm.a

I attempted to include C:\Program Files\MATLAB\R2021b\simulink\include, hoping to resolve the issue, but this resulted in a different error:

fatal error: rtwtypes.h: No such file or directory

I suspect this new error might be related to ConfigurationDesk/dSpace and not acados, since i think dSpace should include the necessary directories for S-Functions automatically. Therfore I have contacted their support too, lets see if I get an awnser. As soon as i solve the issue I will update this topic, maybe this might help someone else aswell.

Greetings Sören

1 Like