1 of 1 people found this helpful
you might also be interested to look into the Intel(R) IoT development kit (Beta) IoT* - SuperZone - IoT | Intel® Developer Zone which comes with a cross-compiler for Windows, Linux, and MacOS within the Eclipse IDE.
Otherwise the Arduino IDE for Intel(R) Edison / Intel(R) Galileo also comes with a cross compiler you could use outside of the IDE
Thank you for the pointer guys. It really helped.
With little bit of work, I found out that the SD Card Image for Yocto on this (https://communities.intel.com/docs/DOC-22226) page comes with a C compiler already. All I had to do is:
- Write up a sample hello world in test.c file
- Boot up galileo with the SD card. And wait a few seconds
- make sure your galileo is connected to the network. Find the IP for your galileo.
- use SCP to transfer the source to galileo using following command
will put the source file in src directory in root
- ssh into galigleo using following command:
- navigate to src directory or where ever you have
placed the test.c file
- run gcc test.c –o test
- and fun the ./test program to see your hello
Simple as that!
well, you asked for a cross compiler. What you do here is compilation on target. Sure you can do that.
However, if there are package dependencies you'd have to install all those dependencies on the target in order to be able to build. Besides it's most likely way slower to build than a cross compile host.