[xml] compile problem including iconv headers



Hello,
I am working over Windows  Visual Studio 8 platform. I have problems with the libxml2-2.7.8 tryng to compile with iconv enabled; the error is:
..\include\libxml/encoding.h(28) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory

 

Steps:
1) I configured invoking:
cscript configure.js compiler=msvc iconv=yes include=C:\TCMAN2007\TC_Eclipse_Workspace\projects\server_prj\CreateReportNew\libiconv-1.9.1\include lib=C:\TCMAN2007\TC_Eclipse_Workspace\projects\server_prj\CreateReportNew\libiconv-1.9.1\bin debug=yes

 

The config.msvc generated is:

...
DEBUG=1
STATIC=0
PREFIX=.
BINPREFIX=$(PREFIX)\bin
INCPREFIX=$(PREFIX)\include
LIBPREFIX=$(PREFIX)\lib
SOPREFIX=$(PREFIX)\lib
INCLUDE=$(INCLUDE);C:\TCMAN2007\TC_Eclipse_Workspace\projects\server_prj\CreateReportNew\libiconv-1.9.1\include
LIB=$(LIB);C:\TCMAN2007\TC_Eclipse_Workspace\projects\server_prj\CreateReportNew\libiconv-1.9.1\bin
...

 

So that the include settings look ok.
Besides INCLUDE label of my environment is:
INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;

 

2) I compiled invoking:
nmake /f Makefile.msvc

 

The output compile line is:
cl.exe /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS"  /D "NOLIBTOOL" /W1 /MD /I.. /I..\include /I.\include /D "_REENTRANT" /D "HAVE_WIN32_THREADS" /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /D "_DEBUG" /Od /Z7 /Foint.msvc\ /c ..\c14n.c ..\catalog.c ..\debugXML.c ..\dict.c ..\DOCBparser.c ..\encoding.c ..\entities.c ..\error.c ..\globals.c ..\hash.c ..\HTMLparser.c ..\HTMLtree.c ..\legacy.c ..\list.c ..\nanoftp.c ..\nanohttp.c ..\parser.c ..\parserInternals.c ..\pattern.c ..\relaxng.c ..\SAX2.c ..\SAX.c ..\schematron.c ..\threads.c ..\tree.c ..\uri.c ..\valid.c ..\xinclude.c ..\xlink.c ..\xmlIO.c ..\xmlmemory.c ..\xmlreader.c ..\xmlregexp.c ..\xmlmodule.c ..\xmlsave.c ..\xmlschemas.c ..\xmlschemastypes.c ..\xmlwriter.c ..\xpath.c ..\xpointer.c ..\xmlstring.c c14n.c

 

The IMPORTANT thing is that includes are not part into compile line (see above: /I.. /I..\include /I.\include). I tried to overtake the problem in a lot of way but I was not able to do it.
I had a look to the Makefile.mvsc at line 47 and I wonder why the CFLAGS compositon is done using the $(INCPREFIX) instead of the the $(INCLUDE).

 

There is anyone that can give me help?
Thanks in advance.

 

Paolo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]