You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by "Chinthana C. Dinapala" <cd...@gmail.com> on 2005/02/03 06:35:01 UTC

Ant build failed in windows

hi guys,

i try to build in ant and it gave folloving error.

C:\build\ws-axis\c>ant
Buildfile: build.xml

pre-init:

set-platform-specifics:

checkIfDebug:

initialize:

build:

compile:

compileClient:

compileAxisClient:
    [mkdir] Created dir: C:\obj\objects
    [mkdir] Created dir: C:\obj\bin
       [cc] 125 total files to be compiled.

BUILD FAILED
C:\build\ws-axis\c\build.xml:197: The following error occurred while executing t
his line:
C:\build\ws-axis\c\build.xml:185: The following error occurred while executing t
his line:
C:\build\ws-axis\c\build.xml:56: The following error occurred while executing th
is line:
C:\build\ws-axis\c\build\buildClient.xml:20: Could not launch cl: java.io.IOExce
ption: CreateProcess: cl /nologo /MD /W3 /GX /Od /FD /c /c /nologo /GX /DNDEBUG
/MD /DAXIS_CLIENT_LIB /DWIN32 /DNDEBUG /D_WINDOWS /D_MBCS /D_USRDLL /DENABLE_AXI
S_EXCEPTION /DAXISCLIENTDLL_EXPORTS /IC:\build\ws-axis\c\include C:\build\ws-axi
s\c\src\soap\SoapBody.cpp C:\build\ws-axis\c\src\soap\xsd\XSD_QName.cpp C:\build
\ws-axis\c\src\soap\xsd\Date.cpp C:\build\ws-axis\c\src\soap\xsd\constraints\Whi
teSpace.cpp C:\build\ws-axis\c\src\common\AxisGenException.cpp C:\build\ws-axis\
c\src\soap\ComplexElement.cpp C:\build\ws-axis\c\src\engine\HandlerPool.cpp C:\b
uild\ws-axis\c\src\soap\xsd\Decimal.cpp C:\build\ws-axis\c\src\soap\xsd\constrai
nts\Pattern.cpp C:\build\ws-axis\c\src\engine\SessionScopeHandlerPool.cpp C:\bui
ld\ws-axis\c\src\common\AxisUserAPI.cpp C:\build\ws-axis\c\src\soap\BasicNode.cp
p C:\build\ws-axis\c\src\engine\SharedObject.cpp C:\build\ws-axis\c\src\soap\xsd
\Long.cpp C:\build\ws-axis\c\src\soap\SoapDeSerializer.cpp C:\build\ws-axis\c\sr
c\soap\SoapMethod.cpp C:\build\ws-axis\c\src\common\AxisUtils.cpp error?

Total time: 2 seconds
C:\build\ws-axis\c>

thanks

chinthana

Re: Ant build failed in windows

Posted by Adrian Dick <ad...@uk.ibm.com>.
Hi,

Based on this error, I would suggest either:
a)  Microsoft Visual C++ has not been installed
b) It is installed, but the command line tools (as used under-the-covers by
ANT) have not been correctly initialized.  I believe you should have the
following environment variables configured:
      %include%   ( [VC install dir]/include )
      %lib%       ( [VC install dir]/lib )
      %PATH%      ( [VC install dir]/bin;[MSDev
dir]/common/MSDev98/bin;[MSDev dir]/common/Tools;[MSDev
dir]/common/Tools/WinNT )

Regards,
Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)

"Chinthana C. Dinapala" <cd...@gmail.com> wrote on 03/02/2005 05:35:01:

> hi guys,
>
> i try to build in ant and it gave folloving error.
>
> C:\build\ws-axis\c>ant
> Buildfile: build.xml
>
> pre-init:
>
> set-platform-specifics:
>
> checkIfDebug:
>
> initialize:
>
> build:
>
> compile:
>
> compileClient:
>
> compileAxisClient:
>     [mkdir] Created dir: C:\obj\objects
>     [mkdir] Created dir: C:\obj\bin
>        [cc] 125 total files to be compiled.
>
> BUILD FAILED
> C:\build\ws-axis\c\build.xml:197: The following error occurred while
> executing t
> his line:
> C:\build\ws-axis\c\build.xml:185: The following error occurred while
> executing t
> his line:
> C:\build\ws-axis\c\build.xml:56: The following error occurred while
> executing th
> is line:
> C:\build\ws-axis\c\build\buildClient.xml:20: Could not launch cl:
> java.io.IOExce
> ption: CreateProcess: cl /nologo /MD /W3 /GX /Od /FD /c /c /nologo
> /GX /DNDEBUG
> /MD /DAXIS_CLIENT_LIB /DWIN32 /DNDEBUG /D_WINDOWS /D_MBCS /D_USRDLL
> /DENABLE_AXI
> S_EXCEPTION /DAXISCLIENTDLL_EXPORTS /IC:\build\ws-axis\c\include C:
> \build\ws-axi
> s\c\src\soap\SoapBody.cpp C:\build\ws-axis\c\src\soap\xsd\XSD_QName.
> cpp C:\build
> \ws-axis\c\src\soap\xsd\Date.cpp C:\build\ws-
> axis\c\src\soap\xsd\constraints\Whi
> teSpace.cpp C:\build\ws-axis\c\src\common\AxisGenException.cpp C:
> \build\ws-axis\
> c\src\soap\ComplexElement.cpp C:\build\ws-
> axis\c\src\engine\HandlerPool.cpp C:\b
> uild\ws-axis\c\src\soap\xsd\Decimal.cpp C:\build\ws-
> axis\c\src\soap\xsd\constrai
> nts\Pattern.cpp C:\build\ws-
> axis\c\src\engine\SessionScopeHandlerPool.cpp C:\bui
> ld\ws-axis\c\src\common\AxisUserAPI.cpp C:\build\ws-
> axis\c\src\soap\BasicNode.cp
> p C:\build\ws-axis\c\src\engine\SharedObject.cpp C:\build\ws-
> axis\c\src\soap\xsd
> \Long.cpp C:\build\ws-axis\c\src\soap\SoapDeSerializer.cpp C:
> \build\ws-axis\c\sr
> c\soap\SoapMethod.cpp C:\build\ws-axis\c\src\common\AxisUtils.cpp error?
>
> Total time: 2 seconds
> C:\build\ws-axis\c>
>
> thanks
>
> chinthana