261 | | |
| 263 | == Compiling JSON-C == |
| 264 | This is needed if you want ST_GeomFromGeoJSON to be functional. |
| 265 | Download [http://oss.metaparadigm.com/json-c/json-c-0.9.tar.gz] and save to c:\projects\json-c |
| 266 | {{{ |
| 267 | cd /c/projects/json-c |
| 268 | tar xvfz json-c-0.9.tar.gz |
| 269 | cd json-c-0.9 |
| 270 | ## had to compile with -w (disable warnings otherwise it gave errors |
| 271 | ./configure --build=x86_64-w64-mingw32 \ |
| 272 | --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \ |
| 273 | --prefix=/c/projects/json-c/rel-0.9w64 CFLAGS=-w |
| 274 | make clean |
| 275 | make |
| 276 | make install |
| 277 | }}} |
| 278 | |
| 279 | == Compiling PostGIS 2.0 == |
| 280 | |
| 281 | {{{ |
| 282 | cd /c/projects |
| 283 | mkdir postgis |
| 284 | cd postgis |
| 285 | wget http://www.postgis.org/download/postgis-2.0.0beta2SVN.tar.gz |
| 286 | tar xvf postgis-2.0.0beta2SVN |
| 287 | cd postgis-2.0.0beta2SVN |
| 288 | CPPFLAGS="-I/c/projects/pgx64/pg91/include" LDFLAGS="-L/c/projects/pgx64/pg91/lib" ./configure \ |
| 289 | --with-xml2config=/c/projects/libxml/rel-libxml2-2.7.8w64/bin/xml2-config \ |
| 290 | --with-pgconfig=/c/projects/pgx64/pg91/bin/pg_config \ |
| 291 | --with-geosconfig=/c/projects/geos/rel-3.3.3vcc64/bin/geos-config \ |
| 292 | --with-projdir=/c/projects/proj/rel-4.7.0w64 \ |
| 293 | --with-gdalconfig=/c/projects/gdal/rel-1.9.0w64/bin/gdal-config \ |
| 294 | --with-jsondir=/c/projects/json-c/rel-0.9w64 \ |
| 295 | |
| 296 | make |
| 297 | make check |
| 298 | make install |
| 299 | }}} |