BOSSA icon indicating copy to clipboard operation
BOSSA copied to clipboard

Build setup on windows10

Open tecnosel opened this issue 6 years ago • 4 comments

Hello,

I need add new deviced Atsamd21j17d in bossac for custom board. Can someone send me a folder that I can compile in windows for me to modify the device? I can not compile bossac in windows.

Thanks a lot

tecnosel avatar Feb 24 '19 12:02 tecnosel

see https://github.com/shumatech/BOSSA/issues/71#issuecomment-415997591

although I was not successful with current mingw, will update if i find a workaround or how to install the specific version.

beikeland avatar May 02 '20 16:05 beikeland

This took me quite a while to figure out (and I was only able to build the bossac target).

You'll need to install MSYS2 with MINGW32, then from an MINGW32 shell you'll need to install gcc and mingw-w64-i686-wxWidgets.

I probably forgot something else I did, but if you can run 'make' within mingw32 and tell me what errors you get, I can probably tell you what else you need.

marshaul avatar Mar 18 '21 20:03 marshaul

@marshaul and @shumatech - I'm trying to compile BOSSA to support the SAMD21G17D chip. It's the latest silicon rev and we couldn't get the A version (thanks chip shortage!) which is already supported by BOSSA. I've installed MSYS2 with MINGW32, installed gcc, and used pacman to "install" wxWidgets ( pacman -S mingw-w64-i686-wxWidgets ). I have not compiled my own version of wxWidgets - using MINGW32 and running make is new to me, so I'm a little lost despite having read a ton of forum posts on the topic. These are the errors I'm getting and I'm wondering if you could help?

make: wx-config: No such file or directory make: wx-config: No such file or directory make: git: No such file or directory CPP BOSSA src/BossaForm.cpp In file included from src/BossaForm.cpp:8: src/BossaForm.h:11:10: fatal error: wx/artprov.h: No such file or directory 11 | #include <wx/artprov.h> | ^~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:260: obj/BossaForm.o] Error 1

casundra avatar Oct 18 '21 21:10 casundra

You need to install wxWidgets, here you have a guide helped me. https://jrcrulida.blogspot.com/2017/02/compiling-and-installing-wxwidgets-310.html

lncoll avatar Nov 13 '21 16:11 lncoll