Cross Compile for the Yun on Windows

What compilers are there that i can use to compile C into something that runs on the Yun?
Also, i would preferr not to set up a virtual machine to compile code.

Wuerfel_21: What compilers are there that i can use to compile C into something that runs on the Yun? Also, i would preferr not to set up a virtual machine to compile code.

@Wuerfel_21, SonnyYu knows how to do that. He should be by in a few hours. I think he is in Hong Kong or Shanghai. I know he is up hours after I am. FWIW: the C compiler on the Yun takes a lot of time, according to Sonny

Jesse

There’s also a nice Java virtual machine available for the Yun; I use it all the time (although it still runs with those darn Gnu classes). Compile your classes anywhere you want and run them on your Yun.

kind regards,

Jos

Here you can find helpful info about building OpenWrt and cross compiling packages

http://wiki.openwrt.org/doc/howto/build http://wiki.openwrt.org/doc/devel/packages

If you want to use Windows you can try Cygwin, so you can follow guides written for Linux distributions.

Also, try to do a search on forum, there are a lot of thread about compiling code for MIPS architecture.

This uses Python rather than C (only a mascohist uses C if he can avoid it) but it may be of interest Develop on PC deploy on Yun

...R

@Robin2 Thanks, but i really need C because of the speed...

Take a look here: http://forum.arduino.cc/index.php?topic=275391.msg1939027#msg1939027

Robin2: (only a mascohist uses C if he can avoid it)

Hey now, I make my living writing embedded C code! ;)

@ShapeShifter
Well, thats on the Yun itself, which i want to avoid (i dislike having the sysstem rely on a specific microsd… also i imagine compiling on the yun is hideously slow)

Also, i installed clang(which supports mips as a target i belive), but i cant for the heck of it figure out where to get headers/liberarys for the yun.

ShapeShifter:

(only a mascohist uses C if he can avoid it)

Hey now, I make my living writing embedded C code! ;)

I'm guessing that is because you can*NOT* avoid it :)

...R

Wuerfel_21: Well, thats on the Yun itself, which i want to avoid

You are correct. Your post doesn't mention it explicitly, and I missed the "cross" in the subject. I think you have valid concerns.

Robin2: I'm guessing that is because you can*NOT* avoid it :)

Well, it sure beats assembler!

Actually, with the more powerful processors these days, and larger memory footprints, I'm thinking it should be possible to step up to C++.

Wuerfel_21: What compilers are there that i can use to compile C into something that runs on the Yun? Also, i would preferr not to set up a virtual machine to compile code.

Tough call.

Windows NT 4.0 was the last major release to support Alpha, MIPS, or PowerPC, though development of Windows 2000 for Alpha continued until August 1999, when Compaq stopped support for Windows NT on that architecture;

http://en.wikipedia.org/wiki/Windows_NT

Windows NT 4.0's release date is July 29, 1996

Second challenge is find current MIPS based hardware.

jessemonroy650:

I think he is in Hong Kong or Shanghai. I know he is up hours after I am. FWIW: the C compiler on the Yun takes a lot of time, according to Sonny

I do travel both place often, but I am New York City based.

Well, the yun is, according to the product page mips based, so a cross compiler that can target mips should do it... the problem is finding the matching header and liberaries.

http://wiki.openwrt.org/doc/howto/buildroot.exigence

Cygwin(Windows) will not be supported because of the lack of case sensitiveness in the file system.

Recommend host OS for cross compile:

  • Debian
  • SUSE
  • Fedora
  • Arch
  • Gentoo

Required work around:

  • Red Hat
  • OS X
  • NetBSD

Gentoo is as only a source code based OS(everything is built from source by the user), Missing header and liberaries never is highly unlikely happened.

I think you misunderstood: I dont want to compile OpenWrt for the yun, i want to compile my own programs so they run on the yun.

Copy Lua header file (lua_dev) for compile lua module:

http://forum.arduino.cc/index.php?topic=266549.msg1880787#msg1880787

Copy libsqlite3-dev file for compile sqlite:

http://forum.arduino.cc/index.php?topic=266549.msg2039192#msg2039192

Copy python_devel for compile python module:

http://forum.arduino.cc/index.php?topic=266549.msg1879521#msg1879521

Again, i dont want to build the entire OS, neither any of those...

Plan B:

Get MIPS based Laptop/Desktop, load Debian 32bits MIPS OS, compile C source then copy over the binary.

I dont think thats required... Why cant there be someone who actually properly understands english?

Wuerfel_21: I dont think thats required... Why cant there be someone who actually properly understands english?

Can you understand difference between native compile and cross compile?

Did you ever compile code run different hard ware platform (ARM, Alpha, MIPS, or PowerPC)?

Why is there someone who actually don't understands basic but try to fly?

Sorry, I am at wrong mode. Pollen allergy drive me nuts. :sob: