Hi,
I am using Acados in Simulink and trying to build the code for DS140. I have successfully cross compiled Acados for DS1401. I use Matlab 2021b. I end up with the following warnings and errors:
COMPILING “AutoboxModel.c”
COMPILING “AutoboxModel_trc_ptr.c”
COMPILING “rtGetInf.c”
COMPILING “rtGetNaN.c”
COMPILING “rt_nonfinite.c”
COMPILING “C:\AcadosBuilds\c_generated_code\acados_mex_create_MPC_OCP.c”
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\hpipm/include/hpipm_common.h”, line 54 pos 8; trailing comma is nonstandard
ROBUST, // focus on robustness, relative IPM formulation
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\hpipm/include/hpipm_common.h”, line 63 pos 11; trailing comma is nonstandard
INCONS_EQ, // unconsistent equality constraints
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados/utils/types.h”, line 83 pos 23; trailing comma is nonstandard
ACADOS_TIMEOUT = 7,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados/utils/types.h”, line 94 pos 17; trailing comma is nonstandard
INVALID_COST,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados/utils/types.h”, line 105 pos 7; trailing comma is nonstandard
ZERO,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados/sim/sim_collocation_utils.h”, line 72 pos 25; trailing comma is nonstandard
EXPLICIT_RUNGE_KUTTA,
^
(E) C0070; “C:\Git\acados\buildDS1401\install\include\acados/utils/timing.h”, line 105 pos 21; incomplete type is not allowed
struct timespec tic;
^
(E) C0070; “C:\Git\acados\buildDS1401\install\include\acados/utils/timing.h”, line 106 pos 21; incomplete type is not allowed
struct timespec toc;
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados_c/ocp_qp_interface.h”, line 102 pos 22; trailing comma is nonstandard
INVALID_QP_SOLVER,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados_c/sim_interface.h”, line 49 pos 23; trailing comma is nonstandard
INVALID_SIM_SOLVER,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados_c/ocp_nlp_interface.h”, line 58 pos 23; trailing comma is nonstandard
INVALID_NLP_SOLVER,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados_c/ocp_nlp_interface.h”, line 67 pos 21; trailing comma is nonstandard
INVALID_DYNAMICS,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados_c/ocp_nlp_interface.h”, line 82 pos 23; trailing comma is nonstandard
INVALID_CONSTRAINT,
^
(I) C0228-D; “C:\Git\acados\buildDS1401\install\include\acados_c/ocp_nlp_interface.h”, line 94 pos 23; trailing comma is nonstandard
INVALID_REGULARIZE,
^
(E) C0020; “C:\Matlab\R2021b\extern\include\matrix.h”, line 227 pos 9; identifier “int64_T” is undefined
typedef int64_T mxInt64;
^
(E) C0020; “C:\Matlab\R2021b\extern\include\matrix.h”, line 228 pos 9; identifier “uint64_T” is undefined
typedef uint64_T mxUint64;
^
4 Errors 12 InformationalsCOMPILING FAILED (1)
MAKE PROCESS ABORTED
So mainly I have 2 errors:
(E) C0020; “C:\Matlab\R2021b\extern\include\matrix.h”, line 227 pos 9; identifier “int64_T” is undefined
typedef int64_T mxInt64;
^
and
(E) C0070; “C:\Git\acados\buildDS1401\install\include\acados/utils/timing.h”, line 105 pos 21; incomplete type is not allowed
struct timespec tic;
^
And some warnings for commas.
How can I solve these 2 errors? I believe int64_T should already be defined in tmwtypes.h in C:\Matlab\R2021b\extern\include\tmwtypes.h and I included the header file and its folder in the Code Generation settings.
Thanks in advance!
Umur