Building juju-core on Windows
Martin Packman
martin.packman at canonical.com
Wed Mar 13 14:44:52 UTC 2013
On 13/03/2013, John Arbash Meinel <john at arbash-meinel.com> wrote:
>
> Short summary, I can get a custom compiled 32-bit go tools using
> mingw. Compile libyaml, tweak goyaml and get 'go test' to pass for
> goyaml. I made some progress in getting 64-bit tools working, but I'm
> currently blocked on getting 64-bit libpthread.
Good progress. Do we actually care about providing a 64-bit windows
client? It seems from the golang docs ("64-bit Theory") that it's not
a polished process, and a 32-bit binary should work for everyone, no?
> 7) On Windows, 'strdup' is available as '_strdup', so you need a
> workaround like:
> +#ifdef WIN32
> +#define strdup _strdup
> +#endif
>
> There are a lot more funcs like this, but goyaml isn't calling them
> directly.
Should be able to just define _CRT_NONSTDC_NO_DEPRECATE for this:
<http://msdn.microsoft.com/library/ms235384>
Martin
More information about the Juju-dev
mailing list