Changes between Version 4 and Version 5 of DevWikiWinMingWSys_20_MSVC
- Timestamp:
- 02/29/12 00:37:39 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevWikiWinMingWSys_20_MSVC
v4 v5 105 105 }}} 106 106 107 Open up the "MinGW Shell" and clean out the static libraries and copy the dynamic libraries over to the libdir:107 Open up the "MinGW Shell" and clean out the static libraries and copy the dynamic libraries over to the `lib` dir: 108 108 109 109 {{{ … … 114 114 }}} 115 115 116 Now you have GEOS, but PostGIS is going to need a geos-configfile to build, so...116 Now you have GEOS, but PostGIS is going to need a `geos-config` file to build, so... 117 117 118 118 {{{ … … 157 157 }}} 158 158 159 Edit the nmake.opt file and set the INSTDIR variable to "c:\pgsql".159 Edit the `nmake.opt` file and set the `INSTDIR` variable to `c:\pgsql` 160 160 161 161 Open up the "Visual Studio 2008 Command Prompt" … … 168 168 }}} 169 169 170 Open up the "MinGW Shell" and clean out the static libraries and copy the dynamic libraries over to the libdir:170 Open up the "MinGW Shell" and clean out the static libraries and copy the dynamic libraries over to the `lib` dir: 171 171 172 172 {{{ … … 228 228 }}} 229 229 230 Now you have libxml2, but you don't have an xml2-configfile. So...230 Now you have libxml2, but you don't have an `xml2-config` file. So... 231 231 232 232 {{{ … … 234 234 }}} 235 235 236 Now edit /c/pgsql/bin/xml2-configso it returns the right answers!237 238 * Change the --libes option so that "-lgeos" becomes "-lxml2 -lz -lpthread -liconv -lm"239 * Change the --cflags option to return "-I/c/pgsql/include/libxml"236 Now edit `/c/pgsql/bin/xml2-config` so it returns the right answers! 237 238 * Change the `--libs` option so that `-lgeos` becomes `-lxml2 -lz -lpthread -liconv -lm` 239 * Change the `--cflags` option to return `-I/c/pgsql/include/libxml` 240 240 241 241 == JSON-C == … … 269 269 }}} 270 270 271 In order get get all the symbols linking you need to edit nmake.opt appropriately. Find the following line in the file and disable STDCALL by following the directions (commenting out the line and adding the CPL_DISABLE_STDCALL flag to the OPTFLAGSlater in the file.271 In order get get all the symbols linking you need to edit `nmake.opt` appropriately. Find the following line in the file and disable `STDCALL` by following the directions (commenting out the line and adding the `CPL_DISABLE_STDCALL` flag to the `OPTFLAGS` later in the file. 272 272 {{{ 273 273 # If you don't want some entry points to have STDCALL conventions, … … 284 284 VERSION = 285 285 }}} 286 Note on the above: Blanking out the version string is necessarily to line up the DLL name with the expectation of the PostGIS configure script that gdal will be named "gdal" and not "gdal19". This is fine for a one-time compile, but in the long run, to avoid DLL conflicts, we would be better off with a properly named GDAL and having the PostGIS configure process pick up the right name from the gdal-configscript and apply it to all tests.286 Note on the above: Blanking out the version string is necessarily to line up the DLL name with the expectation of the PostGIS configure script that gdal will be named "gdal" and not "gdal19". This is fine for a one-time compile, but in the long run, to avoid DLL conflicts, we would be better off with a properly named GDAL and having the PostGIS configure process pick up the right name from the `gdal-config` script and apply it to all tests. 287 287 288 288 Open up the "Visual Studio 2008 Command Prompt" … … 293 293 }}} 294 294 295 Copy the dynamic gdal-configscript into place.295 Copy the dynamic `gdal-config` script into place. 296 296 {{{ 297 297 cp apps/gdal-config /c/pgsql/bin … … 303 303 }}} 304 304 305 Ensure gdal-configreturns the right answers!305 Ensure `gdal-config` returns the right answers! 306 306 307 307 Copy the header files over, since the install process seems to not move them. … … 325 325 }}} 326 326 327 Before building, edit one file to allow the regression tests to run, edit ./regress/Makefile.inand set327 Before building, edit one file to allow the regression tests to run, edit `./regress/Makefile.in` and set 328 328 {{{ 329 329 REGRESS_INSTALLDIR=C:/build/sources/postgis-svn/regress/00-regress-install