JOGL not building

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL not building

Luke
Hey I can't seem to get JOGL to build on my Mac. The errors are:


java.generate.cleantemp:
    [javac] Compiling 17 source files to /Users/lswith/jogamp/jogl/build/jogl/classes
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:235: 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/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:72: 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/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:119: canCreateGLPbuffer(javax.media.opengl.AbstractGraphicsDevice) in javax.media.opengl.GLDrawableFactory cannot be applied to (javax.media.nativewindow.AbstractGraphicsDevice)
    [javac]     if (!canCreateGLPbuffer(target.getGraphicsConfiguration().getNativeGraphicsConfiguration().getScreen().getDevice())) {
    [javac]          ^
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java:81: 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 = getNativeWindow().getGraphicsConfiguration().getScreen().getDevice();
    [javac]                 ^
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java:141: 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 = getNativeWindow().getGraphicsConfiguration().getScreen().getDevice();
    [javac]             ^
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLContextImpl.java:455: 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.getNativeWindow().getGraphicsConfiguration().getNativeGraphicsConfiguration();
    [javac]     ^
    [javac] 6 errors

BUILD FAILED
/Users/lswith/jogamp/jogl/make/build.xml:37: The following error occurred while executing this line:
/Users/lswith/jogamp/jogl/make/build-jogl.xml:1011: Compile failed; see the compiler error output for details.


Hopefully you guys can help or get it fixed?
Reply | Threaded
Open this post in threaded view
|

Re: JOGL not building

Michael Bien
hmm, builds fine on our mac:
http://jogamp.org/chuck/job/jogl/label=macosx-10_6-x86_64/157/console

have you followed the build howto? jdk version etc would be interesting.

regards,
michael

On 08/10/2010 06:23 PM, Luke [via jogamp] wrote:
Hey I can't seem to get JOGL to build on my Mac. The errors are:


java.generate.cleantemp:
    [javac] Compiling 17 source files to /Users/lswith/jogamp/jogl/build/jogl/classes
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:235: 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/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:72: 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/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java:119: canCreateGLPbuffer(javax.media.opengl.AbstractGraphicsDevice) in javax.media.opengl.GLDrawableFactory cannot be applied to (javax.media.nativewindow.AbstractGraphicsDevice)
    [javac]     if (!canCreateGLPbuffer(target.getGraphicsConfiguration().getNativeGraphicsConfiguration().getScreen().getDevice())) {
    [javac]          ^
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java:81: 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 = getNativeWindow().getGraphicsConfiguration().getScreen().getDevice();
    [javac]                 ^
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableImpl.java:141: 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 = getNativeWindow().getGraphicsConfiguration().getScreen().getDevice();
    [javac]             ^
    [javac] /Users/lswith/jogamp/jogl/src/jogl/classes/com/jogamp/opengl/impl/GLContextImpl.java:455: 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.getNativeWindow().getGraphicsConfiguration().getNativeGraphicsConfiguration();
    [javac]     ^
    [javac] 6 errors

BUILD FAILED
/Users/lswith/jogamp/jogl/make/build.xml:37: The following error occurred while executing this line:
/Users/lswith/jogamp/jogl/make/build-jogl.xml:1011: Compile failed; see the compiler error output for details.


Hopefully you guys can help or get it fixed?



View message @ http://jogamp.762907.n3.nabble.com/JOGL-not-building-tp1075280p1075280.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
http://michael-bien.com/
Reply | Threaded
Open this post in threaded view
|

Re: JOGL not building

SonglinPiao
In reply to this post by Luke
From the log, it is said that there are two possible jogl references. They are conflicted with each other. Maybe, you should check the classpath again.