| 247 | === PROJ.4 === |
| 248 | |
| 249 | 1. Download PROJ.4 from [ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz here] |
| 250 | |
| 251 | 2. Unpack to c:\osgeo4w\usr\src |
| 252 | |
| 253 | 3. Download the US, Canadian and New Zealand datum shift grids from [ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.zip here] |
| 254 | |
| 255 | 4. Unpack to c:\osgeo4w\usr\src\proj-4.6.0\nad |
| 256 | |
| 257 | 5. In MSYS console, type: |
| 258 | {{{ |
| 259 | cd /osgeo4w/usr/src/proj-4.6.0 |
| 260 | ./configure --prefix=/osgeo4w --enable-shared --disable-static |
| 261 | make |
| 262 | make install |
| 263 | }}} |
| 264 | Because make procedure doesn't create shared library (even if enabled by configure), we need to build it manually: |
| 265 | {{{ |
| 266 | cd src |
| 267 | for i in *.exe ; do rm /osgeo4w/bin/$i ; done |
| 268 | rm /osgeo4w/bin/invgeod.exe |
| 269 | rm /osgeo4w/bin/invproj.exe |
| 270 | rm *.exe |
| 271 | cd .libs |
| 272 | rm libproj.a |
| 273 | rm /osgeo4w/lib/libproj.a |
| 274 | gcc -shared -s -o libproj.dll -lm -Wl,--out-implib,libproj.a *.o |
| 275 | cd .. |
| 276 | gcc -s -g -O2 -o cs2cs.exe cs2cs.o gen_cheb.o p_series.o .libs/emess.o -L./.libs/ -lproj |
| 277 | gcc -s -g -O2 -o geod.exe geod.o geod_set.o geod_for.o geod_inv.o .libs/emess.o -L./.libs/ -lproj |
| 278 | gcc -s -g -O2 -o nad2bin.exe nad2bin.o -L./.libs/ -lproj |
| 279 | gcc -s -g -O2 -o nad2nad.exe nad2nad.o .libs/emess.o -L./.libs/ -lproj |
| 280 | gcc -s -g -O2 -o proj.exe proj.o gen_cheb.o p_series.o .libs/emess.o -L./.libs/ -lproj |
| 281 | cp proj.exe invproj.exe |
| 282 | cp geod.exe invgeod.exe |
| 283 | cd .libs |
| 284 | install libproj.a /osgeo4w/lib |
| 285 | install libproj.dll /osgeo4w/bin |
| 286 | cd .. |
| 287 | for i in *.exe ; do install $i /osgeo4w/bin ; done |
| 288 | }}} |
| 289 | |
| 290 | |