MiRoboticsLab/cyberdog_ws

cyberdog_ws docker compile failed

xcccya opened this issue · 9 comments

xcccya commented

Describe the bug
docker 环境下,cyberdog_ws 编译失败,缺失 liblog4cxx.so.10
log4cxx

+1, 遇到同样的问题

请查看一下docker镜像的编译过程中是否有liblog4cxx-dev的安装报错,如果有的话可以重新编译docker镜像。或者在现有的镜像中运行apt install liblog4cxx-dev

apt install liblog4cxx-dev 有用,如果不行可以 apt update 一次

xcccya commented

docker build的时候没有任何报错信息,我从cyberdog设备(第二代)上把缺少的库拷贝过来,可以编译通过,但是把编译后的产物放到设备上,无法启动,请问这个项目是cyberdog_ws一代的还是二代的?

Starting >>> cyberdog_grpc
Finished <<< cyberdog_parameter [12.1s]
Finished <<< navigation_bringup [12.7s]
Finished <<< low_power_consumption [14.3s]
Starting >>> cyberdog_interactive
Finished <<< cyberdog_embed_protocol [15.5s]
Finished <<< image_transmission [15.8s]
Finished <<< black_box [17.5s]
Starting >>> user_info_manager
Starting >>> cyberdog_bms
Starting >>> cyberdog_led
Starting >>> cyberdog_tof
Starting >>> cyberdog_ultrasonic
Finished <<< manager_base [24.0s]
Starting >>> cyberdog_uwb
--- stderr: nav2_util
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.

make[2]: *** [test/CMakeFiles/test_actions.dir/test_actions.cpp.o] Error 4
make[1]: *** [test/CMakeFiles/test_actions.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
**c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
make[2]: *** [test/CMakeFiles/test_service_client.dir/test_service_client.cpp.o] Error 4
make[1]: *** [test/CMakeFiles/test_service_client.dir/all] Error 2
make: *** [all] Error 2

Failed <<< nav2_util [2min 24s, exited with code 2]**

现在报这个错误

xcccya commented

你这个是系统内存不足,g++被系统kill掉了,不要用多线程编译

给到16核16G内存会不够用,降到8核心16G内存就可以了,但是还是有这些错误

--- stderr: cyberdog_bluetooth
/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,

Finished <<< cyberdog_bluetooth [11.0s]
--- stderr: cyberdog_wifi
/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,

报错后显示完成Finished <<< cyberdog_bluetooth [9.94s]

不知道是编译完成还是只是个警告

最后编译了好几个小时结果是这样的
Summary: 95 packages finished [35min 58s]
2 packages had stderr output: cyberdog_bluetooth cyberdog_wifi

您好这是警告,出现上述结果说明所有功能包已经编译完成