[TinyOWS-dev] Building TinyOWS from sources on Windows

Alexander Bruy alexander.bruy at gmail.com
Thu Apr 21 01:26:36 EST 2011


Hi list,

I try to build TinyOWS from svn (r440) on Windows  with MS Visual
Studio 2008 Express.
I install PostgreSQL 9 and PostGIS 1.5, also there is OSGeo4W
installation with libxml2
and regexp (includes and lib files).

Then I edit nmake.opt and setup path for all components. When I run
nmake from VS command
promp I get this message

F:\tinyows\build>nmake Makefile.vc



Microsoft (R) Program Maintenance Utility   Version 7.00.8882

Copyright (C) Microsoft Corp 1988-2000. All rights reserved.



        copy /y src\ows_define.h.in src\ows_define.h

Files copied:         1.

NMAKE : fatal error U1073: don't know how to make 'src\sld\sld.h'

Stop.


Well, I search source dir and seems that there is no src\sld\sld.h,
so I remove all references to this file from Makefile and run nmake again.
Here is output:

F:\tinyows\build>nmake Makefile.vc



Microsoft (R) Program Maintenance Utility   Version 7.00.8882

Copyright (C) Microsoft Corp 1988-2000. All rights reserved.



        copy /y src\ows_define.h.in src\ows_define.h

Files copied:         1.

        cl /nologo /Ox /MD /W3 /DDEBUG /EHsc -Ic:\OSGeo4W\include\regex-0.12 -Ic

:\Program Files\PostgreSQL\9.0\lib\libpq -Ic:\Program Files\PostgreSQL\9.0\inclu

de -Ic:\OSGeo4W\include -Ic:\OSGeo4W/include/libxml -DHAVE_STRING_H -DREGEX_MALL

OC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_POST

GIS   -DENABLE_STDERR_DEBUG -DUSE_ICONV -DUSE_LIBXML2 -DWIN32 -D_WIN32 /c src\fe

\fe_comparison_ops.c /Fosrc\fe\fe_comparison_ops.obj

cl : Command line warning D9024 : unrecognized source file type 'Files\PostgreSQ

L\9.0\lib\libpq', object file assumed

cl : Command line warning D9027 : source file 'Files\PostgreSQL\9.0\lib\libpq' i

gnored

cl : Command line warning D9024 : unrecognized source file type 'Files\PostgreSQ

L\9.0\include', object file assumed

cl : Command line warning D9027 : source file 'Files\PostgreSQL\9.0\include' ign

ored

fe_comparison_ops.c

f:\tinyows\build\src\ows\../ows_define.h(27) : error C2018: unknown character '0

x40'

f:\tinyows\build\src\ows\../ows_define.h(27) : error C2018: unknown character '0

x40'

f:\tinyows\build\src\fe\../ows/ows.h(32) : error C2018: unknown character '0x40'



f:\tinyows\build\src\fe\../ows/ows.h(32) : error C2018: unknown character '0x40'



NMAKE : fatal error U1077: 'cl' : return code '0x2'

Stop.

Any hints how to build TinyOWS from sources on Windows?

Thanks
-- 
Alexander Bruy


More information about the TinyOWS-dev mailing list