256 | | 3. ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz |
257 | | 4. For windows it crashes currently unless you compile libxml statically which means |
258 | | it gets embedded in the postgis-1.5.dll |
259 | | {{{ |
260 | | # tar xvfz libxml2-2.7.6.tar.gz |
261 | | # cd libxml2-2.7.6 |
262 | | # ./configure --prefix=/c/projects/libxml/libxml2-2.7.6release --disable-shared CCFLAGS=LDFLAGS="-Wl,-static" CFLAGS=-O2 |
263 | | # make |
264 | | # make install |
| 256 | 3. ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz |
| 257 | There seems to be some finickiness with configure that sometimes you have to disable static binding and sometimes you don't |
| 258 | it's still a mystery to me: |
| 259 | |
| 260 | {{{ |
| 261 | tar xvfz libxml2-2.7.8.tar.gz |
| 262 | cd libxml2-2.7.8 |
| 263 | ./configure --prefix=/c/projects/libxml/libxml2-2.7.8release --enable-shared --disable-static |
| 264 | make |
| 265 | make install |
| 266 | }}} |
| 267 | |
| 268 | -- to force to compile static if your GeomFromGML/KML crashes you can try this. |
| 269 | {{{ |
| 270 | ./configure --prefix=/c/projects/libxml/libxml2-2.7.8release --disable-shared CCFLAGS=LDFLAGS="-Wl,-static" CFLAGS=-O2 |
| 271 | make |
| 272 | make install |
| 273 | }}} |
| 274 | |
| 275 | == LibXML if the above fails in producing a release === |
| 276 | Sometimes you get a libtoolT error at the end of configure which seems harmless. Sometimes it compiles on some machines and not others. |
| 277 | I have concluded it has to do with which zlib if any it picks up (on one machine that worked it was picking up my tortoise git zlib and had a dependency on msvcr9). |
| 278 | So you can explicitly set your paths with: |
| 279 | |
| 280 | {{{ |
| 281 | export PATH="/usr/local/bin:/mingw/bin:/bin" |
| 282 | }}} |
| 283 | |
| 284 | and /or : |
| 285 | |
| 286 | {{{ |
| 287 | ./configure --prefix=/c/projects/libxml/libxml2-2.7.8release --enable-shared --disable-static --without-zlib |