From: Andrew L. <cor...@gm...> - 2014-06-12 07:47:23
|
On 2/06/2014 3:52 PM, Paul Fertser wrote: > Hi Andrew, > > On Mon, Jun 02, 2014 at 02:48:21PM +1000, Andrew Leech wrote: >> I quickly ditched it and used msys2 to set up a nice clean relocatable >> install of mingw64 that I could transfer to the build machine easily. > This is an interesting note indeed. Do you think msys2 has the > potential to become "Homebrew for Windows"? Have you probably tried > porting the OpenOCD recipe from "Arch Linux" GNU/Linux distro to > msys2? > > If it'd be possible to self-compile OpenOCD HEAD on windows as easily > as it is now with "brew" on OS X, that would be rather useful. > > Please keep us updated, I'm ready to add easy building instructions to > README.Windows as soon as they're available. > Hi Paul, I have a feeling it could be. I've been working with it and openocd over the last few days and have a workable solution up and running. Most packages on msys2 are distributed in binary form using pacman (ported from arch), but the definitions scripts they're built from are all on github and can be used directly with makepkg. I've forked the scripts repo and added packages for libusb, libusb-compat and openocd, both 0.8.0 and git-master. I've also done a really quick walkthrough to get it all compiled and installed, although no guarantees I haven't missed anything, I haven't been through it in one go on a different machine yet. Instructions: https://gitlab.alelec.net/corona/mingw-packages/wikis/openocd_msys2_mingw_w64 Cheers, Andrew |