Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Helpme to compile!

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
2 postsPage 1 of 1
2 postsPage 1 of 1

Helpme to compile!

Post by zildjiansam » Tue May 05, 2009 4:35 am

Post by zildjiansam
Tue May 05, 2009 4:35 am

Hello everybody! I'm new in this topic of bioloid, I need to manage a Bioloid by the win avr but i can't compile my program, i follow all the steps as the Expert Manual says, first I create a project after, create a source, after create my MAKEFILE and modify it, I modify the target name as my project name and modify the SRC as my source name file, also add the ROBOTIS_LIB and the LDFLAGS = $(ROBOTIS_LIB), and everything is in the same folder, at this moment everything is O.K, but when I try to compile i don't recive the menssage of errors:none, y don't recive it, just recive it

-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make.exe: *** No rule to make target `obj/main.o', needed by `simple.elf'. Stop.

> Process Exit Code: 2
> Time Taken: 00:00

If anyone could helpme would be thankfull, thank's....

My program is to easy is just ir:

#include "../../include/libCM-5.h"

int main(void)
{
return 0;
}


:cry: Please Helpme!
Hello everybody! I'm new in this topic of bioloid, I need to manage a Bioloid by the win avr but i can't compile my program, i follow all the steps as the Expert Manual says, first I create a project after, create a source, after create my MAKEFILE and modify it, I modify the target name as my project name and modify the SRC as my source name file, also add the ROBOTIS_LIB and the LDFLAGS = $(ROBOTIS_LIB), and everything is in the same folder, at this moment everything is O.K, but when I try to compile i don't recive the menssage of errors:none, y don't recive it, just recive it

-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make.exe: *** No rule to make target `obj/main.o', needed by `simple.elf'. Stop.

> Process Exit Code: 2
> Time Taken: 00:00

If anyone could helpme would be thankfull, thank's....

My program is to easy is just ir:

#include "../../include/libCM-5.h"

int main(void)
{
return 0;
}


:cry: Please Helpme!
zildjiansam
Newbie
Newbie
Posts: 3
Joined: Wed Apr 15, 2009 5:37 am

Post by StuartL » Thu May 14, 2009 9:02 pm

Post by StuartL
Thu May 14, 2009 9:02 pm

It's complaining that you don't have a rule in the makefile to generate the object file from the C file. It doesn't know how to create the .o file so it can't link them together to make the .elf.

You want a rule along the lines of:

Code: Select all
obj/main.o: src/main.c
        gcc-avr -o obj/main.o src/main.c


You probably want to read up on makefiles and experiment with a few options to gcc too, there will be some examples in the other makefile rules.
It's complaining that you don't have a rule in the makefile to generate the object file from the C file. It doesn't know how to create the .o file so it can't link them together to make the .elf.

You want a rule along the lines of:

Code: Select all
obj/main.o: src/main.c
        gcc-avr -o obj/main.o src/main.c


You probably want to read up on makefiles and experiment with a few options to gcc too, there will be some examples in the other makefile rules.
StuartL
Savvy Roboteer
Savvy Roboteer
Posts: 350
Joined: Mon Jun 04, 2007 3:46 pm
Location: Thatcham, Berkshire, UK


2 postsPage 1 of 1
2 postsPage 1 of 1