JOGL build on JDK 1.8
Posted by Peter on Oct 05, 2015; 10:05pm
URL: https://forum.jogamp.org/JOGL-build-on-JDK-1-8-tp4035427.html
JOGL build failure appears to relate to jawt.
Has anyone experienced this?
Note this is a fresh checkout of JOGL's master branch.
c.build.nativewindow.awt:
[echo] Output lib name = nativewindow_awt
[echo] c.compiler.use-jawt true
[echo] nativewindow_awt.useLibJAWT true
[echo] Compiling nativewindow_awt
[echo] java.lib.dir.platform: C:\Program Files\Java\jdk1.8.0_60\jre/../lib
[cc] 6 total files to be compiled.
[cc] cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC+ + but not for C
[cc] cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC+ + but not for C
[cc] cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC+ + but not for C
[cc] cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC+ + but not for C
[cc] cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC+ + but not for C
[cc] cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC+ + but not for C
[cc] Starting link
[cc] ..\..\..\..\..\..\..\..\Program Files\Java\jdk1.8.0_60\lib/jawt.lib: error adding symbols: File in wrong format
[cc] collect2: error: ld returned 1 exit status
BUILD FAILED
C:\Users\PeteFir\Documents\jogamp\jogl\make\build.xml:71: The following error oc curred while executing this line:
C:\Users\PeteFir\Documents\jogamp\jogl\make\build-nativewindow.xml:761: The foll owing error occurred while executing this line:
C:\Users\PeteFir\Documents\jogamp\jogl\make\build-nativewindow.xml:701: gcc fail ed with return code 1
Total time: 20 seconds
PeteFir@AULH12GV32 /cygdrive/c/Users/PeteFir/Documents/jogamp/jogl/make
$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode)
PeteFir@AULH12GV32 /cygdrive/c/Users/PeteFir/Documents/jogamp/jogl/make
$ javac -version
javac 1.8.0_60
Thanks,
Peter.