Several Problems building jogl from source

I´ve got several problems building jogl from source on windows.
I´ve tried it from command line as well as from netbeans.

When I open gluegen and jogl projects in netbeans there are some errors in the projects.

The only one in gluegen src is in BufferFactoryInternal.java, line 53:

 addressFieldOffset = UnsafeAccess.getUnsafe().objectFieldOffset(f);

Error: Cannot find Symbol UnsafeAccess

But in the generated source files of gluegen (building gluegen works!) all import statements which related to antl.*, i.e. antlr.token are defective (Error: package antlr does not exist) though antlr is on the classpath.

In the jogl project there are more errors but I think they occur due to the fact that jogl is not build yet (for example the GL interface cannot be found…)

But there is the big problem! When I try to compile the project i got following error:

[quote]Bibliothek "nativewindow_awt.lib" und Objekt "nativewindow_awt.exp" werden erstellt. JAWTFactory_JNI.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__JAWT_GetAWT@8" in Funktion "_Java_com_sun_nativewindow_impl_jawt_JAWTFactory_JAWT_1GetAWT0__Ljava_nio_ByteBuffer_2@12". nativewindow_awt.dll : fatal error LNK1120: 1 nicht aufgelöste externe Verweise. C:\JOGL\jogl\make\build.xml:70: The following error occurred while executing this line: C:\JOGL\jogl\make\build-nativewindow.xml:746: The following error occurred while executing this line: C:\JOGL\jogl\make\build-nativewindow.xml:672: link failed with return code 1120
[/quote]
I think in english it´s something like

[quote]Library "nativewindow_awt.lib" and Object "nativewindow_awt.exp" are compiling. JAWTFactory_JNI.obj : error LNK2019: unresolved external symbol "__imp__JAWT_GetAWT@8" in function "_Java_com_sun_nativewindow_impl_jawt_JAWTFactory_JAWT_1GetAWT0__Ljava_nio_ByteBuffer_2@12". nativewindow_awt.dll : fatal error LNK1120: 1 unresolved externals. C:\JOGL\jogl\make\build.xml:70: The following error occurred while executing this line: C:\JOGL\jogl\make\build-nativewindow.xml:746: The following error occurred while executing this line: C:\JOGL\jogl\make\build-nativewindow.xml:672: link failed with return code 1120
[/quote]
I don´t know how to solve this problem. Maybe I missed to add some folder to classpath or to systempath?
Hope that someone knows whats going wrong here…

you can ignore all except the “big problem”.

I never tried to build jogl on windows… it seems like jogl is linking against wrong (old?) object files or something like that.

are you on openjdk or something like that? Sorry can’t help you much on that topic…

hmm, I can´t ignore the “big problem” cause the build process is aborted at this point…

[quote]are you on openjdk or something like that?
[/quote]
no

Ok, after several trys compiling jogl on my system I switch to another one and it works without any errors…

It works on an Windows Vista x86 system, but building jogl on Windows 7 x64 fails. Seems like this is a problem with the mingw compiler which is for x86 systems…

Problem solved! It was, as mentioned above, a problem with the compiler! It run well, with VC8 (x64).