mraa
mraa copied to clipboard
Using MRAA with BeagleBone green
Hello, I'm new to development using a Beaglebone board, I would like to know if MRAA can be used with BeagleBone Green or only with Beaglebone Black.
Thanks in Advance.
I have been able to use it with BB Green and Black, both wired and wireless.
nJoy!
I have been able to use it with BB Green and Black, both wired and wireless. nJoy!
Thanks for the reply @Chuckduey, I'll check the documentation and other informations to continue my project. I have to prepare my eclipse IDE, in Ubuntu , to build a project for Beaglebone Green using MRAA, I am using arm-linux-gnueabihf as GCC, but I am unable to compile with MRAA.
This is my makefile:
I've changed the makefile now I keep getting this error. Let me explain this project: I have a project for LinkitSmart 7688, which uses MRAA, I've changed the GCC and some paths to build this project to BeagleBone Green, but now I'm getting this error.
It looks MRAA is not installed.
Type in mraa-gpio version on a console to the BeagleBone. If you have a "command not found" then you will need to install MRAA Libs. If the version is less than 2.0 I would uninstall and download the latest from Github.
Here are the directions for downloading and building the latest release. Note the "apt install" usually has a very old version and may not have the latest bug fixes. 0. Load the packages do make the build **sudo apt install build-essential python-dev cmake automake libpcre3 libpcre3-dev byacc flex **
- git clone https://github.com/eclipse/mraa.git
- Descend into the mraa directory cd mraa
- Create a build work area mkdir build
- Descend into that work area cd build
- Run cmake cmake -D CMAKE_INSTALL_PREFIX=/usr ..
- If cmake runs without error, run make
- If this runs without errors you are ready to install. Run sudo make install
- You may need to run sudo ldconfig or reboot before the linker works example gcc myfile.c -l mraa
After this you should be able to run the command mraa-gpio list and see all the pins that are controllable by MRAA on your system.
Good Luck
Chuck
It looks MRAA is not installed. Type in mraa-gpio version on a console to the BeagleBone. If you have a "command not found" then you will need to install MRAA Libs. If the version is less than 2.0 I would uninstall and download the latest from Github.
Here are the directions for downloading and building the latest release. Note the "apt install" usually has a very old version and may not have the latest bug fixes. 0. Load the packages do make the build **sudo apt install build-essential python-dev cmake automake libpcre3 libpcre3-dev byacc flex **
- git clone https://github.com/eclipse/mraa.git
- Descend into the mraa directory cd mraa
- Create a build work area mkdir build
- Descend into that work area cd build
- Run cmake cmake -D CMAKE_INSTALL_PREFIX=/usr ..
- If cmake runs without error, run make
- If this runs without errors you are ready to install. Run sudo make install
- You may need to run sudo ldconfig or reboot before the linker works example gcc myfile.c -l mraa
After this you should be able to run the command mraa-gpio list and see all the pins that are controllable by MRAA on your system.
Good Luck
Chuck
I Did the steps in my Beaglebone and in my VM (that I use to build the project).
Then, I added the /usr/lib and /usr/include to my makefile. Now I'm getting the following error
Did I missed something? Or there's another configuration that I have to do?
Thanks in advance
You are using a virtual box on an x86 platform. The BeagleBone is an ARM platform. I do not know how to make Eclipse on a VM act like a BeagleBone. You should be able to compile the program directly on the BeagleBone using GCC on that system. For the VM and Eclipse interface you will need to find a different resource that knows more about that.
Best regards
Chuck
You are using a virtual box on an x86 platform. The BeagleBone is an ARM platform. I do not know how to make Eclipse on a VM act like a BeagleBone. You should be able to compile the program directly on the BeagleBone using GCC on that system. For the VM and Eclipse interface you will need to find a different resource that knows more about that.
Best regards
Chuck
Thanks Chuck. In fact, what I need is Cross-compile my code in eclipse (VM) for the BeagleBone, do you have in mind where I can get this kind of information?