| 1 | I have successfully built GDAL 1.5.0 Perl binding on Cygwin and the followings might be helpful for those who experience problems. |
| 2 | |
| 3 | 1. Go to directory gdal-1.5.0/swig/perl and run 'perl Makefile.PL'. The following four Makefiles should be created if it succeeds: |
| 4 | {{{ |
| 5 | Makefile_Geo__GDAL |
| 6 | Makefile_Geo__GDAL__Const |
| 7 | Makefile_Geo__OGR |
| 8 | Makefile_Geo__OSR |
| 9 | }}} |
| 10 | 2. Edit each of the four Makefiles by appending `-lstdc++` after each `-lgdal` and save them. |
| 11 | |
| 12 | 3. Run make using each of the four Makefiles as follows: |
| 13 | {{{ |
| 14 | make -f Makefile_Geo__GDAL |
| 15 | make -f Makefile_Geo__GDAL__Const |
| 16 | make -f Makefile_Geo__OGR |
| 17 | make -f Makefile_Geo__OSR |
| 18 | }}} |
| 19 | 4. Install the Perl `Geo::GDAL` package by running |
| 20 | {{{ |
| 21 | make -f Makefile_Geo__GDAL install |
| 22 | }}} |
| 23 | |
| 24 | That's it. Enjoy! |
| 25 | |
| 26 | ---- |
| 27 | Source: |
| 28 | * http://www.nabble.com/GDAL-1.5.0-Perl-Binding-on-Cygwin-td14960908.html |