Decawave / mynewt-dw1000-apps

[DEPRECATED] Use https://github.com/Decawave/uwb-apps for new designs.
Apache License 2.0
29 stars 22 forks source link

Unsatisfied APIs detected #30

Closed Insane-neal closed 4 years ago

Insane-neal commented 5 years ago

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:

horst-m commented 4 years ago

I'm having the same issue here on Linux. suggestions welcome

leobotler commented 4 years ago

I had the same issue and solved by adding the following lines in the pkg.yml of the listener:

pkg.apis:

Beetix commented 4 years ago

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.