RES: RES: RES: RES: [Gdal-dev] Compiling GDAL

Gabriel Moricz gabriel at autofax.com.br
Wed Apr 14 13:52:52 EDT 2004


Sorry Frank...

do u have any e-mail that I can ask directly for u???

But..well...teh answer about the questions

  o what does "/usr/local/bin/gdal-config --libs" report?
	-L/usr/local/lib -lgdal
  o what link line was used by MapServer?
      Well...I did not find it...u mean the -lgdal, dont u??
  o What version of MapServer are you using?  4.0.2 includes a configuration
    related fix for GDAL 1.2.0 compatibility.
      MapServer = 4.0.2 and GDAL=1.2.0


And the error before the "undefined reference to..." is:
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_AP
I_H -DUSE_WMS_SVR -DUSE_WMS_LYR   -DUSE_MING_FLASH  -DUSE_TIFF -DUSE_JPEG -D
USE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF   -DUSE_GDAL -D
USE_POSTGIS    -I/usr/local/include  -I/usr/local/include        -I/usr/loca
l/include -I/usr/local/pgsql/include  -I/usr/local/include   shp2img.c -o
shp2img.o
gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H
 -DUSE_WMS_SVR -DUSE_WMS_LYR   -DUSE_MING_FLASH  -DUSE_TIFF -DUSE_JPEG -DUSE
_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF   -DUSE_GDAL -DUSE
_POSTGIS    -I/usr/local/include  -I/usr/local/include        -I/usr/local/i
nclude -I/usr/local/pgsql/include  -I/usr/local/include

hp2img.o  -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz   -lpd
f -ltiff -ljpeg -lfreetype -lpng -lz   -L/usr/local/lib -lproj -ljpeg    -lm
ing -L/usr/local/pgsql/lib -lpq  -L/usr/local/lib -lcurl -lssl -lcrypto -ldl
 -lz    -lm   -o shp2img
./libmap.a(mapgdal.o): In function `msGDALInitialize':

And sorry...about send it in this list...please, if u can, coucd u help me
by personal e-mail???


Very Thanks

Gabriel Moricz


-----Mensagem original-----
De: gdal-dev-admin at remotesensing.org
[mailto:gdal-dev-admin at remotesensing.org]Em nome de Frank Warmerdam
Enviada em: quarta-feira, 14 de abril de 2004 13:24
Para: gdal-dev at remotesensing.org
Assunto: Re: RES: RES: RES: [Gdal-dev] Compiling GDAL


Gabriel Moricz wrote:
> Hello Frank...
>
> Well...I have compiled GDAL, and now trying to compile MapServer...
>
> well it gave a error like always
>
> My configure Was:
>
./configure --with-gd=/usr/local --with-proj=/usr/local --with-gdal=/usr/loc
>
al/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-curl-config=
>
/usr/local/bin --with-wmsclient --with-ming --with-postgis=/usr/local/pgsql/
> bin/pg_config --with-wms --with-wfsclient --with-httpd=/usr/sbin/apache
>
> the mapserver error is very big:
> ./libmap.a(mapgdal.o): In function `msGDALInitialize':
> mapgdal.o(.text+0x10): undefined reference to `GDALAllRegister'
> mapgdal.o(.text+0x18): undefined reference to `CPLQuietErrorHandler'
...
> Do u have any idea why does it happened???

Gabriel,

I would suggest we take this off the gdal-dev list.

BTW, you omitted the all important link line from just before the link
errors.  I would imagine that the GDAL library was not included for
some reason.  It would be helpful for you to indicate:

  o what does "/usr/local/bin/gdal-config --libs" report?
  o what link line was used by MapServer?
  o What version of MapServer are you using?  4.0.2 includes a configuration
    related fix for GDAL 1.2.0 compatibility.

Don't be too scared of the MapServer Makefile.  You can always edit it
after the configure to fix things up a bit.

Best regards,
--
---------------------------------------+------------------------------------
--
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list