Contents
#### Building on Windows
- Download libsodium >= 1.018 and unzip
- Download and run the postgresql installer
- From the
/pgsodium/build
directory, runmsbuild
onpgsodium.vcxproj
msbuild
can be invoked though the x64 Native Tools Command Prompt for VS 2022
The following properties ( /p
or /property
) must be specified:
- libsodiumLocation
: root libsodium directory
- PostgreSQLLocation
: root postgresql directory, typically C:\Program Files\PostgreSQL\<version>
-
Configuration: [
Release,
Debug]
-
Platform: [x64]
-
platformToolset: [
v142,
v143`]
ie.
msbuild pgsodium.vcxproj /p:libsodiumLocation="C:\libsodium" /p:PostgreSQLLocation="C:\Program Files\PostgreSQL\15" /p:Configuration=Release /p:Platform=x64 /p:platformToolset=v143
- Copy the
libsodium.dll
(fromlibsodium\x64\Release\<platformToolset>\dynamic
) and the newly builtpgsodium.dll
into your\PostgreSQL\<version>\lib
directory