319 | | |
320 | | make |
| 319 | }}} |
| 320 | |
| 321 | #this part is a hack, but again didn't work without it |
| 322 | #you can try without doing this, but if you get errors about |
| 323 | # conflicting type def boolean during PostGIS compile, you need this. |
| 324 | #In my case I got this: |
| 325 | {{{ |
| 326 | In file included from c:/projects/json-c/rel-0.9w64/include/json/json_util.h:1 |
| 327 | |
| 328 | from c:/projects/json-c/rel-0.9w64/include/json/json.h:23, |
| 329 | from lwgeom_in_geojson.c:31: |
| 330 | c:/projects/json-c/rel-0.9w64/include/json/json_object.h:32: error: conflictin |
| 331 | types for 'boolean' |
| 332 | c:\mingw\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w6 |
| 333 | mingw32/include/rpcndr.h:52: note: previous declaration of 'boolean' was here |
| 334 | make[1]: *** [lwgeom_in_geojson.o] Error 1 |
| 335 | }}} |
| 336 | |
| 337 | * Open up /c/projects/json-c/rel-0.9/include/json/json_object.h |
| 338 | * remark out line 32 that reads |
| 339 | {{{ typedef int boolean }}} |
| 340 | * so it should now read |
| 341 | {{{ /** typedef int boolean; **/ }}} |
| 342 | * During the PostGIS configure process, you have to put this back the way it was otherwise configure complains json.h or something is not usable and refuses to configure with JSON-C support. Then you remark the line out again during compile. Crazy I know, but json-c won't compile without that line so can't take it out before json-c compile. |
| 343 | |
| 344 | If you run into problems with your build, pipe the output into a file for further analysis. The GUI requires that pkg-config be on your PATH, check that it is there by running 'which pkg-config'. |
| 345 | {{{ |
| 346 | make 2>&1 | tee /c/build.log |