How to compile something using arm-none-eabi-gcc on windows

Viewed 4994

I am trying to build a project for a raspberry pi 4, using windows 10 as the building platform, I have the compiler installed, arm-none-eabi-gcc however every piece of information I've learned about it relates to how to run it on a linux machine, and I don't really want to run a vm just to load the linux environment, so how do I run the compiler on windows 10, Do I run it from Cmd? or is there a different method to do this?

3 Answers

You could check this PreBuilt GNU Toolchain for building natively on Win10. Otherwise you could also setup a WSL environment in your win10, then you would also be able use any linux toolchains.

You should have the arm-none-eabi-gcc.exe for Windows Compile. Also, you have the linux environment like MinGW and use installed terminal(xterm). then, you have to copy the .so files into MinGW /lib or /usr/lib folder under C:/MinGW. Hope this would be helpful for you.

Related