[postgis-devel]WKTRaster:WhyhavingtocompilePostgreSQL&PostGISfirst?
Magnus Hagander
magnus at hagander.net
Wed Mar 4 14:02:58 PST 2009
Mark Cave-Ayland wrote:
> Mateusz Loskot wrote:
>
>>> Unfortunately there is with PostGIS if you use newer versions of
>>> PostgreSQL. Since PostgreSQL 8.3 is now compiled with MSVC, there is no
>>> way to generate the required PGXS Makefiles, and so you must use MingW
>>> to generate them.
>>
>>
>> So, how it's possible developers build extensions using Visual C++?
>> One of example at the bottom of this page:
>>
>> http://www.postgresql.org/docs/8.3/interactive/xfunc-c.html
>
> As long as you stick with standard C rather than C++ then you can
> mix/match libraries between MingW/MSVC as you wish. The issue with
> respect to MSVC is that PGXS (the PostgreSQL extension building
> infrastructure) works using GNU Makefiles, which of course won't work
> with MSVC.
>
> I've CC'd Magnus onto this email, but as far as I know the MSVC
> PostgreSQL builds don't generate the PGXS Makefiles anymore - at least,
> I don't see them installed as part of the development packages.
They don't. PGXS isn't compatible with MSVC. We really should come up
with something that is, but that work hasn't been done. The point is
that the vast majority of the people who use windows don't care a bit
for building from source - which decreases the urgency of doing such a
thing.
>> b) it can be compiled using Visual C++ and
>> c) there is building configuration for Visual Studio toolset,
>> then I can't see any reason why some makefiles couldn't be generated
>> under Windows without MinGW or cygwin.
>
> Well as part of the rebuilding of the PostGIS build system, I made a
> conscious effort to write it in a way that would make compilation under
> MSVC possible. As a result, all of the logic has been moved from the
> Makefiles into autotools which generates postgis_config.h. So if you can
> come up with a suitable file for MSVC, you should just be left with
> standard MSVC compatibility issues.
Sorry for pehaps bringing up an already closed topic, but what happened
to previous discussions about using cmake? If you want examples, there
are now cmake buildfiles for pgAdmin3 (they're not the primary ones yet,
but they're there)
//Magnus
More information about the postgis-devel
mailing list