-
-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation fails on Windows #18
Comments
Thanks a lot for report! Did you define an Arduino Framework in Can you post here your project's |
Yes I did. The issue looks a problem on how the arguments are passed to the compiler. It seems that it treats each argument as new command (thus ignoring the library includes).
|
Nice. Also, please give me a result of this command |
|
Thanks. I will test it under virtual W8.1 and post my experience here. Because I didn't think that Windows users will be interested in PlatformIO 😄 |
We are interrested! |
I've just installed PlatformIO on Windows 8.1. and successfully compiled the example https://github.com/ivankravets/platformio/tree/develop/examples/arduino-internal-library Can you send to [email protected] your Thanks. |
That's great news! Just sent the zipped folder. It also contains my tiny flask web server that allows a web site to flash the board. |
I don't have any problems with your example. See dump below.
$ scons --version
P.S: Can your rewrite your
|
new to python, will take a look at the wsgi. no luck with the new instructions still failing. Is there a verbose logging mode that I can turn on? |
Did you resolve this issue? |
Please reopen this issue if you have a problem. |
This issue is still active. Tried on another computer same problem. Is there a logging mode to diagnose this. |
I have the same problem, and I think know why it fails. Look carefully at both your console output and you'll see that they differ
The compiler switches of @pelikhan:s (and mine) cmd mixes forward slashes and dashes, while for @ivankravets it only uses dashes. Forward slashes seems to be ignored by the compiler which results in errors. A wild guess is that this has something to do with regional settings on the windows machine. @pelikhan what regional settings and keyboard layout do you have on your machine? I have swedish settings. |
I just tried to change regional settings to US with no effect unfortunately... |
I found this answer on SO: http://stackoverflow.com/a/15597849. I do have Visual Studio 2013 installed. Could it be that Scons somehow mixes the MSVC build environment and the avr-gcc cross compile environment? Accoring to the answer I should try to set the build environment using:
|
I got it working by changing this line: https://github.com/ivankravets/platformio/blob/release/v0.9.1/platformio/builder/main.py#L53 from this:
to this:
It feels very brute force though so I'm sure there is a better way, but hopefully this might help you find a real solution. |
@johannesg thanks a lot for you research!!! 👍 I've just installed MSVC and reproduced this bug! 😄
|
Great! Thanks! |
@pelikhan, @johannesg try to upgrade via |
@pelikhan @johannesg - thanks a lot for help! 👍 Finally, fixed in 9e4618c |
Having trouble compiling on Windows. Installed python 2.8.3, ran getplatformio.py, then trying to compile project:
The text was updated successfully, but these errors were encountered: