Society of Robots - Robot Forum
Software => Software => Topic started by: kpmcgurk on February 22, 2009, 09:26:46 AM
-
When I compile my code i keep getting this error,
Photovore_v1.c:108: fatal error: opening dependency file .dep/Photovore_v1.o.d: No such file or directory
compilation terminated.
make: *** [Photovore_v1.o] Error 1
Build failed with 1 errors and 0 warnings...
What do i do?
-
bump, does anyone know what kind of error i am getting and how to resolve it????
-
Did you modify the code or name of the .aps file?
-
I believe your makefile is looking for a file by that name in that directory!! If its not there then put it there!!
-
You most likely named something wrong. Go over the programming part of the tut again, do it EXACTLY the way it says.
-
ya i have renamed it at least 10 times, moved it into sub folders, and all in the same folder, and i keep getting the same error. I did everything the same as the Tut. I will keep trying :(
I will keep you posted!!
-
which OS are you compiling on? What does your makefile look like? Also can you post the whole output?
-
Are you compiling from within the AVRStudio IDE or are you using a make file from the command prompt? What version of AVRStudio are you using and on what platform (Win XP/Vista etc)?
I have a feeling you may be using Vista - in which case check out this link http://www.madwizard.org/electronics/articles/winavrvista (http://www.madwizard.org/electronics/articles/winavrvista)
-
Are you compiling from within the AVRStudio IDE or are you using a make file from the command prompt? What version of AVRStudio are you using and on what platform (Win XP/Vista etc)?
I have a feeling you may be using Vista - in which case check out this link http://www.madwizard.org/electronics/articles/winavrvista (http://www.madwizard.org/electronics/articles/winavrvista)
Hey, that was the exact link i was going to send as well :P
-
yes, i am on vista, and i have loaded all three versions that admin had me download. are there other versions that i should have?
-
yes, i am on vista, and i have loaded all three versions that admin had me download. are there other versions that i should have?
Make sure you re-read the link I gave you. The problem may not be with AVR stuff - the problem is with Vista.
-
yes, i am on vista, and i have loaded all three versions that admin had me download. are there other versions that i should have?
You'll need to patch winavr since you are using vista. Read the link from webbot and follow the instructions.
-
woot, more vista problems!!!!!!!!!! *end sarcasm* thanks guys for the help!!!
-
Remember to always search the error:
http://www.societyofrobots.com/robotforum/index.php?topic=5682.0
-
Hello I am still having this problem - I have vista 64 edition and the newest AVR studio and the newest WinAVR and still get the same error... I have checked everything again and again and it is still the same - all of the suggestions in the post I think I have already done now so I am running out of options.
:(
-
Hello I am still having this problem - I have vista 64 edition and the newest AVR studio and the newest WinAVR and still get the same error... I have checked everything again and again and it is still the same - all of the suggestions in the post I think I have already done now so I am running out of options.
:(
what's the error you're getting?
-
This is the baddie:
Photovore_v1.c:108: fatal error: opening dependency file .dep/Photovore_v1.o.d: No such file or directory
compilation terminated.
make: *** [Photovore_v1.o] Error 1
Build failed with 1 errors and 0 warnings...
:-[
-
Are you compiling from a command prompt with a makefile or from within AVRStudio?
-
Are you compiling from a command prompt with a makefile or from within AVRStudio?
Straight from AVRStudio
-
Try compiling it from command prompt. Like so:
cd C:\to\projectfolder
than type make
projectfolder would be where you code is.
-
it says :
make: *** No targets. Stop.
:(
-
Are you sure you "cd" to the correct directory?
-
You have to be in the directory containing the Makefile before typing make.
-
Are you compiling from a command prompt with a makefile or from within AVRStudio?
Straight from AVRStudio
Becky,
The dependency files are used to track interdependencies between header files - ie change a header file and the compiler knows the subset of C files that need recompiling. Think they also have something to do with precompiled headers. But anyway - you aren't getting far - so all I can suggest is if you could ZIP the source folder and sub-folders and then post the ZIP file. Might help us to see whats going on. Sorry - but thats all I can suggest.
-
Sorry for raising a dead post but it's still relevant today. Did you ever get this fixed? I've just hit it and wanted to call out that even with the absolute latest WinAVR and AVRStudio releases this bug still exists. The fix is to just replace the msys-1.0.dll in the <parent dir>\WinAVR-<release>\utils\bin folder with the one available here: http://www.madwizard.org/electronics/articles/winavrvista (http://www.madwizard.org/electronics/articles/winavrvista)
That fixed it for me immediately. The error text doesn't match what is on that site, but that's OK - it's still the same underlying "fork process" issue. Good luck!
Mike
-
I can confirm webgeek's error. I have just had the same issue on Vista x64. Maybe a notice about this could be added in the programming tutorial for the $50-bot?
Best regards, Fleet