328 | | == 17. Compiling PostGIS == |
| 328 | == 17. Compiling JSON-C == |
| 329 | This is needed if you want ST_GeomFromGeoJSON to be functional. |
| 330 | Download [http://oss.metaparadigm.com/json-c/json-c-0.9.tar.gz] and save to c:\projects\json-c |
| 331 | {{{ |
| 332 | cd /c/projects/json-c |
| 333 | tar xvfz json-c-0.9.tar.gz |
| 334 | cd json-c-0.9 |
| 335 | ## had to compile with -w (disable warnings otherwise it gave errors |
| 336 | ./configure --prefix=/c/projects/json-c/rel-0.9 CFLAGS=-w |
| 337 | make clean |
| 338 | make |
| 339 | make install |
| 340 | }}} |
| 341 | #this part is a hack, but again didn't work without it |
| 342 | #you can try without doing this, but if you get errors about |
| 343 | # conflicting type def during PostGIS compile, you need this. |
| 344 | |
| 345 | * Open up /c/projects/json-c/rel-0.9/include/json/json_object.h |
| 346 | * remark out line 32 that reads {{{ typedef int boolean }}} |
| 347 | * so it should now read {{{ /** typedef int boolean; **/ }}} |
| 348 | |
| 349 | == 18. Compiling PostGIS == |