Opened 24 years ago
Last modified 24 years ago
#7 closed defect (fixed)
GDAL compile problem
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi Frank, today I wanted to try your r.in.gdal (which compiles fine!), but I ran into troubles with GDAL lib itself: cat gdal-config.in >> gdal-config chmod a+x gdal-config gcc -I/home/neteler/gdal-1.1.0 -I/home/neteler/gdal-1.1.0/port -I/home/neteler/gdal-1.1.0/core -I/home/neteler/gdal-1.1.0/ogr -I/home/neteler/gdal-1.1.0/frmts -c -Wall -fPIC -O2 gdalinfo.c -o gdalinfo.o gdalinfo.c: In function ^Main': gdalinfo.c:217: warning: too few arguments for format c++ gdalinfo.o /home/neteler/gdal-1.1.0/gdal.a /home/neteler/gdal-1.1.0/ogr/ogr.a /home/neteler/gdal-1.1.0/frmts/o/*.a /home/neteler/gdal-1.1.0/gdal.a /home/neteler/gdal-1.1.0/port/cpl.a -lpng -ldl -lm \ -o gdalinfo /usr/lib/libpng.so: undefined reference to 'crc32' collect2: ld returned 1 exit status make[1]: *** [gdalinfo] Error 1 make[1]: Leaving directory /home/neteler/gdal-1.1.0/apps' make: *** [default] Error 2 Could you advise me to fix the problem? Thanks in advance Markus Neteler
Change History (3)
comment:2 by , 24 years ago
Markus says: Hi Frank, sorry for the delay (I was out of town). ls -l /usr/lib/libpng.* -rw-r--r-- 1 root root 135092 Mar 11 2000 /usr/lib/libpng.a lrwxrwxrwx 1 root root 15 Aug 26 1999 /usr/lib/libpng.so -> libpng.so.2.1.0 lrwxrwxrwx 1 root root 16 Aug 26 1999 /usr/lib/libpng.so.1 -> libpng.so.1.0.89 -rwxr-xr-x 1 root root 104397 Mar 11 2000 /usr/lib/libpng.so.1.0.89 lrwxrwxrwx 1 root root 15 Aug 26 1999 /usr/lib/libpng.so.2 -> libpng.so.2.1.0 -rwxr-xr-x 1 root root 126914 Mar 11 2000 /usr/lib/libpng.so.2.1.0 This is the standard SuSe Linux 6.4 installation. > + Also, could you try adding -lz to the LIBS macro in gdal/GDALmake.opt just > + before -lm? Great! This helps! Compilation finished. Now a problem with installation: make[3]: install-libs.sh: Command not found
comment:3 by , 24 years ago
Markus, Sorry for the delay. I guess you are working from an older tarfile of the source. The current version runs ./install-libs.sh in the gdal/ogr/ogrsf_frmts/sdts/GNUmakefile instead of install-libs.sh. The problem occurs only for folks who don't have "." in their path. Problems resolved, though perhaps there is still an issue with adding -lz to the link line.
Note:
See TracTickets
for help on using tickets.