On Aug 26, 2008, at 2:34 AM, Jon Kristensen wrote:
> Dear cpptasks developers:
> I'm trying to compile ogre4j* with the MinGW toolset (on Vista).
> ogre4j is meant to be compiled with Visual C++ but I didn't want to
> depend on those libraries. I enabled g++ by modifying a line to say
> "<condition property="cpp.compiler" value="g++">" and typed "ant" in
> the build directory. I got the following output:
> "C:\ogre4j\ogre4j-1.4.9-beta5-src>ant Buildfile: build.xml
> ogre4j.mkdir: ogre4j.build.c: [cc] 749 total files to be compiled.
> BUILD FAILED C:\ogre4j\ogre4j-1.4.9-beta5-src\build.xml:104: Could
> not launch gcc: java.io.IOException: Cannot run program "gcc" (in
> directory "C:\ogre4j\ogre4j-1.4.9-beta5-src\bin\c\release\obj"):
> CreateProcess error=206, The filename or extension is too long Total
> time: 0 seconds"
> What seems to be the problem here? Is there something wrong with the
> ogre4j build file (attached to this e-mail) or is there a problem
> with using MinGW? I have g++ in my path and can compile other
> programs with it.
> Thank you so much in advance!
Very strange. I did a search for that error message and got a hit but
it was related to ColdFusion and .NET which seems to have no
relationship to this problem.
Could you try to run that in an administrator command prompt (right
click on command prompt and select run as admin) and see if it might
be a privilege related issue?
Instead of editing the build.xml file, you could have also specified
the property using:
I'm away from my Vista box at the moment and can't experiment.