energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
793 stars 673 forks source link

Can't compile in Windows with latest version of Energia #109

Closed artyomxx closed 11 years ago

artyomxx commented 12 years ago

Hello!

When I try to compile anything I see this error message in the orange status-bar:

Cannot run program "<...path-to-the-energia...>\hardware\tools\msp430\bin\msp430-g++": CreateProcess error=2, The system cannot find the file specified

And this I can see in the console:

D:\FILES\DEV\MC\TI-LAU~1\ENERGIA\HARDWARE\TOOLS\MSP430\BIN\msp430-g++ -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=msp430g2553 -DF_CPU=16000000L -DARDUINO=101 -DENERGIA=8 -ID:\files\dev\mc\ti-launchpad\energia\hardware\msp430\cores\msp430 -ID:\files\dev\mc\ti-launchpad\energia\hardware\msp430\variants\launchpad >C:\Users\veell\AppData\Local\Temp\build3717649350921586633.tmp\sketch_sep11a.cpp -o >C:\Users\veell\AppData\Local\Temp\build3717649350921586633.tmp\sketch_sep11a.cpp.o

robertinant commented 12 years ago

Similar issue was reported in the: http://www.43oh.com/forum/viewtopic.php?f=38&t=3216 Try removing the "-" in the folder name or putting the energia folder in c:\ to see if that solves it. Will use this issue to track the bug.

artyomxx commented 12 years ago

I'll try this later. But please fix this anyway in the next version. Because of bugs like this windows-haters criticize Windows.

artyomxx commented 11 years ago

Removing "-" has no effect. But if I rename "ti-launchpad" folder to "lp" - that helps. So, I guess it because of "LAUNCH~1", I mean the tilde.

Cisecodev commented 11 years ago

Appears to always assume the 8.3 name is xxx~1, if it happens to be xxx~2 then the error occurs

robertinant commented 11 years ago

Thanks for helping to narrow this down.

rei-vilo commented 11 years ago

Is this bug fixed so we can close the issue?

Thank you.

eried commented 11 years ago

This is fixed in 808b430

OlivierGagnon commented 11 years ago

This is probably not fixed cause I downloaded energia 0101e0009 and had this exact issue. It comes prezipped in a folder with a dash - in it, and I was getting this same error.

Found this thread, removed the dash and it works.

KirAsh4 commented 11 years ago

Most current Energia still has a problem. Putting the folder 'energia-0101E0009' inside of 'Program Files (x86)' causes it to fail to compile:

C:\PROGRA~1\ENERGI~1\HARDWARE\TOOLS\MSP430\BIN\msp430-g++ -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=msp430g2553 -DF_CPU=16000000L -MMD -DARDUINO=101 -DENERGIA=9 -IC:\Program Files (x86)\energia-0101E0009\hardware\msp430\cores\msp430 -IC:\Program Files (x86)\energia-0101E0009\hardware\msp430\variants\launchpad C:\Users\ASHLEY~1.KIR\AppData\Local\Temp\build9197186242246725399.tmp\Blink.cpp -o C:\Users\ASHLEY~1.KIR\AppData\Local\Temp\build9197186242246725399.tmp\Blink.cpp.o

However, if I move it inside of 'Program Files' it compiles fine, even with the '-' in the Energia folder name.

My Arduino IDE compiles fine when it's in the 'Program Files (x86)' folder so I'm thinking it's something with the path that Energia is blowing up on. This needs to be fixed, it's been going on for a while now from reading other people's posts.