Compiling a ossp-uuid module for Win32

Поиск
Список
Период
Сортировка
От Wolfgang Rißler
Тема Compiling a ossp-uuid module for Win32
Дата
Msg-id 07295b5f-3704-1d27-5cb2-92fe8f0f31ce@freenet.de
обсуждение исходный текст
Список pgsql-general
Hello community,

since we need a libpq for postgres v13 for a win32 project, and I did 
not find a binary package, I tried to compile my own postgres v13 win32 
with MSVisualStudio 2019.

This works so far, as described in the docs.
I also could add the most extensions in the config.pl (without knowing 
exactly, if they are necessary for our libpq).

Only one module drives me nuts, the ossp-uuid. I cant find a binary 
package (win32), but I could get the sources from here:
http://www.ossp.org/pkg/lib/uuid/
I can compile them in MinGW-environment (with ./configure and make), but 
(as expected) I get an uuid.h but an .a libraryfile like for *ix systems.
The build of the libpq in postgres tells me, it needs a uuid.lib (which 
is also expected since it's a MS-linker).

So my first question is:
Do I need my libpq with ossp-uuid (we don't want to use the whole 
database, only the libpq)

And the second question would be (if the first answer is Yes):
How can I manage to get ossp-uuid compiled in that way, that I will get 
a static .lib (or a dynamic .lib and .dll )
(Or is there a ready to use win32 binary package somewhere to download?)

The database, we're using is the v13 64bit binary-package from EDB, 
where ossp-uuid is needed, because we use logical replication. But I 
hope there is no ossp-uuid needed in the libpq.

Thank you.

-- 

- may the source be with you -



В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Boussekey
Дата:
Сообщение: [RPM/CentOS7] Need to disable repo_gpgcheck on pgdg-common when using RPM version 42.0-17.1
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: trigger impacting insertion of records