Symbols not found trying to build JOGL

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

Symbols not found trying to build JOGL

Qu0ll
I am attempting to build JOGL on this Windows 7 machine but encountered the following errors.  I followed the build instructions accurately and I am using Ant 1.8.1 and Java 6 Update 20 (32-bit).

How can I resolve these errors and get a successful build?

Thanks,

-Qu0ll

java.compile.javase:
    [javac] Compiling 70 source files to D:\JOGL\jogl\build\nativewindow\classes
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\GraphicsConfigurationFactory.java:81: cannot find symbol
    [javac] symbol  : method createInstance(java.lang.String,java.lang.ClassLoader,java.lang.Object[])
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]                     ReflectionUtil.createInstance("com.jogamp.nativewindow.impl.x11.X11GraphicsConfigurationFactory", GraphicsConfigurationFactory.class.getClassLoader(), new Object[] {});
    [javac]                                   ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:119: callStaticMethod(java.lang.String,java.lang.String,java.lang.Class[],java.lang.Object[]) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.String,java.lang.Class[],java.lang.Object[])
    [javac]             ReflectionUtil.callStaticMethod( X11UtilClassName, cl, "initSingleton", new Class[]  { }, new Object[] { } );
    [javac]                           ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:135: isClassAvailable(java.lang.String) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader)
    [javac]                           ReflectionUtil.isClassAvailable(AWTComponentClassName, cl) &&
    [javac]                                         ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:136:isClassAvailable(java.lang.String) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader)
    [javac]                           ReflectionUtil.isClassAvailable("javax.media.nativewindow.awt.AWTGraphicsDevice", cl) ;
    [javac]                                         ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:140: cannot find symbol
    [javac] symbol  : method getClass(java.lang.String,boolean,java.lang.ClassLoader)
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]             registerFactory(ReflectionUtil.getClass(AWTComponentClassName, false, cl), factory);
    [javac]                                           ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\com\jogamp\nativewindow\impl\NativeWindowFactoryImpl.java:90: cannot find symbol
    [javac] symbol  : method getConstructor(java.lang.String,java.lang.ClassLoader,java.lang.Class[])
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]                 nativeWindowConstructor = ReflectionUtil.getConstructor(windowClassName, getClass().getClassLoader(), new Class[] { Object.class, AbstractGraphicsConfiguration.class });
    [javac]                                                         ^
    [javac] 6 errors

BUILD FAILED
D:\JOGL\jogl\make\build.xml:33: The following error occurred while executing this line:
D:\JOGL\jogl\make\build-nativewindow.xml:339: Compile failed; see the compiler error output for details.
Reply | Threaded
Open this post in threaded view
|

Re: Symbols not found trying to build JOGL

Michael Bien
Hello,

the build is fine:
http://jogamp.org/chuck/job/jocl/171/

looking at the compiler error you probably have an old version of jogl.

if you are building jocl please always make sure you pulled gluegen and jogl from my repositories since they may contain changes required for jocl.

http://github.com/mbien

regards,
michael


On 06/29/2010 12:21 PM, Qu0ll [via jogamp] wrote:
I am attempting to build JOGL on this Windows 7 machine but encountered the following errors.  I followed the build instructions accurately and I am using Ant 1.8.1 and Java 6 Update 20 (32-bit).

How can I resolve these errors and get a successful build?

Thanks,

-Qu0ll

java.compile.javase:
    [javac] Compiling 70 source files to D:\JOGL\jogl\build\nativewindow\classes
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\GraphicsConfigurationFactory.java:81: cannot find symbol
    [javac] symbol  : method createInstance(java.lang.String,java.lang.ClassLoader,java.lang.Object[])
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]                     ReflectionUtil.createInstance("com.jogamp.nativewindow.impl.x11.X11GraphicsConfigurationFactory", GraphicsConfigurationFactory.class.getClassLoader(), new Object[] {});
    [javac]                                   ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:119: callStaticMethod(java.lang.String,java.lang.String,java.lang.Class[],java.lang.Object[]) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.String,java.lang.Class[],java.lang.Object[])
    [javac]             ReflectionUtil.callStaticMethod( X11UtilClassName, cl, "initSingleton", new Class[]  { }, new Object[] { } );
    [javac]                           ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:135: isClassAvailable(java.lang.String) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader)
    [javac]                           ReflectionUtil.isClassAvailable(AWTComponentClassName, cl) &&
    [javac]                                         ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:136:isClassAvailable(java.lang.String) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader)
    [javac]                           ReflectionUtil.isClassAvailable("javax.media.nativewindow.awt.AWTGraphicsDevice", cl) ;
    [javac]                                         ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\javax\media\nativewindow\NativeWindowFactory.java:140: cannot find symbol
    [javac] symbol  : method getClass(java.lang.String,boolean,java.lang.ClassLoader)
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]             registerFactory(ReflectionUtil.getClass(AWTComponentClassName, false, cl), factory);
    [javac]                                           ^
    [javac] D:\JOGL\jogl\src\nativewindow\classes\com\jogamp\nativewindow\impl\NativeWindowFactoryImpl.java:90: cannot find symbol
    [javac] symbol  : method getConstructor(java.lang.String,java.lang.ClassLoader,java.lang.Class[])
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]                 nativeWindowConstructor = ReflectionUtil.getConstructor(windowClassName, getClass().getClassLoader(), new Class[] { Object.class, AbstractGraphicsConfiguration.class });
    [javac]                                                         ^
    [javac] 6 errors

BUILD FAILED
D:\JOGL\jogl\make\build.xml:33: The following error occurred while executing this line:
D:\JOGL\jogl\make\build-nativewindow.xml:339: Compile failed; see the compiler error output for details.


View message @ http://jogamp.762907.n3.nabble.com/Symbols-not-found-trying-to-build-JOGL-tp930288p930288.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

Reply | Threaded
Open this post in threaded view
|

Re: Symbols not found trying to build JOGL

Sam Phippen
I am getting the same error trace (but I'm using fedora 13 64 bit)
I am using ant 1.8.1 with sun's jvm
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

and the current git revision of jogl is 33a24c85dd18d851b614359bb6b19535afd56d33

I run
~/apache-ant-1.8.1/bin/ant in (~/jogam/jogl/make/)
here's the output:
java.compile.javase:
    [javac] Compiling 69 source files to /home/sam/jogam/jogl/build/nativewindow/classes
    [javac] /home/sam/jogam/jogl/src/nativewindow/classes/javax/media/nativewindow/GraphicsConfigurationFactory.java:81: cannot find symbol
    [javac] symbol  : method createInstance(java.lang.String,java.lang.ClassLoader,java.lang.Object[])
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]                     ReflectionUtil.createInstance("com.jogamp.nativewindow.impl.x11.X11GraphicsConfigurationFactory", GraphicsConfigurationFactory.class.getClassLoader(), new Object[] {});
    [javac]                                   ^
    [javac] /home/sam/jogam/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java:119: callStaticMethod(java.lang.String,java.lang.String,java.lang.Class[],java.lang.Object[]) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader,java.lang.String,java.lang.Class[],java.lang.Object[])
    [javac]             ReflectionUtil.callStaticMethod( X11UtilClassName, cl, "initSingleton", new Class[]  { }, new Object[] { } );
    [javac]                           ^
    [javac] /home/sam/jogam/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java:135: isClassAvailable(java.lang.String) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader)
    [javac]                           ReflectionUtil.isClassAvailable(AWTComponentClassName, cl) &&
    [javac]                                         ^
    [javac] /home/sam/jogam/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java:136: isClassAvailable(java.lang.String) in com.jogamp.common.util.ReflectionUtil cannot be applied to (java.lang.String,java.lang.ClassLoader)
    [javac]                           ReflectionUtil.isClassAvailable("javax.media.nativewindow.awt.AWTGraphicsDevice", cl) ;
    [javac]                                         ^
    [javac] /home/sam/jogam/jogl/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java:140: cannot find symbol
    [javac] symbol  : method getClass(java.lang.String,boolean,java.lang.ClassLoader)
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]             registerFactory(ReflectionUtil.getClass(AWTComponentClassName, false, cl), factory);
    [javac]                                           ^
    [javac] /home/sam/jogam/jogl/src/nativewindow/classes/com/jogamp/nativewindow/impl/NativeWindowFactoryImpl.java:90: cannot find symbol
    [javac] symbol  : method getConstructor(java.lang.String,java.lang.ClassLoader,java.lang.Class[])
    [javac] location: class com.jogamp.common.util.ReflectionUtil
    [javac]                 nativeWindowConstructor = ReflectionUtil.getConstructor(windowClassName, getClass().getClassLoader(), new Class[] { Object.class, AbstractGraphicsConfiguration.class });
    [javac]                                                         ^
    [javac] 6 errors
Reply | Threaded
Open this post in threaded view
|

Re: Symbols not found trying to build JOGL

Qu0ll
Yes, the problem appears to be that the online instructions refer to Sven's GIT hub instead of Michael's.  By using Michael's instead I am able to get JOGL to build now.

-Qu0ll