RES: [Mapserver-users] Problems Compiling GDAL1.1.9 + MapServer
Gabriel Moricz
gabriel at autofax.com.br
Tue Apr 13 05:42:17 PDT 2004
Hey Daniel...
As I said before...it have worked for gdal, but my mapserver isnt making..
My Configure:
./configure --with-jpeg=/usr --with-freetype=/usr --with-gd=/usr/local --wit
h-freetype=/usr/local --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal
-config --with-ogr=/backup/mapserv/gdal-1.1.9 --with-curl=/usr/local/bin --w
ith-wmsclient --with-ming --with-postgis=/usr/local/pgsql/bin/pg_config --wi
th-wms --with-wfsclient --with-httpd=/usr/sbin/apache
and the error 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_GD_GIF -DUSE_GD
_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -DUSE_GDAL
-DUSE_POSTGIS -I/usr/local/include -I/usr/local/include -I/usr/lo
cal/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_GD_GIF -DUSE_GD_PN
G -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -DUSE_GDAL -D
USE_POSTGIS -I/usr/local/include -I/usr/local/include -I/usr/local
/include -I/usr/local/pgsql/include -I/usr/local/include
hp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpd
f -ljpeg -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg -L/usr/local
/lib -lgdal.1.1 -lming -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lcurl
-lz -ldl -lz -lm -o shp2img
./libmap.a(mappdf.o): In function `msDrawMarkerSymbolPDF':
mappdf.o(.text+0x1b26): undefined reference to `gdImageJpegPtr'
./libmap.a(mappdf.o): In function `msDrawRasterLayerPDF':
mappdf.o(.text+0x22c4): undefined reference to `gdImageJpegPtr'
./libmap.a(mappdf.o): In function `msSaveImagePDF':
mappdf.o(.text+0x2536): undefined reference to `gdImageJpegPtr'
./libmap.a(mappdf.o): In function `msDrawWMSLayerPDF':
mappdf.o(.text+0x2dca): undefined reference to `gdImageJpegPtr'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
And Now...any idea?
Thanksss..
Gabriel Moricz
-----Mensagem original-----
De: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]Em nome de Daniel
Morissette
Enviada em: segunda-feira, 12 de abril de 2004 17:56
Para: Gabriel Moricz
Cc: mapserver-users at lists.gis.umn.edu
Assunto: Re: RES: RES: [Mapserver-users] Problems Compiling GDAL1.1.9 +
MapServer
Gabriel Moricz wrote:
> Thanks For the Light Daniel...
>
> The error have changed now...hehehehehe..
>
> error:
> /usr/bin/ld: warning: libpq.so.3, needed by ../libgdal.1.1.so, not found
> (try using -rpath or -rpath-link)
There seems to be a problem with libpq.so.3 not being found.
Is there a libpq.so.3 in /usr/local/pgsql/lib/ on your system?
There used to be a "-L/usr/local/pgsql/lib -lpq" in your link line
before, is it still there?
Note that for libpq.so.3 to be found at runtime, you'll also need to add
/usr/local/pgsql/lib to /etc/ld.so.conf and then run 'ldconfig' as root.
However that's probably not going to fix your current problem since you
don't have an executable yet.
--
------------------------------------------------------------
Daniel Morissette dmorissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list