Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC

Lists: pgsql-hackers
From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>, <uniware(at)zedware(dot)org>, "Chuck McDevitt" <cmcdevitt(at)greenplum(dot)com>
Subject: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
Date: 2006-05-05 07:42:15
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA3536C@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> Hi William(uniware), Chuck and Hackers,
>
> I have been interested in doing complete PGSQL
> development in MSVC for a long time now. With reference to
> one of Chuck's mails to
> -hackers-win32 with the same subject, you said that you were
> able to successfully compile PG 8.1 with some minor tweaks.
>
> Also, William has 'vcproject' hosted on pgfoundry, I
> downloaded it, and tried compiling
> vcproject\msvc\postgres\postgres.dsw on
> VC++6.0. It failed miserably with over 1000 errors. I am sure there's
> some tweaks needed here too!!!

Yes. There is a patch pending on -patches which fix almost all of these
in HEAD. (There are a few tiny things related to perl and NLS that
aren't included in it ATM. And I'm just assuming you're seeing the same
problems as I was but I didn't base my work off vcproject). I'm also
working on a buildscript to convert the Makefiles to visual c++ project
files, but that's not quite done yet. The idea with this work is to have
the stuff as integrated as possible with main CVS, so the maintenance
will be as low as possible - unlike the vcproject project which has been
focusing on keeping a separate build environment maintained.

The target is VC++ 2003 and 2005 ATM, but it should just be a matter of
a different output format for VC 6.0 I guess.

You will still need things like bison and flex if you want to build off
cvs, of course - there is no builtin support for that in VC++.

//Magnus


From: Christopher Kings-Lynne <chris(dot)kings-lynne(at)calorieking(dot)com>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, uniware(at)zedware(dot)org, Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>
Subject: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
Date: 2006-05-05 07:56:24
Message-ID: 445B0528.5070707@calorieking.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> Yes. There is a patch pending on -patches which fix almost all of these
> in HEAD. (There are a few tiny things related to perl and NLS that
> aren't included in it ATM. And I'm just assuming you're seeing the same
> problems as I was but I didn't base my work off vcproject). I'm also
> working on a buildscript to convert the Makefiles to visual c++ project
> files, but that's not quite done yet. The idea with this work is to have
> the stuff as integrated as possible with main CVS, so the maintenance
> will be as low as possible - unlike the vcproject project which has been
> focusing on keeping a separate build environment maintained.

The CrystalSpace and PlaneShift projects I'm associated with have
automated MSVC generators. Want me to try to grab them for you? They'd
be GPL though.

Chris


From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>, <uniware(at)zedware(dot)org>, "Chuck McDevitt" <cmcdevitt(at)greenplum(dot)com>
Subject: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
Date: 2006-05-05 09:26:49
Message-ID: 01a301c67026$0b35c820$0e01a8c0@saito3cedm5qc7
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

----- Original Message -----
From: "Magnus Hagander"

> The target is VC++ 2003 and 2005 ATM, but it should just be a matter of
> a different output format for VC 6.0 I guess.
>
> You will still need things like bison and flex if you want to build off
> cvs, of course - there is no builtin support for that in VC++.

Ahh, Your right... However, I wish to offer construction of the DSP project of VC6.
I continues after you. But, This is not fully considered carefully yet.
http://inetrt.skcapi.co.jp/~saito/pgsql82dev/
Probably , Flex and bison do not need for the formal release souce of PostgreSQL.
It will already be generated.

Regards,
Horoshi Saito