Re: cpptasks: Problem with MinGW on Windows Vista
Jon Kristensen <[email protected]> Tue, 23 Sep 2008 20:15:47 +0200
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
OK, in a desperate attempt to solve my problem I managed to get rid of the "The filename or extension is too long" error by moving the content from "C:\ogre4j\ogre4j-1.4.9-beta5-src" to "C:\a" (!). However, I got a new error: C:\a\build.xml:105: Could not launch g++: java.io.IOException: Cannot run program "g++" (in directory "C:\a\bin\c\release\obj"): CreateProcess error=87, The parameter is incorrect I've been trying to find the cause of this error, and I came up with a couple of interesting sites, none of which helped me though. One idea was not to use * to specify the files (http://www.mail-archive.com/[email protected]/msg78968.html), another was avoiding to use spaces in filenames (http://www.igniterealtime.org/community/thread/32616) and the third (https://woodstock.dev.java.net/issues/show_bug.cgi?id=617) I didn't understand, but maybe you do? If not, do you have any suggestions on what I can do succeed with this build? Thank you in advance! /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=/