From: | Mark Hill <Mark(dot)Hill(at)sas(dot)com> |
---|---|
To: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | FW: Building Postgres 17.0 with meson |
Date: | 2024-11-06 19:59:17 |
Message-ID: | DM6PR05MB5083E8A060BE1274B8FAD09CEE532@DM6PR05MB5083.namprd05.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Srinath is in India I believe and not available currently. Does anybody have any idea why meson
is not finding the paths I'm specifying with the -Dextra_lib_dirs and -Dextra_include_dirs? See below.
Thanks, Mark
From: Mark Hill
Sent: Wednesday, November 6, 2024 10:33 AM
To: 'Srinath Reddy Sadipiralla' <srinath(dot)reddy(at)zohocorp(dot)com>
Subject: RE: Building Postgres 17.0 with meson
Hi Srinath,
Thanks for the tip.
I tried:
meson setup build --prefix=%prefix% --buildtype=release -Dextra_lib_dirs=%openssl_directory%,%zlib_directory%,%icu4c_directory% -Dextra_include_dirs=%openssl_directory%,%zlib_directory%,%icu4c_directory%
using both the -Dextra_lib_dirs and -Dextra_include_dirs and it's still not finding openssl, icu, or zlib.
In the External libraries information toward the end of the output, it says:
External libraries
icu : NO
openssl : NO
zlib : NO
I removed the other libraries in the output for brevity.
I've checked my variables and they're correct and those libraries are there.
Am I missing an option to meson setup build?
Thanks, Mark
From: Srinath Reddy Sadipiralla <srinath(dot)reddy(at)zohocorp(dot)com<mailto:srinath(dot)reddy(at)zohocorp(dot)com>>
Sent: Wednesday, November 6, 2024 12:34 AM
To: Mark Hill <Mark(dot)Hill(at)sas(dot)com<mailto:Mark(dot)Hill(at)sas(dot)com>>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org<mailto:pgsql-hackers(at)lists(dot)postgresql(dot)org>>
Subject: Re: Building Postgres 17.0 with meson
EXTERNAL
---- On Wed, 06 Nov 2024 09:59:37 +0530 Mark Hill <Mark(dot)Hill(at)sas(dot)com<mailto:Mark(dot)Hill(at)sas(dot)com>> wrote ---
I'm trying to build Postgres 17.0 and have about learning meson as I go.
The build setup command I have so far is:
meson setup build --prefix=%prefix% --buildtype=release -Dssl=auto -Dzlib=auto -Dicu=auto
but I believe that cmd expects ssl, zlib, and icu to be installed in default locations.
How do I specify to meson that I want it to use the versions of those 3 software packages that I have built
e.g. the openssl I want it to use is located in D:\Postgres-Builds\OpenSSL\OpenSSL-Install\OpenSSL-3.1.6-wx6
and similar locations for icu and zlib?
Thanks, Mark
Specify the lib's paths in "-Dextra_lib_dirs" during meson setup
e.g. meson setup build --prefix=%prefix% --buildtype=release -Dextra_lib_dirs=D:\Postgres-Builds\OpenSSL\OpenSSL-Install\OpenSSL-3.1.6-wx6
https://www.postgresql.org/docs/current/install-meson.html#CONFIGURE-EXTRA-LIB-DIRS-MESON<https://protect.checkpoint.com/v2/r01/___https://www.postgresql.org/docs/current/install-meson.html%23CONFIGURE-EXTRA-LIB-DIRS-MESON___.YzJ1OnNhc2luc3RpdHV0ZTpjOm86MDg3ZjFmNjNjMzNiMzg0ZDZkNmExYTJhYjA0OWNhOTc6NzplY2QxOjgxODdlMTZhMjJjODA1MzZhZGFiNjU0YTdkNmUwM2QwNjVlNjNjMTkzMTJmYjU1ZGFlNzNhZjUwYzJmNmY4YjU6aDpUOk4>
Regards,
Srinath Reddy Sadipiralla
Member Technical Staff
ZOHO
From | Date | Subject | |
---|---|---|---|
Next Message | Maiquel Grassi | 2024-11-06 20:17:29 | RE: Rename Function: pg_postmaster_start_time |
Previous Message | Daniel Gustafsson | 2024-11-06 19:50:41 | Re: Rename Function: pg_postmaster_start_time |