Installation error in linux

HI,
After running the following commands:

make shared_library
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_acados_folder>/lib
make examples_c
make run_examples_c

I get the following error when running "
make examples_c"
ā€¦

 libacados.a static library build complete.

( cd examples/c; make examples TOP=/home/juan212/OneDrive/Documentos/PHD/acados )
make[1]: Entering directory '/home/juan212/OneDrive/Documentos/PHD/acados/examples/c'
g++ -o dense_qp.out  dense_qp.o -L/home/juan212/OneDrive/Documentos/PHD/acados/lib  -lacados -lhpipm -lblasfeo -lm -lblas -llapack

 Example dense_qp build complete.

gcc  -O2 -fPIC  -DACADOS_WITH_C_INTERFACE -DMEASURE_TIMINGS -I/home/juan212/OneDrive/Documentos/PHD/acados -I/home/juan212/OneDrive/Documentos/PHD/acados/interfaces -I/home/juan212/OneDrive/Documentos/PHD/acados/include -I/home/juan212/OneDrive/Documentos/PHD/acados/external/blasfeo/include -I/home/juan212/OneDrive/Documentos/PHD/acados/external/hpipm/include -I/home/juan212/OneDrive/Documentos/PHD/acados/external/hpmpc/include -I/home/juan212/OneDrive/Documentos/PHD/acados/external/qpoases/include -I/home/juan212/OneDrive/Documentos/PHD/acados/include/qore/include -I/home/juan212/OneDrive/Documentos/PHD/acados/external/qpdunes/include -I/home/juan212/OneDrive/Documentos/PHD/acados/external/osqp/include -std=c99   -c -o ocp_qp.o ocp_qp.c
ocp_qp.c: In function ā€˜mainā€™:
ocp_qp.c:59:22: error: ā€˜FULL_CONDENSING_QPOASESā€™ undeclared (first use in this function); did you mean ā€˜FULL_CONDENSING_HPIPMā€™?
   59 |     plan.qp_solver = FULL_CONDENSING_QPOASES; // FULL_CONDENSING_QPOASES, FULL_CONDENSING_HPIPM
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
      |                      FULL_CONDENSING_HPIPM
ocp_qp.c:59:22: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [<builtin>: ocp_qp.o] Error 1
make[1]: Leaving directory '/home/juan212/OneDrive/Documentos/PHD/acados/examples/c'
make: *** [Makefile:262: examples_c] Error 2

ā€¦

thanks

Hi,

You have to adapt the Makefile.rule to include qpOASES, i.e. set
ACADOS_WITH_QPOASES = 1

I am going to add this here:
https://docs.acados.org/installation/#make

Cheers!

1 Like