Updated on 2022-03-13 GMT+08:00

Compiling Service Software Using CMake

  1. Run the sudo apt install cmake command on the development host to install the CMake tool.
  2. Run the cmake -version command to check the CMake version. The version must be later than 2.8.4.
  3. Create a CMake compilation project by referring to the settings of the Atlas 500 sample project.
  4. Copy the CMake directory in the root directory of the Atlas 500 sample project to the upper-level directory in the home directory of the target project.
  5. Copy the build.sh file in a subproject (for example, HelloDavinci) of the Atlas 500 sample project to the home directory of the target project and modify the file.
  6. Delete source $path_cur/../Common/scripts/build_tools.sh from the file.
  7. Go to the root directory of the project and run the following command to compile the program. After the compilation, check the generated target program in the out folder under the root directory.

    export DDK_HOME=Atlas 500 DDK installation directory&&bash build.sh A500

  8. Copy the out folder to the Atlas 500 host for running.