Bug 424

Summary: Git source tree fails to build, ambiguous AbstractGraphicsDevice/Configuration
Product: [JogAmp] Jogl Reporter: Robert B <robert.c.baruch>
Component: openglAssignee: Sven Gothel <sgothel>
Status: VERIFIED INVALID    
Severity: blocker    
Priority: ---    
Version: 2   
Hardware: All   
OS: macosx   
Type: --- SCM Refs:
Workaround: ---

Description Robert B 2010-10-27 17:14:00 CEST
Build on OS 10.6 fails with the following error. It's very strange because as far as I can tell, there is no javax.media.opengl.AbstractGraphicsDevice or javax.media.opengl.AbstractGraphicsConfiguration.

    [javac] Compiling 17 source files to /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/classes
    [javac] Using external javac compiler
    [javac] Compilation arguments:
    [javac] '-J-Xmx512m'
    [javac] '-d'
    [javac] '/Users/robertbaruch/Desktop/jogl/jogl/build/jogl/classes'
    [javac] '-classpath'
    [javac] '/Users/robertbaruch/Desktop/jogl/jogl/build/jogl/classes:/Users/robertbaruch/Desktop/jogl/gluegen/build/gluegen-rt.jar:/Users/robertbaruch/Desktop/jogl/jogl/build/nativewindow/nativewindow.all.jar'
    [javac] '-sourcepath'
    [javac] '/Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes:/Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes'
    [javac] '-g:source,lines'
    [javac] '-source'
    [javac] '1.4'
    [javac] 
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.
    [javac] Files to be compiled:
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/javax/media/opengl/GLContext.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/javax/media/opengl/GLDrawable.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/javax/media/opengl/fixedfunc/GLLightingFunc.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/javax/media/opengl/fixedfunc/GLMatrixFunc.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/javax/media/opengl/fixedfunc/GLPointerFunc.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL2.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL2ES1.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL2ES2.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL2GL3.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL3.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL3bc.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL4.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GL4bc.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GLES1.java
    [javac]     /Users/robertbaruch/Desktop/jogl/jogl/build/jogl/gensrc/classes/javax/media/opengl/GLES2.java
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:119: reference to AbstractGraphicsDevice is ambiguous, both class javax.media.opengl.AbstractGraphicsDevice in javax.media.opengl and class javax.media.nativewindow.AbstractGraphicsDevice in javax.media.nativewindow match
    [javac]   public abstract boolean canCreateGLPbuffer(AbstractGraphicsDevice device);
    [javac]                                              ^
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:283: reference to AbstractGraphicsDevice is ambiguous, both class javax.media.opengl.AbstractGraphicsDevice in javax.media.opengl and class javax.media.nativewindow.AbstractGraphicsDevice in javax.media.nativewindow match
    [javac]   public abstract boolean canCreateContextOnJava2DSurface(AbstractGraphicsDevice device);
    [javac]                                                           ^
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:70: reference to AbstractGraphicsConfiguration is ambiguous, both class javax.media.opengl.AbstractGraphicsConfiguration in javax.media.opengl and class javax.media.nativewindow.AbstractGraphicsConfiguration in javax.media.nativewindow match
    [javac]     AbstractGraphicsConfiguration config = target.getGraphicsConfiguration().getNativeGraphicsConfiguration();
    [javac]     ^
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:72: reference to AbstractGraphicsDevice is ambiguous, both class javax.media.opengl.AbstractGraphicsDevice in javax.media.opengl and class javax.media.nativewindow.AbstractGraphicsDevice in javax.media.nativewindow match
    [javac]     AbstractGraphicsDevice adevice = config.getScreen().getDevice();
    [javac]     ^
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java:90: reference to AbstractGraphicsDevice is ambiguous, both class javax.media.opengl.AbstractGraphicsDevice in javax.media.opengl and class javax.media.nativewindow.AbstractGraphicsDevice in javax.media.nativewindow match
    [javac]                 AbstractGraphicsDevice aDevice = getNativeSurface().getGraphicsConfiguration().getScreen().getDevice();
    [javac]                 ^
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java:146: reference to AbstractGraphicsDevice is ambiguous, both class javax.media.opengl.AbstractGraphicsDevice in javax.media.opengl and class javax.media.nativewindow.AbstractGraphicsDevice in javax.media.nativewindow match
    [javac]         AbstractGraphicsDevice aDevice = surface.getGraphicsConfiguration().getScreen().getDevice();
    [javac]         ^
    [javac] /Users/robertbaruch/Desktop/jogl/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLContextImpl.java:456: reference to AbstractGraphicsConfiguration is ambiguous, both class javax.media.nativewindow.AbstractGraphicsConfiguration in javax.media.nativewindow and class javax.media.opengl.AbstractGraphicsConfiguration in javax.media.opengl match
    [javac]     AbstractGraphicsConfiguration config = drawable.getNativeSurface().getGraphicsConfiguration().getNativeGraphicsConfiguration();
    [javac]     ^
    [javac] 7 errors
      [ant] Exiting /Users/robertbaruch/Desktop/jogl/jogl/make/build-jogl.xml.

BUILD FAILED
Comment 1 Robert B 2010-10-28 12:04:51 CEST
Problem was an old version of JOGL in Java's extensions directory. Removed old version, and now it works OK.