go away spammer

Author Topic: code wont build. need help.  (Read 2284 times)

0 Members and 1 Guest are viewing this topic.

Offline mr robotoTopic starter

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
    • http://legomindstormmania.com/
code wont build. need help.
« 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 once though that my brain was the most wonderful part of my body. then i realized who was telling me this

"A question that sometimes drives me hazy, am i or are the others crazy"?
 Albert Einstein

Offline infurl

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
Re: code wont build. need help.
« Reply #1 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.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: code wont build. need help.
« Reply #2 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?

Offline mr robotoTopic starter

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
    • http://legomindstormmania.com/
Re: code wont build. need help.
« Reply #3 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.
I once though that my brain was the most wonderful part of my body. then i realized who was telling me this

"A question that sometimes drives me hazy, am i or are the others crazy"?
 Albert Einstein

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots

Offline mr robotoTopic starter

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
    • http://legomindstormmania.com/
Re: code wont build. need help.
« Reply #5 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 ?
I once though that my brain was the most wonderful part of my body. then i realized who was telling me this

"A question that sometimes drives me hazy, am i or are the others crazy"?
 Albert Einstein

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: code wont build. need help.
« Reply #6 on: April 04, 2012, 08:10:23 AM »
Are you using Project Designer?

Offline mr robotoTopic starter

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
    • http://legomindstormmania.com/
Re: code wont build. need help.
« Reply #7 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?
I once though that my brain was the most wonderful part of my body. then i realized who was telling me this

"A question that sometimes drives me hazy, am i or are the others crazy"?
 Albert Einstein

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: code wont build. need help.
« Reply #8 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.

Offline mr robotoTopic starter

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
    • http://legomindstormmania.com/
Re: code wont build. need help.
« Reply #9 on: April 05, 2012, 03:48:01 PM »
it is in a folder beside the project.
thanks.
I once though that my brain was the most wonderful part of my body. then i realized who was telling me this

"A question that sometimes drives me hazy, am i or are the others crazy"?
 Albert Einstein

Offline mr robotoTopic starter

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
    • http://legomindstormmania.com/
Re: code wont build. need help.
« Reply #10 on: April 07, 2012, 12:16:46 PM »
bump
I once though that my brain was the most wonderful part of my body. then i realized who was telling me this

"A question that sometimes drives me hazy, am i or are the others crazy"?
 Albert Einstein

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: code wont build. need help.
« Reply #11 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

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: code wont build. need help.
« Reply #12 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.  :)
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