Thread: Help with Win32 MingW build

Help with Win32 MingW build

From
Michael Uman
Date:
<div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Hello,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">I am making progress slowly but surely. I have just completed building library <span
class="SpellE">popt</span>for <span class="SpellE">MingW</span> so I can port my application to windows. This is
workingjust great. Now I need to port <span class="SpellE">libpqxx</span> to Win32. I have <span
class="SpellE">PostgresSQL</span>installed on my Windows machine. It is apparently a <span class="SpellE">Cygwin</span>
buildbecause it includes the CygWin.dll component. I have it installed to C:\Program Files\<span
class="SpellE">PostgreSQL</span>and it works just fine. The problem I have is when I build the darn thing the configure
scriptgets <span class="SpellE">munged</span>. It reports that the <span class="SpellE">libpq-fe.h</span> header file
isnot available. I have ensured that the path to <span class="GramE">the include</span> and <span
class="SpellE">libs</span>are set to /<span class="SpellE">usr/local/lib/pgsql</span> and /<span
class="SpellE">usr/local/include/pgsql</span>but the <span class="SpellE">config.log</span> always reports that the
testfor the header file fails. I have attached the log file to this message<span class="GramE">..</span> It seems to
findthe header file and set the variable properly, but the <span class="SpellE">conftest</span> seems to be failing…
Anyonewith any insight into getting past <span class="GramE">this issue please help</span>!</span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span style="font-size:10.0pt;
 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">I appreciate any feedback regarding this issue.</span></font><p class="MsoNormal"><font face="Arial"
size="2"><spanstyle="font-size:10.0pt;
 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Thank you,</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">Michael Uman</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">Softwaremagic.net</span></font><p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"> </span></font></div>

Re: Help with Win32 MingW build

From
Gerhard Häring
Date:
Michael Uman <muman@softwaremagic.net> wrote:
> Hello,
>  
> I am making progress slowly but surely. I have just completed building
> library popt for MingW so I can port my application to windows. This is
> working just great. Now I need to port libpqxx to Win32. [...]

I have Makefiles for building *libpq* using mingw that you might be
interested in:

http://sf.net/pypgsql/misc

You'll have to wait until Sourceforge is up again :-(

-- Gerhard



Re: Help with Win32 MingW build

From
Gerhard Häring
Date:
Gerhard Häring <haering_postgresql@gmx.de> wrote:
> Michael Uman <muman@softwaremagic.net> wrote:
>> Hello,
>>
>> I am making progress slowly but surely. I have just completed building
>> library popt for MingW so I can port my application to windows. This is
>> working just great. Now I need to port libpqxx to Win32. [...]
>
> I have Makefiles for building *libpq* using mingw that you might be
> interested in:
>
> http://sf.net/pypgsql/misc
>
> You'll have to wait until Sourceforge is up again :-(

http://pypgsql.sourceforge.net/misc/

rather. This URL does work.

-- Gerhard