Did you have a look at the Intel(R) IoT development kit on https://software.intel.com/en-us/iot?
If you use the eglibc based SD card image you can use the Eclipse IDE which comes preconfigured with cross compiler, remote deploy & debug capabilities
1 of 1 people found this helpful
If you don't want to use the IoT Developer Kit image, you can use the cross-compiler that is bundled in the Intel Arduino IDE to build binaries for Galileo. That cross-compiler builds against uClibc. It is easiest to do this using the Linux distribution, of course.
I have downloaded the tool chain tarball Toolchain_GPLCompliance.src.1.0.4.tar.bz2 from Software & Documentation link . I have extracted this toolchain . It gives the following files and folders :-
1) sysroots folder
kindly let me know how to use this toolchain to build the c program .
Ques 2: I understand that Arduino uses the uclibc compiler to build its programs have functtions like like setup() , loop() .But i want to make a c program which i want to cross compile it for Intel Galieo board . How it would happen . I am not interested in writing Arduino programs .
Qeus3 : How to use this toolchain Toolchain_GPLCompliance.src.1.0.4.tar.bz2 for compiling the c programs
Ques 4; Suppose i build my own image after following the BSP steps . which toolchain would even work over it .
The toolchain you downloaded does not build against uClibc. It builds against libc, so it won't help you.
On #2, the Ardino IDE does build against uCllibc. It comes with a cross compiler that does this,. You don't have to create an Arduino program to use it. You can just use it. It's a little complicated, but I recently published an article on how you can build wolfSSL for use in Arduino sketches. The first step of that procedure is to build the wolfSSL library against uClibc using the cross compiler, and it tells you exactly what you need to do. You would follow the same process: download the Intel Arduino IDE for Linux, and use the cross-compiler inside of that to build your software. You don't have to run the Arduino IDE or ever do anything with Arduino. You are just taking advantage of the fact that it bundles the cross-compiler that you need.
#4 is also a viable altenrative. You would download the BSP and basically write a recipe for Yocto to build your package. That is considerably more complicated, however, and it takes a lot longer because before your recipe can be built it will have to build a bunch of other stuff, too. It's much easier and much faster and much less frustrating to just use the cross-compiler that is bundled in the Intel Arduino IDE.
what you try to achieve is not really supported so you're pretty much on your own.
- "x compile for the Galileo board" - which image do you have on your board? uclibc based or eglibc based (latter would be e.g. the Intel(R) IoT developer kit system)
- if for uclibc - yes, you may take the parts from Arduino IDE. Just have a look what happens during Arduino compilation and use it likewise outside of the IDE
- if for eglibc: you may use Arduino IDE for Edison (just don't compile for core2 but for i586) or as mentioned the Eclipse
Hi , Just wanted to know , can i compile my c programs against Libc toochain instead of using the ulibc. If yes , then how ? otherwise , why it has been recommended at Intel Support Software and Document page .
Do you have any updates on this? Have you been able to cross compile for your Galileo? There are other similar threads in the community, have you read them? They have a lot of helpful information, I's suggest you to take a look at:
I was going through the bringing wolfSSL for use in Arduino sketches. I noticed that in the new Arduino-1.6.5 there is no "environment-setup-i586-poky-linux-uclibc" required for cross compiling wolfssl in the path <arduino>/hardware/tools/. This path just contains avr/. Is there a different way to set up wolfssl for Galileo?
I was going through the bringing wolfSSL for use in Arduino sketches. I noticed that in the new Arduino-1.6.5 there is no "environment-setup-i586-poky-linux-uclibc" required for cross compiling wolfssl in the path <arduino>/hardware/tools/.
It sounds like you have downloaded the general Arduino IDE, not the Intel-provided Arduino IDE that includes Galileo support. That version is currently 1.6.0 and you can download it here: