The Hello World Application can be renamed (for example from amsr_vector_app_hello_world_example to amsr_vector_app_my_example) by changing the short name of the build target in the build system (CMake executable) and the short name of the application itself at the same time.

Rename For Build System

To rename the short name of the application, you must ensure that the new short name is known to the build system. Choose one of two different ways to do so:

Rename Via Command (Terminal)

  1. Navigate to the local build cache directory of your application:
  2. cd "${AMSR_SRC_DIR}/Examples/amsr-vector-app-example-hello-world/build/gcc7_linux_x86_64"

  3. Set the HWSRC_APP_OUTPUT_NAME argument with the new build target short name:
  4. cmake -D HWSRC_APP_OUTPUT_NAME="amsr_vector_app_my_example" .

Rename Via Files (Manual)

  1. Open the Examples/amsr-vector-app-example-hello-world/app/hello_world/CMakeLists.txt file.
  2. Change set(TARGET hwsrc_app) to set(TARGET amsr_vector_app_my_example) in the file.
  3. Change all occurrences of hwsrc_app to amsr_vector_app_my_example in all files of your application directory.

Rename For Application

The easiest and recommended way to rename your application is by using DaVinci Developer Adaptive.

  1. Open your project via DaVinci Developer Adaptive.
  2. S_OpenProjectsFromFileSystem
  3. Click [Directory] and browse to the directory amsr-vector-app-my-example.
  4. Click [Finish].
  5. Open the context menu on your project.
  6. Select Configure | Convert to DaVinci Adaptive Project....
  7. S_ConvertToDaAdaptive
  8. Set model as Model and select User Application.
  9. S_ConvertBasisSettings
  10. Click [Next] and [Finish].
  11. Rename amsr_vector_app_hello_word_example to amsr_vector_app_my_example in the name field.

S_RenameArxml