I am currently trying to access the BMP-180 sensor with MRAA. I am using Ubilinux. In the latest version of Ubilinux MRAA is already installed. I also followed the sparkfun guide on how to install MRAA on Ubilinux. When I try to compile my c++ program on the edison I get: error: "mraa" does not name a type . Does anyone have an idea how to solve this problem? If further informations are necessary please contact me.
So you think that the version which is pre-installed in the distribution is too old too new? And what are ways to compile? I used the g++ compiler. Gcc doesn't change anything.
I do not know which version comes installed in the Ubilinux image, the latest MRAA version is 0.7.3 from http://iotdk.intel.com/repos/1.5/intelgalactic/ intelgalactic/
In order to compile C or C++ code you need to link the MRAA library for example, if you are going to compile the https://github.com/intel-iot-devkit/mraa/blob/master/examples/blink-io.c blink-io.c example you need to run gcc blink-io.c -o output -lmraa . Sometimes you also need to indicate the location of the library when you compile the code with something like -I /usr/include