Re: msvc directory missing in PostgreSQL 17.0
От | Dave Page |
---|---|
Тема | Re: msvc directory missing in PostgreSQL 17.0 |
Дата | |
Msg-id | CA+OCxozXN=GFPWU8vBjG6ch=i2q46FrQbTMjpsERGaSXQj-+tQ@mail.gmail.com обсуждение исходный текст |
Ответ на | msvc directory missing in PostgreSQL 17.0 (Mark Hill <Mark.Hill@sas.com>) |
Список | pgsql-hackers |
On Sun, 27 Oct 2024 at 10:17, 黄铎彦 <222200428@fzu.edu.cn> wrote:
I could hardly find detailed and complete tutorials on building the latest version with Visual Studio.
You can see how it’s done if you take a look at the actions in
https://github.com/dpage/winpgbuild. The postgresql-dev one is probably the best example, as it only runs a single meson build, whilst the postgresql action is a matrix build that has to handle both the old style msvc and meson, and thus is much harder to read.
The repo also shows how to build (nearly) all the dependencies in a meson compatible way, or you can just download the build artefacts if you don’t want to do that yourself (see the bundle-deps action). You may not see the artefacts if you’re not logged in to Github.
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.
-----原始邮件-----From: "Bill Smith" <bill.smith@enterprisedb.com>Sent: 2024-10-27 15:07:39To: "Mark Hill" <Mark.Hill@sas.com>Subject: Re: msvc directory missing in PostgreSQL 17.0
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.Hill@sas.com> wrote:Thanks Bill! Do you have a sample meson command for building that you could share?
Thanks, MarkFrom: Bill Smith <bill.smith@enterprisedb.com>
Sent: Friday, October 18, 2024 4:11 PM
To: Mark Hill <Mark.Hill@sas.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: msvc directory missing in PostgreSQL 17.0EXTERNAL
On Oct 18, 2024, at 4:05 PM, Mark Hill <Mark.Hill@sas.com> wrote:I just downloaded the Postgresql 17.0 and the extracted directory postgresql-17.0/src/tools does not containthe “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>
Thanks, Mark
В списке pgsql-hackers по дате отправления: