Cannot run gcc while building GlueGen

  3 posts   Feedicon  
Replies: 2 - Last Post: May 06, 2010 00:00
by: Zorrent12
showing 1 - 3 of 3
 
Posted: April 08, 2010 18:48 by Zorrent12
I've managed to get the antlr.tool problem fixed, but now I have another error:
...
c.configure:

c.build:
        [echo] Output lib name = gluegen-rt
        [echo] Compiling src/native/windows*.c
        [echo] user.dir=C:\Users\Kenny\Desktop\Workspace\gluegen\make
            [cc] 1 total files to be compiled

BUILD FAILED
C:\Users\Kenny\Desktop\Workspace\gluegen\make\build.xml:492: The following error occured while executing this line:
C:\Users\Kenny\Desktop\Workspace\gluegen\make\build.xml:402: The following error occured while executing this line:
C:\Users\Kenny\Desktop\Workspace\gluegen\make\build.xml:366: Could not launch gcc: java.io.IOException: Cannot run program "gcc" (in directory "C:\Users\Kenny\Desktop\Workspace\gluegen\build\obj"): CreateProcess error=2, The system cannot find the file spcified

I think this means it can't find gcc. I've tried copying gcc to the folder obj, adding it to my classpath, and both at the same time. I can't seem to find a property that I can use to tell gluegen where to find gcc. Can someone tell me how I can point out gcc's location for it? Unless that isn't the problem, that is.

Here's the bit of code I think is causing problems:

      <cc outtype="shared" 
          objdir="../${rootrel.build}/obj" 
          outfile="../${rootrel.build}/obj/${output.lib.name}"
          optimize="${c.compiler.optimise}" 
          debug="${c.compiler.debug}"
          multithreaded="true" 
          exceptions="false" 
          rtti="false">   
 
Posted: April 25, 2010 22:24 by Michael Bien
please add gcc to the PATH environment variable.
http://vlaurie.com/computers2/Articles/environment.htm
 
Posted: May 06, 2010 00:00 by Zorrent12
When I included gcc in my path declaration for ant, I got the same result. But thanks for answering. Seriously, I thought I was never going to get a response.
Replies: 2 - Last Post: May 06, 2010 00:00
by: Zorrent12
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close