Re: Compile from source using latest Microsoft Windows SDK

2019-07-25 Thread Michael Paquier
On Thu, Jul 25, 2019 at 09:02:14AM +0900, Michael Paquier wrote: > Interesting. I am not actually sure in which version of VS this has > been introduced. But it would be fine enough to do nothing if the > variable is not defined and rely on the default. Except for the > formatting and indentatio

Re: Compile from source using latest Microsoft Windows SDK

2019-07-24 Thread Michael Paquier
On Wed, Jul 24, 2019 at 10:38:47AM -0400, Andrew Dunstan wrote: > Yeah, on consideration I think Peifeng's patch upthread looks OK. > (Incidentally, this variable is not set in the very old version of VC > running on currawong). Interesting. I am not actually sure in which version of VS this has

Re: Compile from source using latest Microsoft Windows SDK

2019-07-24 Thread Andrew Dunstan
On 7/22/19 4:23 AM, Michael Paquier wrote: > On Mon, Jul 22, 2019 at 04:01:46PM +0800, Peifeng Qiu wrote: >>> but it's really only a major issue for VS2019 >> VS2019 will use the latest v10 SDK by default. So no need to install 8.1 >> for VS2019. > Yes, FWIW, I have tested with VS2019 when commit

Re: Compile from source using latest Microsoft Windows SDK

2019-07-22 Thread Michael Paquier
On Mon, Jul 22, 2019 at 04:01:46PM +0800, Peifeng Qiu wrote: >> but it's really only a major issue for VS2019 > > VS2019 will use the latest v10 SDK by default. So no need to install 8.1 > for VS2019. Yes, FWIW, I have tested with VS2019 when committing 2b1394f, and in this case only the v10 SDK g

Re: Compile from source using latest Microsoft Windows SDK

2019-07-22 Thread Peifeng Qiu
> For VS2017, the 8.1 SDK is part of the optional package set Yeah, if you install 8.1 SDK VS2017 can compile. I install VS2017 using the GUI installer. The main page are big checkboxs for packages sets like C++, .NET, Azure etc. Checking C++ will only install the IDE and 10 SDK. 8.1 SDK is on the

Re: Compile from source using latest Microsoft Windows SDK

2019-07-21 Thread Andrew Dunstan
On 7/19/19 9:10 PM, Michael Paquier wrote: > On Fri, Jul 19, 2019 at 08:30:38AM -0400, Andrew Dunstan wrote: >> My tests of the VS2017 stuff used this install mechanism on a fresh >> Windows instance: >> >> choco install -y visualstudio2017-workload-vctools --package-parameters >> "--includeOptio

Re: Compile from source using latest Microsoft Windows SDK

2019-07-19 Thread Michael Paquier
On Fri, Jul 19, 2019 at 08:30:38AM -0400, Andrew Dunstan wrote: > My tests of the VS2017 stuff used this install mechanism on a fresh > Windows instance: > > choco install -y visualstudio2017-workload-vctools --package-parameters > "--includeOptional" > > This installed Windows Kits 8.1 and 10, a

Re: Compile from source using latest Microsoft Windows SDK

2019-07-19 Thread Andrew Dunstan
On 7/19/19 5:51 AM, Michael Paquier wrote: > >> I'm also very curious on how hamerkop and bowerbird build postgres with >> VS2017. Looks like hamerkop and bowerbird both exist before VS2017 >> and maybe they get SDK v8.1 from previous VS installations. I will >> contact admin of hamerkop and bow

Re: Compile from source using latest Microsoft Windows SDK

2019-07-19 Thread Michael Paquier
On Fri, Jul 19, 2019 at 03:39:49PM +0800, Peifeng Qiu wrote: > I updated the patch to only include the WindowsTargetPlatformVersion node > if WindowsSDKVersion is present. I can confirm that this issue no > longer exists for VS2019. So only VS2017 is problematic. (Could you please avoid to top-po

Re: Compile from source using latest Microsoft Windows SDK

2019-07-19 Thread Peifeng Qiu
Hi Michael. Thanks for your review. I updated the patch to only include the WindowsTargetPlatformVersion node if WindowsSDKVersion is present. I can confirm that this issue no longer exists for VS2019. So only VS2017 is problematic. I'm also very curious on how hamerkop and bowerbird build postgre

Re: Compile from source using latest Microsoft Windows SDK

2019-07-18 Thread Michael Paquier
Hi Peifeng, On Fri, Mar 29, 2019 at 12:01:26AM +0900, Peifeng Qiu wrote: > The current Windows build system supports compiling with Windows SDK up to > v8.1. When building with the latest Windows SDK v10 which is the default > for Visual Studio 2017, we will get the following error: > > error MSB