this is a great idea - i should do the same for the windows toolchain. are there any licensing issues with hosting those files in a personal github repo? could we perhaps add this to monome github?
At least for Teletype there are more dependencies now. Ragel, as well as some more complex ones to generate the PDF documentation. Itās very hard for me to test how that works under Windows, whereas I have easy access to both Linux and OSX.
This is the latest README.md for Teletype, you can see all the things that need installingā¦
I think youāre the only main developer that uses Windows. Given that Linux and OSX play nicely with each other, and that now Windows 10 can be made to behave like Linux, I think itās worth exploring as the ārecommendedā way to develop on Windows.
youād still need to install dependencies either way though. but youād gain the benefit of having one set of instructions and make files - iāll give this a try (need to set up the toolchains on new laptop), if it doesnāt complicate things greatly
sorry - need further hand holding - so i enabled WSL, installed bash/ragel/make and trying to build teletype (your 2.0 branch) and getting this: ../module/main.d:1: *** multiple target patterns. Stop..
*,d files are used by make to track header dependencies. My guess is that theyāve got line ending issues now. Either, use the non-WSL tools and run make clean to clean them up. Or just delete all the *.d files.
thanks! that worked, but getting a different error now:
make: uname: Command not found
make: uname: Command not found
make: uname: Command not found
make: uname: Command not found
make: cmd: Command not found
make: *** [../module/main.o] Error 127```
that worked! but ran into a different issue, it says it canāt find avr-gcc even though this part worked previously. iāll try redoing the toolchain setup using the instructions tonight and see if that helps (for now just wanted to try it quickly so simply pointed PATH to my existing toolchain).
You can use the .travis.yml file to crib the instructions for getting it set up (plus you can download the tools from my GitHub repo, rather than Microchip).
thanks, will give it a try tonight! once i have it set up on my desktop successfully iāll go through it again on my laptop, taking notes in the process and then we can add a section on windows toolchain set up.
installed the toolchain (linux one from your repo) and now it finds avr-gcc but it just outputs CC ../module/main.o and then nothing happens.
i was able to build the firmware by just manually running ragel in bash and then using the old makefile so not blocked for now. if i canāt get bash to work iāll have to try building ragel for windows - looks like there is no precompiled version available anymore (somebody has it in their repo but iād rather build it myself)
Looks like there is a Rainmaker firmware update coming soon. Once thatās out Iāll need a Windows VM to install it (might as well go Windows 10). Iāll see if I can have a go at setting WSL up.
Itās made overly complicated by these 2 issues: #1048 and #1462.
So you need to compile youāre own toolchain. Which needs 8gb of free RAM due to Windows Defender going crazy. Also, it takes hours to build (which made the repeated out of memory errors even more fun).
I need to make some changes to the instructions and possibly patch one of the files before it will be ready for you.
The changes arenāt particularly hard, but given how long it takes to compile (about 4 hours in VM), it might take 24 to 48 hours to finish.