Society of Robots - Robot Forum

Software => Software => Topic started by: mr roboto on April 01, 2012, 05:07:52 PM

Title: code wont build. need help.
Post by: mr roboto on April 01, 2012, 05:07:52 PM
my code wont build & i dunno why. here is the error code

Build started 1.4.2012 at 16:03:34

make: *** No rule to make target `../webbot_project', needed by `robot1.elf'.  Stop.

Build failed with 1 errors and 0 warnings...


i wish i could be more descriptive but this is all i know.

THANKS
Title: Re: code wont build. need help.
Post by: infurl on April 01, 2012, 07:07:35 PM
I'm assuming that you're using something like unix make and that you are running it from within a directory containing a Makefile.

That rule is saying that it needs a directory (or file???) called webbot_project in the parent directory of the directory containing the Makefile (i.e. your project directory). Presumably it is a directory containing other files that are needed, so if you issue the command "mkdir ../webbot_project" from within your project directory, running make again will probably tell you what files it is actually looking for. Then you might be able to find the correct directory and move it or link it to where it is needed.

The other possibility is that it is trying to create an empty working directory outside the directory containing the Makefile. In this case it would be a bug in the Makefile and could be corrected by adding a rule to create the working directory like this:

../webbot_project:
<tab>mkdir -p $@

where <tab> is a tab character -- spaces won't work there.

You would also have to add "| ../webbot_project" after any other prerequisites for rules that depend on that directory. The pipe-character is a test for the existence of prerequisites which ignores their timestamps. It is especially useful for creating and maintaining directories automatically.
Title: Re: code wont build. need help.
Post by: Admin on April 02, 2012, 05:03:47 AM
It sounds like you missed a major step in the instructions for using WebbotLib. You might do best re-reading it just to make sure :P

I suspect you didn't install WebbotLib, or at best linked it to the wrong location, and so AVR Studio was unable to find it during compilation.

Also, what WebbotLib version are you using?
Title: Re: code wont build. need help.
Post by: mr roboto on April 02, 2012, 06:19:39 PM
im sorry but im new to robotics. could you maybe send me a link to the lib files that i need? I looked through the tutorial & couldnt find it. thanks.
Title: Re: code wont build. need help.
Post by: Admin on April 02, 2012, 10:09:32 PM
http://sourceforge.net/projects/webbotavrclib/files/Version2/ (http://sourceforge.net/projects/webbotavrclib/files/Version2/)
Title: Re: code wont build. need help.
Post by: mr roboto on April 03, 2012, 09:23:21 PM
i tried to install this in the same file as the project. im still getting the same error. is there any thing else that this could be ?
Title: Re: code wont build. need help.
Post by: Admin on April 04, 2012, 08:10:23 AM
Are you using Project Designer?
Title: Re: code wont build. need help.
Post by: mr roboto on April 04, 2012, 03:44:50 PM
i am using the webbot lib project designer & avr studios. do i need to place the file in the same folder as the project? that is what i did. is that wright?
Title: Re: code wont build. need help.
Post by: Admin on April 04, 2012, 10:29:05 PM
No, it's not right. WebbotLib should be in it's own folder or it won't work.
Title: Re: code wont build. need help.
Post by: mr roboto on April 05, 2012, 03:48:01 PM
it is in a folder beside the project.
thanks.
Title: Re: code wont build. need help.
Post by: mr roboto on April 07, 2012, 12:16:46 PM
bump
Title: Re: code wont build. need help.
Post by: Admin on April 08, 2012, 03:36:24 AM
It still sounds like you missed a major step in the instructions for using WebbotLib. I suspect you have a space in a file path, or have paths misconfigured.

I recommend starting at the beginning:
http://societyofrobots.com/axon_mote/axon_mote_setup1.shtml (http://societyofrobots.com/axon_mote/axon_mote_setup1.shtml)
Title: Re: code wont build. need help.
Post by: Webbot on April 08, 2012, 01:00:00 PM
my code wont build & i dunno why. here is the error code

Build started 1.4.2012 at 16:03:34

make: *** No rule to make target `../webbot_project', needed by `robot1.elf'.  Stop.

Build failed with 1 errors and 0 warnings...


i wish i could be more descriptive but this is all i know.

THANKS

'webbot_project' and 'robot1' are nothing to do with WebbotLib - they must be to do with where you have installed stuff or the name of your project. Right?
So perhaps you could say 'EXACTLY' where you have installed WebbotLib, where you have installed Project Designer, and where your project is located and what it is called.
I guess that you are also running MAKE from a command line rather than say AVRStudio. Right?

You need to give us some clue as to what you are using, where its installed and how you are building.  :)