Changes between Version 90 and Version 91 of DevWikiWinMingW64


Ignore:
Timestamp:
03/04/12 15:24:12 (13 years ago)
Author:
robe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiWinMingW64

    v90 v91  
    317317  --with-jsondir=/c/projects/json-c/rel-0.9w64 \
    318318  --with-libiconv=/c/projects/rel-libiconv-1.13.1w64
    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{{{
     326In 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:
     330c:/projects/json-c/rel-0.9w64/include/json/json_object.h:32: error: conflictin
     331types for 'boolean'
     332c:\mingw\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w6
     333mingw32/include/rpcndr.h:52: note: previous declaration of 'boolean' was here
     334make[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
     344If 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{{{
     346make 2>&1 | tee /c/build.log
    321347make check
    322348make install