Author Topic: Easiest way to compile  (Read 1607 times)

0 Members and 1 Guest are viewing this topic.

Offline Razor ConceptsTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Easiest way to compile
« on: May 10, 2010, 03:15:09 PM »
I have:
  • A single C file
  • A single makefile for that file

What would be the easiest method to compile it and get a .hex file out of it? AVR Studio isn't really working out.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Easiest way to compile
« Reply #1 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.

Offline Razor ConceptsTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: Easiest way to compile
« Reply #2 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

Offline Cristi_Neagu

  • Robot Overlord
  • ****
  • Posts: 165
  • Helpful? 5
Re: Easiest way to compile
« Reply #3 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:\>.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: Easiest way to compile
« Reply #4 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.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here

data_list