Building PostgreSQL 18 with OpenSSL in Windows with Meson

From: sutyak <sutyak(at)proton(dot)me>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Building PostgreSQL 18 with OpenSSL in Windows with Meson
Date: 2026-09-29 14:09:58
Message-ID: fTlUXAETW0nMBVV1RPRekC8QJrom37ite2D2opcQXVSJ2KwUbhjQPJFTLR878W-LF0vW_uxD89E6h0nHMf5kfo9cDQskhj67zvOY14D56Ic=@proton.me
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

My main issue is getting Meson to find the necessary OpenSSL libraries.
(In Visual Studio 2026 x64 command prompt)

If I run the basic "meson setup build --reconfigure" Meson will automatically find the openssl in my path, but will error out finding C header ssl.h.

If I specify the include directory then it will get further, but then give an error saying " C shared or static library 'ssl' not found"

meson setup build --reconfigure -Dssl=openssl -Dextra_include_dirs="C:\Program Files\openssl\include"

The previous msvc PostgreSQL 14 build method worked flawlessly, but the change to Meson is throwing me a curveball.

Mark Sutyak

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2026-09-29 15:48:45 Re: AW: Extract text from XML, pay attention to XML Entities
Previous Message 2026-09-29 13:12:49 AW: Extract text from XML, pay attention to XML Entities