Ticket #680 (closed defect: fixed)
[MapServer]Variables not read when building python mapscript
| Reported by: | nsavard@… | Owned by: | sgillies@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | MapScript-SWIG | Version: | 4.2 |
| Severity: | normal | Keywords: | |
| Cc: | sgillies@… |
Description
Variables on line two of "mapscriptvars" file not read when building python mapscript. This causes some problem when using non standard library location. I included the "mapscriptvars" file and error message when starting the building process. The command use is "python setup.py build". ------------------------- mapscriptvars: [nsavard@localhost src]$ more mapscriptvars /opt/mapserver_42/src -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -I. -I/usr/local//include -I/usr//include -I/opt/gdal_12//include -L. -lmap -L/usr//lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -L/usr/local//lib -lproj -ljpeg -L/opt/gdal_12//lib -lgdal -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lm -lstdc++ ---------------- Error message: [nsavard@localhost python]$ python setup.py build running build running build_py creating build creating build/lib.linux-i686-2.2 copying mapscript.py -> build/lib.linux-i686-2.2 running build_ext building '_mapscript' extension creating build/temp.linux-i686-2.2 gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -I/usr/include/python2.2 -I/usr/include/python2.2 -c mapscript_wrap.c -o build/temp.linux-i686-2.2/mapscript_wrap.o In file included from mapscript_wrap.c:739: ../../map.h:61:21: ogr_api.h: No such file or directory In file included from mapscript_wrap.c:739: ../../map.h:1158: error: syntax error before "hGeometry" In file included from mapscript_wrap.c:741: ../../mapogcsld.h:72:25: cpl_minixml.h: No such file or directory I
Change History
Note: See
TracTickets for help on using
tickets.
