Society of Robots - Robot Forum
Software => Software => Topic started 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
-
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.
-
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?
-
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.
-
http://sourceforge.net/projects/webbotavrclib/files/Version2/ (http://sourceforge.net/projects/webbotavrclib/files/Version2/)
-
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 ?
-
Are you using Project Designer?
-
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?
-
No, it's not right. WebbotLib should be in it's own folder or it won't work.
-
it is in a folder beside the project.
thanks.
-
bump
-
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)
-
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. :)