Windows 10 Anniversary Update - compile Espruino from a bash/Ubuntu console natively! #112
Replies: 8 comments
-
Posted at 2016-08-31 by Wilberforce
Seems to work! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-31 by Wilberforce Ok. Got the Esp8266 build working on windows 10! You need to build the SDK as a standard user. This locked up the first time, however worked after a reboot. To build the SDK there needs:
this takes a while to compile! then:
flash over the air from the bash shell:
and then we have:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-31 by MrTimcakes Does this update just let you use Bash inside the command prompt? If so, I think you could also install Git and select "Use Git and optional Unix tools from the windows command prompt" during the installation which will allow them to run this bash script just like in Linux. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-31 by Wilberforce No it is much more than this. It is running Ubuntu, so you can apt-get packages. What I have shown above, installs perl, python, gcc and runs them natively. This is incredibly powerful! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-09-01 by @allObjects WilberFORCE... forcefully done! ...notches up from powerful! - Nomen est omen... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-09-03 by MrTimcakes @wilberforce I don't think the 2nd "install" in sudo apt-get install gcc-arm-none-eabi git install build-essential should be there should it? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-09-04 by Wilberforce Correct - I've edited the post. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-09-05 by @gfwilliams This sounds great - thanks for posting up! It'll definitely make the whole compile a lot easier for those not using Linux systems. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-31 by Wilberforce
The Anniversary Update (64 bit only) has a developer mode add on that allows Ubuntu code to run in a windows subsystem.
This means Espruino can be compiled without running in a VM!
The update has not been rolled out - here are the instructions to update manually...
http://www.howtogeek.com/248177/whats-new-in-windows-10s-anniversary-update/
Then turn on developer mode - reboot and add the Linux on windows system:
http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
On my system - in the cmd prompt, I had this error message:
Unsupported console settings. In order to use this feature the legacy console must be disabled.
microsoft/WSL#319
Open cmd.exe
Right click title bar -> Properties -> Uncheck Use legacy console
Click OK
Then on first run of bash.exe, the sub system is installed.
Then:
Then:
Yay!
Will try a cross compile soon!
Beta Was this translation helpful? Give feedback.
All reactions