eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
661 stars 410 forks source link

Cannot find the iAcceleration interface? #700

Open spyrosrallis opened 3 years ago

spyrosrallis commented 3 years ago

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?

Propanu commented 3 years ago

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.