curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: cmake windows build on 32 bit ARM, appveyor

From: Martin Storsjö <martin_at_martin.st>
Date: Sun, 29 Oct 2017 23:34:34 +0200 (EET)

On Sun, 29 Oct 2017, Martin Storsjö wrote:

> To actually build it as a UWP project, add -DCMAKE_SYSTEM_NAME=WindowsStore
> -DCMAKE_SYSTEM_VERSION=10.0. I additionally have to add -DUSE_WIN32_LDAP=OFF
> since this doesn't seem to be detected properly (the function it looks for is
> found, but the headers don't contain everything that's needed to build the
> real deal).
>
> And then further, I have to add -DCURL_DISABLE_TELNET=ON since this part
> seems to use functions that aren't available in UWP (GetStdHandle,
> PeekNamedPipe and some other ones).
>
> With these cmake options, I manage to build libcurl, but the frontend tool
> still has got a number of issues (SearchPathA, getch, CreateFileA,
> GetEnvironmentVariableA, ExpandEnvironmentStringsA missing). For UWP, libcurl
> probably is the only thing that really is relevant.

FWIW, these issues can probably also be investigated just the same if you
build for x86/x64 with -DCMAKE_SYSTEM_NAME=WindowsStore
-DCMAKE_SYSTEM_VERSION=10.0, in case someone wants to have a look at it,
in a build confguration where it's a bit easier to actually try running
the built code.

// Martin

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-29