I have to say that we do nothing to our builds to get them working. We just extract the xerces binaries and set the xerces-home variable. It's interesting that someone else had the exact same problem as you today ! I don't know what we've done right (or wrong) - we've been doing this for too long !
| "Frank Voellmann \(fvoellma\)"
<[EMAIL PROTECTED]>
23/03/2006 15:53
|
|
I do have that binary installed, and I do have the %XERCES_HOME%\include directory.
My problem is/was twofold.
First I copied xerces distribution include files under c\include as c\include\xercesc because of build issues ... this was bad for generateCHeaders and caused the Java NullPointerException. Solution, if it hurts when you do that, don't do that!
Second, files such as ParserLoader.cpp (see previous email)include a "local (axis, not xerces)" file XercesHandler.h (C:\axiscsrc\ws-axis\c\src\xml\xerces\XercesHandler.h for me). This file in turn includes 'xercesc/sax/HandlerBase.hpp' which doesn't exist "locally" or in the xerces distribution. The xerces distribution does provide this file under %XERCES_HOME%\include\sax, not %XERCES_HOME%\include\xercesc\sax.
(I presume a fix might be to search and replace all xercesc/whatever/filename to whatever/filename.)
What I did to temporarily get my builds successful, was to modify the xerces distribution install; I created %XERCES_HOME%\include\xercesc\ and moved all the %XERCES_HOME%\include\ directories under it.
Please let me know if your builds are sucessful for the same reason or if I still have something wrong, Thanks
-Frank
From: John Hawkins [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 3:54 AM
To: Apache AXIS C User List
Subject: RE: Axis C++ 1.6B Ant build failure at generateCHeaders
xerces_home=<install root for xerces> The binaries from http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_2_0/ give me the include directory - maybe you don't have binaries?
| "Frank Voellmann \(fvoellma\)"
<[EMAIL PROTECTED]>
22/03/2006 19:03
|
|
Doing that causes the errors below. Admittedly, I'm a newbie to building
on windows (and Ant) ...
Newbie Q. In your build, how are the following references resolved? For
instance, \include\xercesc doesn't exist and
%XERCES_HOME%\include\xercesc doesn't exist in the xerces distribution.
-Frank
compileAxisXMLParser:
buildVersionResource:
[delete] Deleting 2 files from C:\axiscsrc\ws-axis\c\build
[copy] Copying 1 file to C:\axiscsrc\ws-axis\c\build
[cc] 6 total files to be compiled.
[cc] ParserLoader.cpp
[cc] C:\axiscsrc\ws-axis\c\src\xml\xerces\XercesHandler.h(25) :
fatal error C1083: Cannot open include
file: 'xercesc/sax/HandlerBase.hpp': No such file or directory
[cc] SoapInputSource.cpp
[cc] C:\axiscsrc\ws-axis\c\src\xml\xerces\SoapInputSource.h(29) :
fatal error C1083: Cannot open includ
e file: 'xercesc/sax/InputSource.hpp': No such file or directory
[cc] XMLParserXerces.cpp
[cc] C:\axiscsrc\ws-axis\c\src\xml\xerces\XercesHandler.h(25) :
fatal error C1083: Cannot open include
file: 'xercesc/sax/HandlerBase.hpp': No such file or directory
[cc] SoapBinInputStream.cpp
[cc]
C:\axiscsrc\ws-axis\c\src\xml\xerces\SoapBinInputStream.h(27) : fatal
error C1083: Cannot open inc
lude file: 'xercesc/util/BinInputStream.hpp': No such file or directory
[cc] XercesHandler.cpp
[cc] C:\axiscsrc\ws-axis\c\src\xml\xerces\XercesHandler.h(25) :
fatal error C1083: Cannot open include
file: 'xercesc/sax/HandlerBase.hpp': No such file or directory
[cc] AxisParseException.cpp
[cc] Generating Code...
BUILD FAILED
> -----Original Message-----
> From: Nadir Amra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 22, 2006 11:57 AM
> To: Apache AXIS C User List
> Subject: RE: Axis C++ 1.6B Ant build failure at generateCHeaders
>
> I think the C generator tool is going through header files
> that it should
> not. The only thing that I have in c/include is Axis dir.
> Try removing
> the other include files to another dir outside of the
> c/include dir. The
> tool should be fixed to only go through Axis dirs....
>
> Obviously, the package error would also need to be modified
> to detect C
> bindingings not being generated.
>
> Nadir K. Amra
>
>
