Compile errors building Python Mapscript using win32 buildkit

Jeff McKenna jmckenna at DMSOLUTIONS.CA
Wed May 31 10:45:03 EDT 2006


thanks Howard, that was it exactly.

jeff



Howard Butler wrote:
> Jeff,
> 
> Our latest change to the buildkit (the -2 version) statically links in 
> GD and we removed the exporting of those symbols into mapserver_i by 
> nuking the mapserver.def.  You have to link libgd into Python MapScript 
> now because it uses some of GD's functions for freeing images and 
> working with symbols.
> 
> It should be as simple as changing the windows libs line from 
> ['mapserver_i'] to ['mapserver_i','gd'].  I must have made this change 
> but not committed it to cvs :(
> 
> Howard
> 
> At 10:15 AM -0400 5/31/06, Frank Warmerdam wrote:
>> Jeff McKenna wrote:
>>> When building Python Mapscript, with MapServer CVS head, I get the 
>>> following compile errors (other mapscripts build fine, and for ms 
>>> 4.8.3 this does not occur):
>>>
>>>    C:\Program Files\Microsoft Visual Studio .NET 
>>> 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\postgresql-8.1.2/src/interfaces/libpq/release 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\gd-2.0.33 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\zlib-1.2.3 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\geos-2.2.2/source 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\jpeg-6b 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\proj-4.4.9/src 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\curl-7.15.0 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\libiconv-1.9.1\lib 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\freetype-2.1.10/objs 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\ming-0.2a/src 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\mapserver\..\gdal-1.3.2 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\Python-2.4.2\libs 
>>> /LIBPATH:D:\build\mapserver-buildkit-4.8.3-2\buildkit\Python-2.4.2\PCBuild 
>>> mapserver_i.lib /EXPORT:init_mapscript 
>>> build\temp.win32-2.4\Release\mapscript_wrap.obj 
>>> build\temp.win32-2.4\Release\pygdioctx/pygdioctx.obj 
>>> /OUT:build\lib.win32-2.4\_mapscript.pyd 
>>> /IMPLIB:build\temp.win32-2.4\Release\_mapscript.lib
>>>    Creating library build\temp.win32-2.4\Release\_mapscript.lib and 
>>> object build\temp.win32-2.4\Release\_mapscript.exp
>>> mapscript_wrap.obj : error LNK2019: unresolved external symbol 
>>> _gdFree referenced in function _imageObj_write
>>> mapscript_wrap.obj : error LNK2019: unresolved external symbol 
>>> _gdImageDestroy referenced in function _delete_symbolObj
>>> build\lib.win32-2.4\_mapscript.pyd : fatal error LNK1120: 2 
>>> unresolved externals
>>
>> Jeff,
>>
>> I'm running into a related problem with my last FWTools build.  I'll 
>> dig into
>> it this morning and see what I can find.  I think Howard did some 
>> cleanup of
>> goofy .def entries for libmap.dll that may be related.
>>
>> 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    | President OSGF, http://osgeo.org
> 



More information about the mapserver-dev mailing list