compiling MapServer in Win XP

Andreas Albarello andreas.albarello at TERRITORIUMONLINE.COM
Sun Jul 9 04:09:33 PDT 2006


Giuseppe De Rossi wrote:
> Hi I've installed VC7 and cut most of libraries in the make.opt file so to
> obtain the simplest version possibile. 
> After a lot of test now I got:
> 
> LINK : warning LNK4044: unrecognized option "libjpeg.lib"; ignored
> LINK : warning LNK4044: unrecognized option "objs/freetype2110.lib"; ignored
> LINK : warning LNK4044: unrecognized option "libjpeg.lib"; ignored
> LINK : warning LNK4044: unrecognized option "gdal_i.lib"; ignored
> LINK : warning LNK4044: unrecognized option "gdal_i.lib"; ignored
> LINK : warning LNK4044: unrecognized option "libcurl.lib"; ignored
> LINK : warning LNK4044: unrecognized option "src/libming.lib"; ignored
> LINK : warning LNK4044: unrecognized option "lib/pdflib.lib"; ignored
> LINK : warning LNK4044: unrecognized option
> "src/interfaces/libpq/release/libpqd
> ll.lib"; ignored
>    Creating library mapserver_i.lib and object mapserver_i.exp
> regex.obj : error LNK2001: unresolved external symbol _printchar
> libmap.dll : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: 'link' : return code '0x460'
> Stop.

[...]

> now what drives me crazy is that I can't
> choose
>> the
>> compiling options. If I comment some code lines in make.opt file the
> result
>> id always the same: for example now I'd like to disable the Ming compiling
>> option but in both the situations in the make.opt:
>>
>> MING=-DUSE_MING_FLASH
>> MING_DIR=$(MS_BASE)..ming-0.2a
>>
>> and 
>>
>> # MING=-DUSE_MING_FLASH
>> # MING_DIR=$(MS_BASE)..ming-0.2a
>>
>> the result is an error becouse the ming.h file is not found. 
>> I've solved th iconv.h error by installing the right directory.
>>
>> Now How do I have to do to disable an option, what file do I have to edit
> ?

Giuseppe,

there still seem to be some problems with your makefile - you shouldn't 
get any "unrecognized option" warning when compiling.

Besides, it looks like there are some issues when linking with the regex 
library provided that this is not a side effect of some other error 
somewhere else. This could however be a problem with VC7 since, as far 
as I know, people out there have experienced some troubles 
compiling/linking regex with recent versions of Visual C (after VC6), 
but I might be wrong on that and this could in particular not apply to VC7.

However, I personally have always been successfully compiling Mapserver 
with VC6, so, given the errors you reported in an earlier post, I 
suggest you have a closer look at your makefile, and especially at your 
nmake.opt file. For instance, I noticed that you were referring to a non 
existent make.opt file. Note that this file is actually called nmake.opt 
including the leading "n". If you feel like the options from that file 
are ignored by the compiler, check its filename (nmake.opt) and do a 
clean (nmake /f makefile.vc clean) immediately after any change to that 
file.

I would add some obvious suggestions like checking you are in the right 
directory, you are editing the right file etc. Too often things go wrong 
due to some really silly mistakes. You might want to unpack Mapsever to 
a different directory and start from scratch paying attention to every 
detail.

Hope this helps.

Best regards,
-- 
--------------------------------------------------------------------
Andreas Albarello
Analysis & SW Development

Territorium Online srl/GmbH
Via Buozzi/Buozzistraße 12 - I 39100 Bolzano/Bozen
email: andreas.albarello at territoriumonline.com
web:   www.territoriumonline.com
--------------------------------------------------------------------



More information about the MapServer-users mailing list