giaf / hpipm

High-performance interior-point-method QP and QCQP solvers
Other
554 stars 130 forks source link

Make Error for C examples #146

Open davidcGIThub opened 1 year ago

davidcGIThub commented 1 year ago

When I follow the instructions on the readme for the C examples and I run

make static_library -j 4 && make examples

in the hpipm root folder I get the following error.

Parsing Makefile.rule
cp libhpipm.a ./examples/c/libhpipm.a
( cd examples/c; make obj )
make[1]: Entering directory '/home/david/Code/hpipm/examples/c'
Parsing Makefile.rule
make[1]: *** No rule to make target 'data/mass_spring_qp_data.o', needed by 'obj'.  Stop.
make[1]: Leaving directory '/home/david/Code/hpipm/examples/c'
make: *** [Makefile:284: examples] Error 2
giaf commented 1 year ago

Thanks for reporting, as an example I added the missing data for the mass spring system with 2 masses and 1 control, and softed final state bound that would be infieasible if not softed. https://github.com/giaf/hpipm/commit/8f26230acef36145f78ab9f39fc0b4398565a16e