Society of Robots - Robot Forum

Software => Software => Topic started by: Dmntd1 on February 11, 2009, 10:23:42 PM

Title: Utter noob with problems
Post by: Dmntd1 on February 11, 2009, 10:23:42 PM
Alright, the Axon uC is on the way, and I'm about as familiar with C# as I am with Greek. Not in the least! I'd almost rather have Java or VB...

I've followed the guides, but when I try to make my own program, I can't seem to get a final nothing of a program to build. The error I get, which will probably have a 'beat my head against the wall' obvious answer is:

make: *** No rule to make target `axon.elf', needed by `elf'.  Stop.

Before that, I got tons of errors, and copied the photovore_v1 makefile to get rid of them. Now, I get that one.

Is there something completely stupid that I am, or am not, doing? My program isn't even trying to control anything, just initialize and compile...

Any hints and helps? Thanks in advance!

AJP
Title: Re: Utter noob with problems
Post by: Admin on February 11, 2009, 11:45:23 PM
It sounds like you named your folders wrong. For example, you need to name your main folder with the same name as the initial .c file.

the folder, Axon, the initial file, Axon.c

Its a very common question here (http://www.societyofrobots.com/robotforum/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MiwzLDQsNSw2fCJ8c2hvd19jb21wbGV0ZXwnfHwifHN1YmplY3Rfb25seXwnfHwifHNvcnR8J3xyZWxldmFuY2V8Inxzb3J0X2RpcnwnfGRlc2N8InxzZWFyY2h8J3xcIk5vIHJ1bGUgdG8gbWFrZSB0YXJnZXRcIg==).
Title: Re: Utter noob with problems
Post by: Dmntd1 on February 12, 2009, 12:10:40 AM
That was my first thought. I double checked, even tried changing all sorts of things, and still get that message. The path to my .c is:

C:\Users\*****\Documents\axon\axon.c

I've also tried:

C:\axon\axon.c

Am I missing something here? 
Title: Re: Utter noob with problems
Post by: Dmntd1 on February 12, 2009, 12:13:03 AM
Oh yeah, and it's a different error now....

c:/winavr-20081205/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: unknown architecture of input file `c:/winavr-20081205/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr5/crtm640.o' is incompatible with avr:5 output
make: *** [Axon.elf] Error 1

Title: Re: Utter noob with problems
Post by: Admin on February 12, 2009, 12:19:20 AM
Hmmmm that's an error I've never seen before . . .

Try just starting over from the beginning, rewriting and reinstalling over everything. You missed a step somewhere . . .

Just checking, did you do step 7 right?
http://www.societyofrobots.com/axon/axon_getting_started_software.shtml


Oh, and the photovore makefile won't work for the Axon.
Title: Re: Utter noob with problems
Post by: Dmntd1 on February 12, 2009, 12:44:44 AM
I told you it would be a bang my head against the desk error, right? I had forgotten step seven the first time I tried to build-all, and it made the makefile in the default folder. I reset it to the original makefile, not in the default, and it compiled. I'm thinking I'm going to have to re-do it somewhere else, to compare the two makefiles, just for the torture of it.

It seems that C# is pretty close to the other languages that I've dealt with, so here's to a fun time experimenting with your controller. Thanks for the help, I'm sure I'll be posting a robot or two eventually!

AJP
Title: Re: Utter noob with problems
Post by: Admin on February 12, 2009, 12:47:40 AM
lol

Oh and its not C#, its just C :P

Most modern languages borrowed quite a lot from C, and its still the most used programming language of today. Definitely worth learning!