Building libpq with Visual Studio 2015
Martin Dyring-Andersen <[email protected]> Tue, 20 Oct 2015 12:33:14 +0000
| Newsgroups | gmane.comp.db.postgresql.interfaces |
|---|---|
| Message-ID | <FBD890227969A44597F7DD0165A364FE040FF0D7@MAILD02.wks.spamfighter.com> |
--_000_FBD890227969A44597F7DD0165A364FE040FF0D7MAILD02wksspamf_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello,
New to this list so hoping this the appropriate place to ask.
I am looking to build a static x64 version of libpq from 9.4.5 source using=
Visual Studio 2015. As far as I can tell, there are two ways to go about i=
t:
(from src)
nmake /f win32.mak CPU=3DAMD64
... which fails with an "left of lc_codepage specifies undefined struct/uni=
on __crt_locale_data" in chklocale.c(214).
And secondly invoking the build script residing in src/tools/msvc with "bu=
ild libpq" - however it fails with unsupported VS version.
As far as I can tell from the Perl source, the last version that solution/p=
roject files can be created for is 12 so I guess it makes perfect sense.
Does anybody know if there is a patch floating around that adds support for=
VS 2015?
Thanks in advance.
Martin Dyring-Andersen
--_000_FBD890227969A44597F7DD0165A364FE040FF0D7MAILD02wksspamf_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DA" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">New to this list so hoping this=
the appropriate place to ask.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I am looking to build a static =
x64 version of libpq from 9.4.5 source using Visual Studio 2015. As far as =
I can tell, there are two ways to go about it:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">(from src)<o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span lang=3D"EN-US">nmake /f win32.mak CPU=3DAMD64<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">… which fails with an =
220;left of lc_codepage specifies undefined struct/union __crt_locale_data&=
#8221; in chklocale.c(214).<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">And secondly invoking the build=
script residing in src/tools/msvc with “build libpq” =
211; however it fails with unsupported VS version.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">As far as I can tell from the P=
erl source, the last version that solution/project files can be created for=
is 12 so I guess it makes perfect sense.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Does anybody know if there is a=
patch floating around that adds support for VS 2015?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Thanks in advance.<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Martin Dyring-Andersen<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>
--_000_FBD890227969A44597F7DD0165A364FE040FF0D7MAILD02wksspamf_--