On 2/06/2014 2:21 PM, Paul Fertser wrote:
> On Sun, Jun 01, 2014 at 09:13:37PM -0700, Ram Bhamidipaty wrote:
>> My impression is that the Windows build with Cygwin was a bit hard to
>> duplicate. A while back (maybe 2 years) there were discussions on the
>> list about the exact set of packages that were needed to build OpenOCD.
>> It seemed (at that time) that creating a reproducible windows build
>> environment was not so simple. Perhaps MinGW is easier?
> Should be rather easy now, both with Cygwin (+MinGW-w64 toolchain) and
> MSYS+MinGW-w64. Please see the README and README.Windows for details.
>
>> If that is no longer true - then there would be no need for this. And it
>> may not matter since the C99 issue would be too much work.
> Right. Please report if you find any issues with the current
> procedure.
>
If you're really keen to give msvc a go you could try running the 
compile through c99wrap (https://github.com/libav/c99-to-c89/) which was 
written to compile ffmpeg/libav under msvc.

I tried it out with ffmpeg simply because we use msvc on our build 
machine for other projects, however I found it so difficult to get going 
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.

Realistically, even if c99wrap works, if you want to support compiling 
under msvc you either need to use cmake or similar to generate vcproj's 
on demand based on build environment (and therefore have a dependency on 
cmake being installed) or someone needs to maintain checked in project 
files - not much fun at all.

Cheers,
Andrew


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to