Showing results for 
Show  only  | Search instead for 
Did you mean: 
Registered: ‎09-18-2020

How to link a library in Vitis?

I am still familiarizing myself with Vitis, and as a more hardware-centric designer, I have a dumb question.  I pulled in the Analog Devices API library for their AD9172 DAC chip.  I have an already working platform and application, so I created a new library under my system project.  I added in the source and headers from ADI and it builds fine.

I then went to my application and added the single line 

api_handle_t handle = {0};

This should initialize a handle from the API library.  I thought that by building the API library within the same system project that it would automatically link in, but I am assuming that it doesn't because I get the following error

unknown type name 'api_handle_t'

So what am I missing?  I am sure it is something simple, but I have come up empty in my searches so far.

Tags (1)
0 Kudos
1 Reply
Registered: ‎09-12-2007

You can add custom libraries to the tools > repositories. For example, and point to repo (the hierarchy is important)

  • repo/lib/sw_services/my_library_v1_0

However, your library will need a MLD file. Does your library have this? If not, you will manually have to create this

0 Kudos