Re: cannot to compile extension by meson on windows

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: cannot to compile extension by meson on windows
Date: 2024-12-01 22:32:44
Message-ID: CAFj8pRCg1y9iu08nnyknAQKYuy_ocr+cAWY_cjwrLquH_fr_1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

ne 1. 12. 2024 v 22:24 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
napsal:

>
>
> ne 1. 12. 2024 v 21:16 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> napsal:
>
>>
>>
>> ne 1. 12. 2024 v 21:06 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
>> napsal:
>>
>>>
>>>
>>> ne 1. 12. 2024 v 19:23 odesílatel Andres Freund <andres(at)anarazel(dot)de>
>>> napsal:
>>>
>>>> Hi,
>>>>
>>>> On 2024-12-01 19:11:05 +0100, Pavel Stehule wrote:
>>>> > ne 1. 12. 2024 v 19:05 odesílatel Andres Freund <andres(at)anarazel(dot)de>
>>>> napsal:
>>>> > > If it fails due to libintl you're likely missing the libintl
>>>> headers that
>>>> > > the
>>>> > > windows build was built against.
>>>> > >
>>>> >
>>>> > This file is part of PostgreSQL's header files from the EDB
>>>> installer. I
>>>> > see this file there. I am able to build Orafce when I don't use meson.
>>>>
>>>> Then, presumably, your include paths don't include the relevant
>>>> directory?
>>>>
>>>
>>> it is taken from pg_config.exe
>>>
>>> On my linux computer, libintl is in /usr/include
>>>
>>> On windows C:\Program Files\ PostgreSQL\16\include
>>>
>>> So looks so definition
>>>
>>> shared_module(
>>> 'orafce',
>>> orafce_sources,
>>> include_directories: [includedir_server],
>>> install: true,
>>> install_dir: pkglibdir,
>>> name_prefix: '',
>>> )
>>>
>>> can works only on Linux
>>>
>>> msvc requires
>>>
>>> include_directories: [includedir_server / 'port/win32_msvc',
>>> includedir_server / 'port/win32', includedir_server, includedir],
>>>
>>> Another prerequisite is using x64 Native tools command line, but still I
>>> have problem, because meson badly detects target cpu
>>>
>>
>> look like my problem - I had to use --wipe
>>
>> now, I am playing with linking issues
>>
>
> with some changes I am able to build orafce on msvc by meson
>
> https://github.com/orafce/orafce/blob/master/meson.build
>

and with some little bit of gaming and DiffUtil installation from
https://gnuwin32.sourceforge.net/packages/diffutils.htm
I am able to run regress tests - unexpected success for me.

Regards

Pavel

>
>
>
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>>
>>>> Greetings,
>>>>
>>>> Andres Freund
>>>>
>>>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andy Fan 2024-12-02 01:03:28 Re: Code cleanup for detoast a expanded datum.
Previous Message Tom Lane 2024-12-01 22:30:20 Re: CREATE SCHEMA ... CREATE DOMAIN support