- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello lit,
Do you have any update about this? Do you still need help?
-Peter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page