[Mapserver-users] error compiling --with-pdf
Dylan Keon
keon at nacse.org
Wed Jan 29 16:58:32 PST 2003
Daniel Morissette wrote:
> Dylan Keon wrote:
>
>>I'm getting the "/usr/bin/ld: cannot find -lPDF" error when trying to
>>compile 3.7 CVS --with-pdf=/opt/apps. libpdf.a and libpdf.so are under
>>/opt/apps/lib, and /opt/apps/lib is already listed in /etc/ld.so.conf.
>>And ldconfig has been run.
>
> Does the link command include -L/opt/apps/lib ? If it doesn't then
> perhaps there is a configure or Makefile problem for the PDF option.
Here's the PDF section of the Makefile (I changed -lPDF to -lpdf, and
added mappdf.o):
PDF_INC= -I/opt/apps/include
PDF_LIB= -L/opt/apps/lib -lpdf
PDF= -DUSE_PDF
PDF_OBJ= mappdf.o
---------------------------------------------------------------
gcc -fPIC -g -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DENABLE_STDERR_DEBUG
-DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS
-DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_PROJ_API_H
-DUSE_EPPL -DUSE_PDF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DUSE_JPEG -I/opt/src/ms_cvs_01-28-03
-I/opt/apps/include -I/opt/src/gdal-1.1.8/port
-I/opt/src/gdal-1.1.8/core -I/opt/src/gdal-1.1.8/ogr
-I/opt/src/gdal-1.1.8/ogr/ogrsf_frmts
-I/opt/src/gdal-1.1.8/ogr/ogrsf_frmts -I/opt/src/gdal-1.1.8/ogr
-I/opt/src/gdal-1.1.8/ogr/../port -I/opt/apps/include
-I/opt/apps/include -I/opt/apps/include -I/opt/apps/include
-I/opt/src/php-4.2.3 -I/opt/src/php-4.2.3/dl -I/opt/src/php-4.2.3/main
-I/opt/src/php-4.2.3/Zend -I/opt/src/php-4.2.3/include
-I/opt/src/php-4.2.3/TSRM -c -o mapscript_i.o mapscript_i.c
/opt/src/ms_cvs_01-28-03/maptemplate.h:16: warning: `inchesPerUnit'
defined but not used c++ -shared -o php_mapscript.so
php_mapscript_util.o php_mapscript.o mapscript_i.o
-L/opt/src/ms_cvs_01-28-03 -lmap -L/usr/lib -lcurl -lz -ldl -lz
-L/opt/apps/lib -lpq -L/opt/src/gdal-1.1.8 -lgdal.1.1 -L/opt/apps
-L/opt/apps/lib -ljpeg -L/opt/apps -L/opt/apps/lib -lpng -L/opt/apps
-L/opt/apps -lz -lm -ldl -L/usr/local/lib -lm -lpthread
-L/opt/apps/lib -lproj -L/opt/apps/lib -ljpeg -L/opt/apps/lib
-lfreetype -L/opt/apps/lib -lpng -L/opt/apps/lib -lz -L/usr/X11R6/lib
-lXpm -lX11 -L/opt/apps/lib -lPDF -L/opt/apps/lib -lgd -L/opt/apps/lib
-ljpeg -L/opt/apps/lib -lfreetype -L/opt/apps/lib -lpng -L/opt/apps/lib
-lz -L/usr/X11R6/lib -lXpm -lX11 -L/opt/apps/lib -ljpeg -lm
/opt/src/gdal-1.1.8/ogr/ogrsf_frmts/ogrsf_frmts.a
/opt/src/gdal-1.1.8/ogr/ogr.a /opt/src/gdal-1.1.8/ogr/../port/cpl.a
/usr/bin/ld: cannot find -lPDF
collect2: ld returned 1 exit status
make[1]: *** [php_mapscript.so] Error 1
More information about the MapServer-users
mailing list