Skip to content

Commit d1f6715

Browse files
author
what_nick
committedJul 25, 2007
Updated GDAL build instructions with libtool patch
git-svn-id: http://svn.osgeo.org/qgis/trunk@7085 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 34a94be commit d1f6715

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎INSTALL.t2t

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,12 +867,24 @@ g++ -s gdal_contour.o -o gdal_contour.exe -L/usr/local/lib -lpng -lz -lgdal
867867
g++ -s gdaltindex.o -o gdaltindex.exe -L/usr/local/lib -lpng -lz -lgdal
868868
g++ -s gdal_rasterize.o -o gdal_rasterize.exe -L/usr/local/lib -lpng -lz -lgdal
869869
install gdalinfo.exe gdal_translate.exe gdaladdo.exe gdalwarp.exe gdal_contour.exe gdaltindex.exe gdal_rasterize.exe /usr/local/bin
870+
870871
```
871872

872873
Finally, manually edit ``gdal-config`` in ``c:\msys\local\bin`` to replace the static library reference with -lgdal:
873874
```
874875
CONFIG_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

0 commit comments

Comments
 (0)
Please sign in to comment.