The invention relates to the technical field of
embedded system software development and
continuous integration, in particular to a docker-based AGV (automatic guided vehicle) cross compiling method, which comprises the following steps of: constructing an ARM (advanced RISC machines) root
file system on an x86 development host by using a
virtualization tool, configuring a header file and a dependency
library, and packaging and compressing to obtain an ARM root
file system mirror image; pulling the basic
mirror image from the public warehouse to create an x86 Docker container,
copying the ARM
mirror image to a specific path of the container and mounting the ARM mirror image to prepare a Docker mirror image special for AGV cross compiling; writing a CMake cross tool chain file in the container, introducing an ARM mounting path, setting a dependency path and appointing a tool chain; then integrating the commands, automatically updating the container through mirror image ID comparison, and constructing operation commands such as
Makefile packaging and compiling and the like at the same time; and finally, calling an integration command to start cross compiling, and generating a program capable of running on an ARM board card of the AGV. According to the method, unified and efficient
multiplexing of the AGV cross compiling environment can be realized, the development efficiency is improved, the maintenance cost is reduced, and the method is adaptive to an AGV project needing cross compiling.