How to add new libraries

when I try to add a new library (…/libraries/AP_RTK/AR_RTK.h…), there is some problem I cannot solve .Is there any friend could give me some useful suggestions? Is there a right way to add new libraries? Thank U.

@CChen Have you succeeded? Can you share it?
I am stuck on undefined reference to vtable issue now.