Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TKirv1
New Contributor II
1,332 Views

Including MRAA functions in code from Github

Jump to solution

I have recently downloaded code from github which reads data from an IMU device. I want to be able to use MRAA functions, specifically pwm, in the same script which pulls the IMU data. How do I include the MRAA libraries so they work with this code??

The repository is located at https://github.com/RTIMULib/RTIMULib2 GitHub - RTIMULib/RTIMULib2 and includes makefiles cmakelists etc. My guess would be I need to add the path to mraa somewhere in a makefile, but I am really not sure if this is right, or even the correct syntax to use if it is.

Any help would be much appreciated!!

-Thomas

1 Solution
TKirv1
New Contributor II
57 Views

I have figured out a pretty simple solution that seems to work fine. I was able to simply add the mraa library path to the LIBS setting in the make file.

Thanks!

Thomas

View solution in original post

3 Replies
idata
Community Manager
57 Views

Hello lit,

 

 

What have you tried so far? Are you able to run the examples provided in there? If so, why don't you try to modify one these (the one that suits you better)? If you include the mraa library and add you part of the code and then compile it adding mraa (using the option -lmraa if you are using C/C++), you should be able to adapt the code to your need.

 

 

-Peter.
idata
Community Manager
57 Views

Hello lit,

 

 

Do you have any update about this? Do you still need help?

 

 

-Peter.
TKirv1
New Contributor II
58 Views

I have figured out a pretty simple solution that seems to work fine. I was able to simply add the mraa library path to the LIBS setting in the make file.

Thanks!

Thomas

View solution in original post

Reply