ACADOS install and example

Hi, I install the ACADOS in matlab, and I have the follows errors messages when I run the example ‘minimal_example_ocp’ in matlab. I need help. Thank you very much!

NOTE: These numerical values can be updated online using the appropriate setters.

Constraint detection for path constraints.
constraint 1 is reformulated as bound on u.
F

found compiled acados MEX interface
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_constraints
Successfully rendered acados templates!
Error using acados_template_mex.compile_ocp_shared_lib
Building templated code as shared library failed.
Got status 2, result: [ 14%] Building C object CMakeFiles/model_pendulum.dir/pendulum_model/pendulum_expl_ode_fun.c.obj
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_ode_fun.c:1:
warning: -fPIC ignored for target (all code is position independent)
[ 28%] Building C object CMakeFiles/model_pendulum.dir/pendulum_model/pendulum_expl_vde_forw.c.obj
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_vde_forw.c:1:
warning: -fPIC ignored for target (all code is position independent)
[ 42%] Building C object CMakeFiles/model_pendulum.dir/pendulum_model/pendulum_expl_vde_adj.c.obj
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_model\pendulum_expl_vde_adj.c:1:
warning: -fPIC ignored for target (all code is position independent)
[ 42%] Built target model_pendulum
[ 57%] Building C object CMakeFiles/ocp_pendulum.dir/pendulum_constraints/pendulum_constr_h_0_fun_jac_uxt_zt.c.obj
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_constraints\pendulum_constr_h_0_fun_jac_uxt_zt.c:1:
warning: -fPIC ignored for target (all code is position independent)
[ 71%] Building C object CMakeFiles/ocp_pendulum.dir/pendulum_constraints/pendulum_constr_h_0_fun.c.obj
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\pendulum_constraints\pendulum_constr_h_0_fun.c:1:
warning: -fPIC ignored for target (all code is position independent)
[ 85%] Building C object CMakeFiles/ocp_pendulum.dir/acados_solver_pendulum.c.obj
F:\Matlab2022A\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_solver_pendulum.c:1: warning:
-fPIC ignored for target (all code is position independent)
[ 85%] Built target ocp_pendulum
[100%] Linking C shared library acados_ocp_solver_pendulum.dll
Creating library file:
acados_ocp_solver_pendulum.libCMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1b0):
undefined reference to ocp_nlp_get' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1d1): undefined reference to ocp_nlp_get’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1f2):
undefined reference to ocp_nlp_get' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x216): undefined reference to ocp_nlp_get’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x36c):
undefined reference to ocp_nlp_solver_opts_destroy' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x376): undefined reference to ocp_nlp_in_destroy’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x381):
undefined reference to ocp_nlp_out_destroy' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x38c): undefined reference to ocp_nlp_out_destroy’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x397):
undefined reference to ocp_nlp_solver_destroy' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x3a2): undefined reference to ocp_nlp_dims_destroy’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x3ad):
undefined reference to ocp_nlp_config_destroy' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x3b8): undefined reference to ocp_nlp_plan_destroy’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x3d3):
undefined reference to external_function_external_param_casadi_free' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x3e3): undefined reference to external_function_external_param_casadi_free’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x409):
undefined reference to external_function_external_param_casadi_free' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x417): undefined reference to external_function_external_param_casadi_free’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x47f):
undefined reference to ocp_nlp_solve' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x4ad): undefined reference to ocp_nlp_solve’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x4f9):
undefined reference to ocp_nlp_in_set_params_sparse' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x54a): undefined reference to ocp_nlp_in_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x5f7):
undefined reference to ocp_nlp_out_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x620): undefined reference to ocp_nlp_out_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x64e):
undefined reference to ocp_nlp_out_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x6fe): undefined reference to ocp_nlp_out_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x724):
undefined reference to ocp_nlp_out_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x74a): more undefined references to ocp_nlp_out_set’ follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x81b):
undefined reference to ocp_nlp_get' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x856): undefined reference to ocp_nlp_solver_reset_qp_memory’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x89d):
undefined reference to ocp_nlp_precompute' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x8e1): undefined reference to ocp_nlp_solver_destroy’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x923):
undefined reference to ocp_nlp_solver_opts_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x93c): undefined reference to ocp_nlp_solver_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x9e5):
undefined reference to ocp_nlp_in_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xa14): undefined reference to ocp_nlp_cost_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xaaa):
undefined reference to ocp_nlp_dynamics_model_set_external_param_fun' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xade): undefined reference to ocp_nlp_dynamics_model_set_external_param_fun’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xb23):
undefined reference to ocp_nlp_cost_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xbac): undefined reference to ocp_nlp_cost_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xc31):
undefined reference to ocp_nlp_cost_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xc87): undefined reference to ocp_nlp_cost_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xcdd):
undefined reference to ocp_nlp_cost_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xd55): more undefined references to ocp_nlp_cost_model_set’ follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xe63):
undefined reference to ocp_nlp_in_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xe8c): undefined reference to ocp_nlp_cost_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0xfc2):
undefined reference to ocp_nlp_cost_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1020): undefined reference to ocp_nlp_cost_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1074):
undefined reference to ocp_nlp_cost_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x10f7): undefined reference to ocp_nlp_constraints_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1121):
undefined reference to ocp_nlp_constraints_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x114e): undefined reference to ocp_nlp_constraints_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x11b1):
undefined reference to ocp_nlp_constraints_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1213): undefined reference to ocp_nlp_constraints_model_set_external_param_fun’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1245):
undefined reference to ocp_nlp_constraints_model_set_external_param_fun' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x126f): undefined reference to ocp_nlp_constraints_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1299):
undefined reference to ocp_nlp_constraints_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1319): undefined reference to ocp_nlp_constraints_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x133f):
undefined reference to ocp_nlp_constraints_model_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x136b): undefined reference to ocp_nlp_constraints_model_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x13d6):
undefined reference to external_function_external_param_casadi_create' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1420): undefined reference to external_function_external_param_casadi_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1487):
undefined reference to external_function_external_param_casadi_create' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x14e6): undefined reference to external_function_external_param_casadi_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x153e):
undefined reference to ocp_nlp_plan_create' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1591): undefined reference to ocp_nlp_config_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1949):
undefined reference to ocp_nlp_dims_create' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1969): undefined reference to ocp_nlp_dims_set_opt_vars’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1987):
undefined reference to ocp_nlp_dims_set_opt_vars' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x19ab): undefined reference to ocp_nlp_dims_set_opt_vars’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x19cf):
undefined reference to ocp_nlp_dims_set_opt_vars' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x19e7): undefined reference to ocp_nlp_dims_set_opt_vars’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1a26):
undefined reference to ocp_nlp_dims_set_constraints' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1a50): undefined reference to ocp_nlp_dims_set_constraints’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1a7a):
undefined reference to ocp_nlp_dims_set_constraints' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1aa4): undefined reference to ocp_nlp_dims_set_constraints’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1ace):
undefined reference to ocp_nlp_dims_set_constraints' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1af8): more undefined references to ocp_nlp_dims_set_constraints’ follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1b60):
undefined reference to ocp_nlp_dims_set_cost' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1ba4): undefined reference to ocp_nlp_dims_set_cost’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1bd8):
undefined reference to ocp_nlp_dims_set_constraints' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1bfe): undefined reference to ocp_nlp_dims_set_constraints’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1c47):
undefined reference to ocp_nlp_dims_set_constraints' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1c72): undefined reference to ocp_nlp_dims_set_constraints’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1cef):
undefined reference to ocp_nlp_dims_set_constraints' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1d1b): more undefined references to ocp_nlp_dims_set_constraints’ follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1da5):
undefined reference to ocp_nlp_dims_set_cost' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1dc8): undefined reference to ocp_nlp_solver_opts_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1e01):
undefined reference to ocp_nlp_solver_opts_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1e2a): undefined reference to ocp_nlp_solver_opts_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1e53):
undefined reference to ocp_nlp_solver_opts_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1e6f): undefined reference to ocp_nlp_solver_opts_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1e94):
undefined reference to ocp_nlp_solver_opts_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1eb9): more undefined references to ocp_nlp_solver_opts_set’ follow
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1f8e):
undefined reference to ocp_nlp_solver_opts_set_at_stage' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1fc1): undefined reference to ocp_nlp_solver_opts_set_at_stage’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x1ff4):
undefined reference to ocp_nlp_solver_opts_set_at_stage' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x202e): undefined reference to ocp_nlp_solver_opts_set_at_stage’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x205e):
undefined reference to ocp_nlp_solver_opts_set_at_stage' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x20aa): undefined reference to ocp_nlp_solver_opts_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x20dc):
undefined reference to ocp_nlp_solver_opts_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x210a): undefined reference to ocp_nlp_solver_opts_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x212c):
undefined reference to ocp_nlp_solver_opts_set' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x214e): undefined reference to ocp_nlp_solver_opts_set’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2180):
more undefined references to ocp_nlp_solver_opts_set' follow CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x23f7): undefined reference to ocp_nlp_in_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x243b):
undefined reference to ocp_nlp_solver_create' CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2450): undefined reference to ocp_nlp_out_create’
CMakeFiles\acados_ocp_solver_pendulum.dir/objects.a(acados_solver_pendulum.c.obj):acados_solver_pendulum.c:(.text+0x2465):
undefined reference to `ocp_nlp_out_create

collect2: ld returned 1 exit status
mingw32-make.exe[2]: *** [acados_ocp_solver_pendulum.dll] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/acados_ocp_solver_pendulum.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2

Error in ocp_generate_c_code (line 293)
acados_template_mex.compile_ocp_shared_lib(ocp.code_export_directory)

Error in acados_ocp (line 205)
ocp_generate_c_code(obj.ocp);

Error in minimal_example_ocp (line 115)
ocp_solver = acados_ocp(ocp_model, ocp_opts, simulink_opts);

Hi,

I see you have a lot of undefined references.
This is related to the include path either not being set or not generated during the installation.
Did your installation work successfully?
Do you have files in acados_root_dir/include?

Hi, Frey, Thank you very much for reply! At present, I am checking that it may be caused by a file conflict that also came with ACADOS when I originally installed ACADO. I’m still working on the details. I will communicate with you the final solution of this problem in time and post the solution on the forum. It may be possible to provide future scholars with a solution to install errors.