Atmel studio 6 for 3pi problem building program

Hi There,

I have installed the Atmel studio 6, and my programmer. I installed the Pololu 3pi examples. I am getting a main.c not found error. I have hacked at this for some time, and I am not making any progress.

Could use some help…

Here is what I am doing

Atmel studio 6 - choose a new project
I select the 3pi Robot with ATmega32p
It loads some sample code into the window. Code looks good.
I then choose Build Solution
I get the following errors
Build Failed
no input files
…/./main.c: No such file or directory

Here is the OUTPUT data

------ Build started: Project: 3pi_app8, Configuration: Debug AVR ------
Build started.
Project “3pi_app8.cproj” (default targets):
Target “PreBuildEvent” skipped, due to false condition; (’$(PreBuildEvent)’!=’’) was evaluated as (’’!=’’).
Target “CoreBuild” in file “C:\Program Files (x86)\Atmel\Atmel Studio 6.2\Vs\Compiler.targets” from project “\psf\Home\Documents\Atmel Studio\6.2\3pi_app8\3pi_app8\3pi_app8.cproj” (target “Build” depends on it):
Task “RunCompilerTask"
Shell Utils Path C:\Program Files (x86)\Atmel\Atmel Studio 6.2\shellUtils
C:\Program Files (x86)\Atmel\Atmel Studio 6.2\shellUtils\make.exe all
’\psf\Home\Documents\Atmel Studio\6.2\3pi_app8\3pi_app8\Debug’
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Building file: …/./main.c
’\psf\Home\Documents\Atmel Studio\6.2\3pi_app8\3pi_app8\Debug’
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Invoking: AVR/GNU C Compiler : 4.8.1
’\psf\Home\Documents\Atmel Studio\6.2\3pi_app8\3pi_app8\Debug’
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
“C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.1061\avr8-gnu-toolchain\bin\avr-gcc.exe” -x c -funsigned-char -funsigned-bitfields -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF “main.d” -MT"main.d” -MT"main.o" -o “main.o” "…/./main.c"
avr-gcc.exe(0,0): error: …/./main.c: No such file or directory
avr-gcc.exe(0,0): warning: ‘-x c’ after last input file has no effect
avr-gcc.exe(0,0): error: no input files
compilation terminated.
make: *** [main.o] Error 1
The command exited with code 2.
Done executing task “RunCompilerTask” – FAILED.
Done building target “CoreBuild” in project “3pi_app8.cproj” – FAILED.
Done building project “3pi_app8.cproj” – FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Hello.

I am sorry you are having trouble programming your 3pi. From your error messages, it looks like your environment does not support UNC paths (like \severname\share\directory), so the compiler defaults to some local directory in search of “…\main.c”. Since that is a relative path and the current working directory changed, the compiler will not be able to find main.c. You can try moving (or copying) the project folder to your desktop to see if you that resolves your build problem.

- Amanda