zhengxiang94 / ocs2_ros2

BSD 3-Clause "New" or "Revised" License
57 stars 26 forks source link

在ubuntu20.04上编译报错,不知怎么解决 #4

Closed lkx8421 closed 5 days ago

lkx8421 commented 5 days ago
/home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:104:18: error: too few arguments to function ‘blasfeo_dtrmv_ltn’ 104 #define TRMV_LTN blasfeo_dtrmv_ltn ^~~~~ /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/x_ocp_qp_kkt.c:1281:33: note: in expansion of macro ‘TRMV_LTN’ 1281 TRMV_LTN(nx[ss+1], L+ss+1, nu[ss+1], nu[ss+1], dux+ss+1, nu[ss+1], tmp_nuxM, 0); ^~~~ In file included from /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blas.h:41, from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:42: /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blasfeo_api.h:111:6: note: declared here 111 void blasfeo_dtrmv_ltn(int m, int n, struct blasfeo_dmat sA, int ai, int aj, struct blasfeo_dvec sx, int xi, struct blasfeo_dvec *sz, int zi); ^~~~~ In file included from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:125: /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/x_ocp_qp_kkt.c:1282:56: warning: passing argument 2 of ‘blasfeo_dtrmv_lnn’ makes integer from pointer without a cast [-Wint-conversion] 1282 TRMV_LNN(nx[ss+1], L+ss+1, nu[ss+1], nu[ss+1], tmp_nuxM, 0, tmp_nuxM, 0); ~~~~^~
struct blasfeo_dmat *
In file included from /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blas.h:41, from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:42: /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blasfeo_api.h:109:35: note: expected ‘int’ but argument is of type ‘struct blasfeo_dmat *’ 109 void blasfeo_dtrmv_lnn(int m, int n, struct blasfeo_dmat sA, int ai, int aj, struct blasfeo_dvec sx, int xi, struct blasfeo_dvec *sz, int zi); ~~~~^ In file included from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:125: /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/x_ocp_qp_kkt.c:1282:62: warning: passing argument 3 of ‘blasfeo_dtrmv_lnn’ makes pointer from integer without a cast [-Wint-conversion] 1282 TRMV_LNN(nx[ss+1], L+ss+1, nu[ss+1], nu[ss+1], tmp_nuxM, 0, tmp_nuxM, 0); ^~~~
int
In file included from /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blas.h:41, from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:42: /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blasfeo_api.h:109:59: note: expected ‘struct blasfeo_dmat *’ but argument is of type ‘int’ 109 void blasfeo_dtrmv_lnn(int m, int n, struct blasfeo_dmat sA, int ai, int aj, struct blasfeo_dvec sx, int xi, struct blasfeo_dvec *sz, int zi); ~~~~~^~ In file included from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:125: /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/x_ocp_qp_kkt.c:1282:80: warning: passing argument 5 of ‘blasfeo_dtrmv_lnn’ makes integer from pointer without a cast [-Wint-conversion] 1282 TRMV_LNN(nx[ss+1], L+ss+1, nu[ss+1], nu[ss+1], tmp_nuxM, 0, tmp_nuxM, 0); ^~~~
struct blasfeo_dvec *
In file included from /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blas.h:41, from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:42: /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blasfeo_api.h:109:75: note: expected ‘int’ but argument is of type ‘struct blasfeo_dvec *’ 109 void blasfeo_dtrmv_lnn(int m, int n, struct blasfeo_dmat sA, int ai, int aj, struct blasfeo_dvec sx, int xi, struct blasfeo_dvec *sz, int zi); ~~~~^~ In file included from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:125: /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/x_ocp_qp_kkt.c:1282:93: warning: passing argument 7 of ‘blasfeo_dtrmv_lnn’ makes integer from pointer without a cast [-Wint-conversion] 1282 TRMV_LNN(nx[ss+1], L+ss+1, nu[ss+1], nu[ss+1], tmp_nuxM, 0, tmp_nuxM, 0); ^~~~
struct blasfeo_dvec *

In file included from /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blas.h:41, from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:42: /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blasfeo_api.h:109:108: note: expected ‘int’ but argument is of type ‘struct blasfeo_dvec ’ 109 | void blasfeo_dtrmv_lnn(int m, int n, struct blasfeo_dmat sA, int ai, int aj, struct blasfeo_dvec sx, int xi, struct blasfeo_dvec sz, int zi); | ~~~~^~ /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:103:18: error: too few arguments to function ‘blasfeo_dtrmv_lnn’ 103 | #define TRMV_LNN blasfeo_dtrmv_lnn | ^~~~~ /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/x_ocp_qp_kkt.c:1282:33: note: in expansion of macro ‘TRMV_LNN’ 1282 | TRMV_LNN(nx[ss+1], L+ss+1, nu[ss+1], nu[ss+1], tmp_nuxM, 0, tmp_nuxM, 0); | ^~~~ In file included from /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blas.h:41, from /home/lkx/ros2_ws/build/hpipm_colcon/download/ocp_qp/d_ocp_qp_kkt.c:42: /home/lkx/ros2_ws/install/blasfeo_colcon/include/blasfeo_d_blasfeo_api.h:109:6: note: declared here 109 | void blasfeo_dtrmv_lnn(int m, int n, struct blasfeo_dmat sA, int ai, int aj, struct blasfeo_dvec sx, int xi, struct blasfeo_dvec *sz, int zi); | ^~~~~ gmake[2]: [build/CMakeFiles/hpipm.dir/build.make:989: build/CMakeFiles/hpipm.dir/ocp_qp/s_ocp_qp_kkt.c.o] Error 1 gmake[2]: [build/CMakeFiles/hpipm.dir/build.make:793: build/CMakeFiles/hpipm.dir/ocp_qp/d_ocp_qp_kkt.c.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:230: build/CMakeFiles/hpipm.dir/all] Error 2 gmake: [Makefile:146: all] Error 2

Failed <<< hpipm_colcon [0.28s, exited with code 2]

Summary: 0 packages finished [0.45s] 1 package failed: hpipm_colcon 1 package had stderr output: hpipm_colcon