Re: msvc directory missing in PostgreSQL 17.0

From: 黄铎彦 <222200428(at)fzu(dot)edu(dot)cn>
To: "bill(dot)smith(at)enterprisedb(dot)com" <bill(dot)smith(at)enterprisedb(dot)com>, "Mark(dot)Hill(at)sas(dot)com" <Mark(dot)Hill(at)sas(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: msvc directory missing in PostgreSQL 17.0
Date: 2024-10-27 07:48:49
Message-ID: 671DF068.007A73.06847@fzu.edu.cn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here’re attatchments.

发件人: 黄铎彦
发送时间: 2024年10月27日 15:44
收件人: Bill Smith; Mark.Hill
抄送: pgsql-hackers
主题: Re: msvc directory missing in PostgreSQL 17.0

I could hardly find detailed and complete tutorials on building the latest version with Visual Studio. I did use meson to generate sln and vcxproj files in Command Prompt (attatchment: 00meson_cmd_to_gen_sln.txt). But after opening the sln and run menu command "build -> build solution", it failed. The contents of the Output Window in Visual Studio are in the attatchment 01build_log.txt.
On 2024/10/27 15:07, Bill Smith wrote:
Check out this:

There's a table showing the setup & build commands using the old way and the new way (meson).

On Oct 21, 2024, at 4:12 PM, Mark Hill <Mark(dot)Hill(at)sas(dot)com> wrote:

Thanks Bill!   Do you have a sample meson command for building that you could share?

Thanks, Mark
 
From: Bill Smith <bill(dot)smith(at)enterprisedb(dot)com>
Sent: Friday, October 18, 2024 4:11 PM
To: Mark Hill <Mark(dot)Hill(at)sas(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: msvc directory missing in PostgreSQL 17.0
 
EXTERNAL
 

On Oct 18, 2024, at 4:05 PM, Mark Hill <Mark(dot)Hill(at)sas(dot)com> wrote:
 
I just downloaded the Postgresql 17.0 and the extracted directory postgresql-17.0/src/tools does not contain
the “msvc” directory as it has since I’ve been building Postgres 12, 14, and 16.   How am I supposed to build
PostgreSQL for Windows now?   I’m not sure what msvc_gendef.pl does.   How do we build Postgres for Windows
using Visual Studio?
 
You’ll want to use meson to build PG.  See the docs here:
<image001.png>
17.7. Platform-Specific Notes
postgresql.org

Thanks, Mark

Attachment Content-Type Size
01build_log.txt text/plain 235.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message 黄铎彦 2024-10-27 07:56:15 Re: msvc directory missing in PostgreSQL 17.0
Previous Message 黄铎彦 2024-10-27 07:44:23 Re: msvc directory missing in PostgreSQL 17.0