upm icon indicating copy to clipboard operation
upm copied to clipboard

Cannot find the iAcceleration interface?

Open spyrosrallis opened this issue 3 years ago • 1 comments

Hello. I've installed MRAA/UPA from the PPA for Ubuntu 20.04 [Server] on the RPi CM4. However, when I try to compile the example code for the MMA8X5X it fails with the message:

/usr/include/upm/mma8x5x.hpp:34:10: fatal error: interfaces/iAcceleration.hpp: No such file or directory 34 | #include <interfaces/iAcceleration.hpp>

Is this interface into a separate package than I haven't installed? Although I've installed most packages, with the exception of the ones I didn't need (for Node.js, Python, et.c.)

Am I missing something else, maybe some configuration issue?

spyrosrallis avatar Dec 11 '20 11:12 spyrosrallis

Hi @spyrosrallis, you need to install the dev package (libupm-dev) in addition to the runtime to be able to compile against the library. Also, AFAIK on Ubuntu server you need to configure just about everything from scratch, so you may need to set your compiler include directories also after installing the required headers.

Propanu avatar Dec 16 '20 16:12 Propanu