目录

How to Update a Project to the Latest Version

Tool Description

If you want to use the DDK tools package of a later version to debug an operator project generated using the DDK tools package of version 5.0.2.0, you need to update the operator project. Otherwise, the following error message will be displayed during compilation.

/usr/bin/ld: cannot find -lPLATFORM-NOTFOUND: No such file or directory
// ...
CMake Error at cmake_install.cmake:78 (file):
  file INSTALL cannot find
  "***/build_out/libcustom_op.so":
  No such file or directory.


make: *** [Makefile:100: install] Error 1

Command

Run the following command to update an operator project to a version supported by the current tool: Here, ${install_path} is the installation directory of the DDK tools.

chmod +x ${install_path}/ddk/tools/tools_ascendc/upgrade_project.sh
${install_path}/ddk/tools/tools_ascendc/upgrade_project.sh <path>

Table 1 Parameters for project update

Parameter Description Mandatory
<path> Root path of the custom operator project Yes
-h, --help Outputs help information. No

For example, if the installation directory is /usr/local/ and the directory of the created operator project is /home/AddCustom, run the following command:

chmod +x  /usr/local/ddk/tools/tools_ascendc/upgrade_project.sh
/usr/local/ddk/tools/tools_ascendc/upgrade_project.sh /home/AddCustom