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
867867g++ -s gdaltindex.o -o gdaltindex.exe -L/usr/local/lib -lpng -lz -lgdal
868868g++ -s gdal_rasterize.o -o gdal_rasterize.exe -L/usr/local/lib -lpng -lz -lgdal
869869install gdalinfo.exe gdal_translate.exe gdaladdo.exe gdalwarp.exe gdal_contour.exe gdaltindex.exe gdal_rasterize.exe /usr/local/bin
870+
870871```
871872
872873Finally, manually edit ``gdal-config`` in ``c:\msys\local\bin`` to replace the static library reference with -lgdal:
873874```
874875CONFIG_LIBS="-L/usr/local/lib -lpng -lz -lgdal"
875876```
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.
876888
877889=== GRASS ===
878890
You can’t perform that action at this time.
0 commit comments