New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compile Libmraa for intel Edison from Linux x86_64 #303
Comments
This should have everything you need: https://github.com/intel-iot-devkit/mraa/blob/master/docs/building.md
|
I'm sorry but it's not very clear for me, what are the options to pass cmake to indicate the architecture i686 of intel edison ? |
When I do this : $cmake -DBUILDARCH=i586 then make then make install, the result still x86_64 library "libmraa.so.0.8.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV)" |
If you are cross compiling are using the or cross cmake toolchain file? You Brendan
|
I don't use it cause i don't know how can use it. That's why i'm asking for help. Could you please give me the instructions that I have to follow ? |
The following should what you need to cross compile at least the C/C++ using cmake and the Yocto toolchain. OK so first things first you will need a toolchain that matches what is running on the Edison. Intel provides one from. wget http://downloadmirror.intel.com/25028/eng/edison-sdk-linux64-ww25.5-15.zip
unzip edison-sdk-linux64-ww25.5-15.zip
./poky-edison-glibc-x86_64-edison-image-core2-32-toolchain-1.7.2.sh You will then be prompted where you want to install the SDK to, the default is The next step "sources" a script provided by the Yocto SDK which will add the compilers,sysroots to your running environment variables. This is tested under BASH and ZSH other shells may work but no promises :) source /opt/poky-edison/1.7.2/environment-setup-core2-32-poky-linux So, now its time to compile mraa! git clone https://github.com/intel-iot-devkit/mraa.git
cd mraa
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/oe-sdk_cross.cmake ../
make What should have happened now is that you used the included OE toolchain file in mraa to use the enviroment and sdk you set up in the previous steps. Alll going well you have now compiled mraa for edison |
It works :) Thank so much for your help, I really appreciate it :) |
Hi guys, |
So, the instruction I provided are targeting Yocto images provided by Intel. There will probably be a different way for targeting ubilinux, which I don't know exactly what is. |
Thanks for your response, I appreciate :) |
Do you know the instructions to cross compile for debian i386 ? This should work according to ubilinux forum |
So, I may be wrong and these suggestions are untested!. You will probally need to following packages
This might be partly the way todo it. |
The rm command is to remove the modifications that are in mraa so it packages for IPK over DEBs. Removing use the standard debian behaviour, at least it should. |
it doesn't work actually but never mind, i'll find a way |
Hello,
Could you please provide me the command line that allows me to compile the libmraa from my linux (Debian jessie x86_64) for intel Edison.
Thanks in advance.
The text was updated successfully, but these errors were encountered: