File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -867,12 +867,24 @@ g++ -s gdal_contour.o -o gdal_contour.exe -L/usr/local/lib -lpng -lz -lgdal
867
867
g++ -s gdaltindex.o -o gdaltindex.exe -L/usr/local/lib -lpng -lz -lgdal
868
868
g++ -s gdal_rasterize.o -o gdal_rasterize.exe -L/usr/local/lib -lpng -lz -lgdal
869
869
install gdalinfo.exe gdal_translate.exe gdaladdo.exe gdalwarp.exe gdal_contour.exe gdaltindex.exe gdal_rasterize.exe /usr/local/bin
870
+
870
871
```
871
872
872
873
Finally, manually edit ``gdal-config`` in ``c:\msys\local\bin`` to replace the static library reference with -lgdal:
873
874
```
874
875
CONFIG_LIBS="-L/usr/local/lib -lpng -lz -lgdal"
875
876
```
877
+ GDAL build procedure can be greatly simplified to use libtool with a libtool line patch:
878
+ configure gdal as below:
879
+ ./configure --with-ngpython --with-xerces=/local/ --with-jasper=/local/ --with-grass=/local/grass-6.3.cvs/ --with-pg=/local/pgsql/bin/pg_config.exe
880
+
881
+ Then fix libtool with:
882
+ mv libtool libtool.orig
883
+ cat libtool.orig | sed 's/max_cmd_len=8192/max_cmd_len=32768/g' > libtool
884
+
885
+ Libtool on windows assumes a line length limit of 8192 for some reason and tries to page the linking and fails miserably. This is a work around.
886
+
887
+ Make and make install should be hassle free after this.
876
888
877
889
=== GRASS ===
878
890
You can’t perform that action at this time.
0 commit comments