Hi,
I am trying to build JOGL for Windows x64, and so far it looks promising. I’ve modified the build scripts to add a new compiler config (vc8_x64), amended build.xml and a few other “things”, some stuff in gluegen (CPU.java
), set JAVA_HOME to the 64-bit JDK install, and eventually got it to build.
However, running some stuff it craps out [1] setting the pixel format. I eventually tracked down the problem, wrong layout of the PIXELFORMATDESCRIPTOR
struct. To cut the long story short, this is due to gluegen assuming DWORD
(unsigned long
) being 64-bit wide, which is certainly not the case with the VC compiler! Indeed I’m wondering whether any other compiler treats long
s as 64-bit. I seem to remember ‘long long
’ being 64-bit on gcc. Anyway I’m guessing this can be amended in one of the gluegen config files, and would be grateful for any hints. I’ve also checked the stub windows.h header that is in CVS, and it looks like all the other types would be correct on either arch.
Thanks in advance,
Matt.
[1] I haven’t got the output handy as I’m writing this from my (32-bit) laptop, but will provide more info when I get back to the 64-bit machine…