Re: cpptasks: Problem with MinGW on Windows Vista

Jon Kristensen <[email protected]> Tue, 23 Sep 2008 20:55:36 +0200
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Oh, I found something interesting now. I think someone here knows what 
to do about this.

If I change

    <fileset dir="${ogre4j.src.c}/src" includes="class_org_ogre4j_*.cpp"/>

to

    <fileset dir="${ogre4j.src.c}/src" includes="class_org_ogre4j_A*.cpp"/>

it starts the compiler but obviously fails later on as all the files 
didn't get included.

I really hope someone here knows what to do!

Thanks!

/Jon

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!
>
> /Jon
>
> *) The ogre4j project can be found at http://ogre4j.sourceforge.net/.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ant-contrib-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/