The Hello World Application can be renamed (for example from ves_vector_app_hello_world_example to ves_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)
- Navigate to the local build cache directory of your application:
cd "${AMSR_SRC_DIR}/
Examples/amsr-vector-app-example-hello-world/build/gcc11_linux_x86_64"- Set the
HWSRC_APP_OUTPUT_NAMEargument with the new build target short name: cmake -D HWSRC_APP_OUTPUT_NAME="
ves_vector_app_my_example".
Rename Via Files (Manual)
- Open the
Examples/amsr-vector-app-example-hello-world/app/hello_world/CMakeLists.txtfile. - Change
set(TARGET hwsrc_app)toset(TARGET ves_vector_app_my_example)in the file. - Change all occurrences of
hwsrc_apptoves_vector_app_my_examplein all files of your application directory.
Rename For Application
The easiest and most recommended way to rename your application is by using DaVinci Developer Adaptive.
- Open DaVinci Developer Adaptive.
- Open the File menu in the menu bar.
- Select Open Projects from File System....
- The Import Projects from File System or Archive dialog opens.
- Click and browse to the
amsr-vector-app-my-exampledirectory. - The chosen directory path is set as import source.
- Click .
- The chosen directory is imported as new project and displayed in the Project Explorer.
- Open the context menu (right click) of your project.
- Select Configure | Convert to DaVinci Adaptive Project....
- The Convert to DaVinci Adaptive Project... dialog opens.
- Set the value of the Model field of the Project Folders settings to
model. - Choose User Application as Project Use Case.
- Click and .
- Open the AUTOSAR Model Explorer for your project.
- Navigate to the
ves_vector_app_hello_word_exampleexecutable in the AUTOSAR model. - Change the executable name in the name field to
ves_vector_app_my_example. - Save your changes.
- Your application is renamed.