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

HelloDavinci Compilation and Running

Prerequisites

  • The Atlas 500 DDK has been installed.
  • The third-party CMake compilation tool (2.8.4 or later) has been installed.

    If the CMake compilation tool is not available, install it by referring to Compiling Service Software Using CMake.

Compilation Procedure

  1. Copy the samples file obtained in Description of the HelloDavinci File to a directory on the development host.
  2. Run the export DDK_HOME=Atlas 500 DDK installation directory command.
  3. Go to the HelloDavinci directory.
  4. Run the bash build.sh A500 command to perform compilation. After the compilation is successful, a .main executable file and the target dynamic library file are generated in the ${workPath}/out/ directory.

    ${workPath} indicates the HelloDavinci directory.

  5. Copy the out folder to Atlas 500 and run the ./out/main command to view the output result. If the following information is displayed, the execution is successful:

    Euler:~ # ./out/main
    Hello Davinci! 
    The sample end!!
    Euler:~ # cat out/davinci_log_info.txt
    This message is from HelloDavinci