Using Custom Libraries in Application Projects - 2021.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 English

You can create custom libraries for common utilities and use them in the application projects. To use the custom libraries in an application project, do the following:

  1. Create a custom library using the New Library Project wizard. For more details, see Creating a Library Project.
  2. Select the project for which you want to include the custom library, in the Project Explorer view.
  3. Select Project > Properties. The Properties for <project> view appears. The left panel of the view has a properties list. This list shows the build properties that apply to the current project.
  4. Expand the C/C++ Build property.
  5. Click on Settings.
  6. Under Tool Settings view, expand the gcc compiler list.
  7. Select Directories to change or add the library header file path. You can now include the required header files from the library project to the application.
  8. Expand the gcc linker list.
  9. Select Libraries to add the custom library and the library path to the application project.
  10. Click Apply to save the settings.
  11. When you finish updating the tools and their settings, click OK to save and close the Properties for <project> view.