Unsatisfied APIs detected
Insane-neal opened this issue · comments
Hi, all
I'm trying to build dwm1001_listener application on MacOS. Mynewt version is 1.5. It gave the error:
Error: Unsatisfied APIs detected: * UWB_CIR_HW_IMPL, required by: lib/cir
What shall I do to fix this issue?
I'm having the same issue here on Linux.
suggestions welcome
I had the same issue and solved by adding the following lines in the pkg.yml of the listener:
pkg.apis:
- UWB_CIR_HW_IMPL
I also stumbled upon the same error.
I think this issue should be reopened since @leobotler solution is a workaround not a fix.
UWB_CIR_HW_IMPL
should only be defined by packages providing a CIR hardware layer implementation as in the cir_dw1000 package.
Looking at uwb_dw1000 package we can understand why the implementation is missing. CIR_ENABLED
being set to 0
means that cir_dw1000
is not included.
Following this logic, listener package CIR dependency could be changed to:
pkg.deps.CIR_ENABLED:
- "@mynewt-dw1000-core/lib/cir"
Doing so still does not compile due to a missing CIR define used here. A simple fix is to wrap the block with a #if MYNEWT_VAL(CIR_ENABLED)
. A more comprehensive fix seems be to wrapping (in the same manner) all the code concerning acc_samples_to_load
config parameter since it only makes sense when CIR is enabled.