Society of Robots - Robot Forum

Software => Software => Topic started by: Razor Concepts on May 10, 2010, 03:15:09 PM

Title: Easiest way to compile
Post by: Razor Concepts on May 10, 2010, 03:15:09 PM
I have:

What would be the easiest method to compile it and get a .hex file out of it? AVR Studio isn't really working out.
Title: Re: Easiest way to compile
Post by: Admin on May 11, 2010, 05:14:44 AM
Whats wrong with AVR Studio?

The easiest method would be following the $50 Robot tutorial :P

You can also run gcc (the compiler) as a standalone without AVR Studio. If you google around you'll find instructions.
Title: Re: Easiest way to compile
Post by: Razor Concepts on May 11, 2010, 10:22:31 AM
Thanks, I figured out how. Use command prompt to get to the directory where the c and the makefile is located, and just type in "make" and it should do its job. I'm compiling arduino bootloaders so I had to type in "make mega" or "make lilypad", etc etc
Title: Re: Easiest way to compile
Post by: Cristi_Neagu on May 11, 2010, 12:27:46 PM
It's sort of related: there's an "open command window here" plug-in on the net. When you right click on a folder, in the menu you get "Open command window here". It opens a command prompt pointing to that folder. Much easier than getting there from c:\>.
Title: Re: Easiest way to compile
Post by: Webbot on May 11, 2010, 05:24:02 PM
If you use WebbotLib Project Designer under Windows then it can create the AVR Studio project file for you - with all necessary libs linked in and the correct processor set. All you have to do is click the compile button.