Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JBüch
Novice
1,138 Views

MRAA on Edison (Ubilinux)

Jump to solution

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.

1 Solution
JBüch
Novice
66 Views

So after I tried I went back to Yocto now it works. But I think it would be still useful to answer this question.

View solution in original post

4 Replies
JBüch
Novice
67 Views

So after I tried I went back to Yocto now it works. But I think it would be still useful to answer this question.

View solution in original post

Carlos_M_Intel
Employee
66 Views

Hi jbuechel,

The problem you had in Ubilinux could be related with the MRAA version or with how you were compiling the code, for more information about the Ubilinux image, I suggest you to contact http://www.emutexlabs.com/forum/index EmutexLabs

Regards,

Charlie

JBüch
Novice
66 Views

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.

Carlos_M_Intel
Employee
66 Views

Hi jbuechel,

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

Regards,

Charlie

Reply