Creating a Library Project - 2024.2 English - UG1400

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

Document ID
UG1400
Release Date
2025-01-20
Version
2024.2 English
A static library is a collection of object files that are linked into a program during the compile time. A platform is required before creating an application.

To create a library component, select File > New Component > Static Library.

  1. Input the Static Library component name and specify the location. Click Next.
  2. Select a fixed platform and select Next.
    Note: If you do not have an existing fixed platform, refer the chapter Creating a Platform Component from XSA to create a platform. If your target platform is not in the list, you can add it by clicking the '+' button.
  3. Select the target processor domain for the library, and select Next.
  4. Click Add Files or Add Folders to import the source file for the library, and select Next.
    Note: You can import source files after library component is created by right clicking the SRC folder and import the source.
  5. Review the summary and click Finish.
After Library component is created, you can select to build it in Flow Navigator. For more information on compiler setting, refer to Build Configuration Settings.
Note: Linker support for Library component is not provided. Omit Linker setting if you check the build configuration settings.