[postgis-devel] [PostGIS] #382: PostGIS native VC++ / Express build
PostGIS
trac at osgeo.org
Fri Oct 8 12:16:28 PDT 2010
#382: PostGIS native VC++ / Express build
-------------------------+--------------------------------------------------
Reporter: robe | Owner: robe
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
Comment(by robe):
We are not having much success with this. So we will give up for now and
hopefully will have better luck with MSys64. I was also thinking we
really need to support Msys64 anyway. It seems unfair to require someone
to go out and by VS professional just so they can compile PostGIS under
windows for 64-bit. It doesn't seem the Express supports 64-bit. Granted
we should at some point support VS/VC++, but I don't think (Leo and I) are
capable of it giving our limited experience with C and C++.
Mat -- tried to follow your directions -- but not much luck.
We started notes on it -- not finished --
http://trac.osgeo.org/postgis/wiki/DevWikiWinVC_15
Even on 32-bit not having much success compiling PostGIS 1.5.3SVN. We get
errors such as below
{{{
/Od /I "C:\Projects\Geos\geos-3.2.2win\include" /I
"C:\Projects\PostGIS\branches\postgis-1.5.3win\build\msvc80\..\..\platform\win32"
/D "WIN32" /D "_DEBUG" /D "_LIB" /D
"_USE_MATH_DEFINES" /D "_UNICODE" /D
"UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\"
/Fd"Debug\vc90.pdb" /W3 /c /Wp64 /ZI /TC
"..\..\..\liblwgeom\wktparse.tab.c"
"..\..\..\liblwgeom\vsprintf.c"
"..\..\..\liblwgeom\ptarray.c"
"..\..\..\liblwgeom\measures.c"
"..\..\..\liblwgeom\lwutil.c"
"..\..\..\liblwgeom\lwtree.c"
"..\..\..\liblwgeom\lwspheroid.c"
"..\..\..\liblwgeom\lwsegmentize.c"
"..\..\..\liblwgeom\lwpoly.c"
"..\..\..\liblwgeom\lwpoint.c"
"..\..\..\liblwgeom\lwmsurface.c"
"..\..\..\liblwgeom\lwmpoly.c"
"..\..\..\liblwgeom\lwmpoint.c"
"..\..\..\liblwgeom\lwmline.c"
"..\..\..\liblwgeom\lwmcurve.c"
"..\..\..\liblwgeom\lwline.c"
"..\..\..\liblwgeom\lwgunparse.c"
"..\..\..\liblwgeom\lwgparse.c"
"..\..\..\liblwgeom\lwgeom_api.c"
"..\..\..\liblwgeom\lwgeom.c"
"..\..\..\liblwgeom\lwgeodetic.c"
"..\..\..\liblwgeom\lwcurvepoly.c"
"..\..\..\liblwgeom\lwcompound.c"
"..\..\..\liblwgeom\lwcollection.c"
"..\..\..\liblwgeom\lwcircstring.c"
"..\..\..\liblwgeom\lwalgorithm.c"
"..\..\..\liblwgeom\lex.yy.c"
"..\..\..\liblwgeom\g_util.c"
"..\..\..\liblwgeom\g_serialized.c"
"..\..\..\liblwgeom\g_ptarray.c"
"..\..\..\liblwgeom\g_geometry.c"
"..\..\..\liblwgeom\g_coord.c"
"..\..\..\liblwgeom\g_box.c"
"..\..\..\liblwgeom\box2d.c"
]
Creating command line "cl.exe
@"c:\Projects\PostGIS\branches\postgis-1.5.3win\build\msvc80\liblwgeom\Debug\RSP00002120725080.rsp"
/nologo /errorReport:prompt"
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial
size=+2>
Output Window
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0
bgcolor=#EDEDF5> </td><td width=0 bgcolor=#FFFFFF> </td><td
width=*><pre>Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and
will be removed in a future release
box2d.c
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(177) :
error C2054: expected '(' to follow 'va_dcl'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(177) :
error C2085: 'uchar' : not in formal parameter list
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(186) :
error C2085: 'BOX2DFLOAT4' : not in formal parameter list
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(193) :
error C2085: 'BOX3D' : not in formal parameter list
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(201) :
error C2061: syntax error : identifier 'BOX3D'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(238) :
error C2059: syntax error : '}'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(316) :
error C2016: C requires that a struct or union has at least one member
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(316) :
error C2061: syntax error : identifier 'uchar'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(319) :
error C2061: syntax error : identifier 'dims'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(319) :
error C2059: syntax error : ';'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(322) :
error C2059: syntax error : '}'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(333) :
error C2016: C requires that a struct or union has at least one member
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(333) :
error C2061: syntax error : identifier 'POINTARRAY'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(336) :
error C2059: syntax error : '}'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(340) :
error C2143: syntax error : missing '{' before '*'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(354) :
error C2143: syntax error : missing ')' before '*'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(354) :
error C2143: syntax error : missing '{' before '*'
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(354) :
error C2371: 'POINT4D' : redefinition; different basic types
c:\projects\postgis\branches\postgis-1.5.3win\liblwgeom\liblwgeom.h(303) :
see declaration of 'POINT4D'
}}}
And it goes on and on. Also not sure where we would put the libxml
dependency that became a requirement in 1.5.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/382#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list