JOGL build on JDK 1.8

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

JOGL build on JDK 1.8

Peter
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.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL build on JDK 1.8

Sven Gothel
Administrator
On 10/06/2015 12:05 AM, Peter [via jogamp] wrote:

> JOGL build failure appears to relate to jawt.
>
> Has anyone experienced this?
>
> Note this is a fresh checkout of JOGL's master branch.
>
>
>        [cc] Starting link
>        [cc] ..\..\..\..\..\..\..\..\Program
> Files\Java\jdk1.8.0_60\lib/jawt.lib:                                          
>                       error adding symbols: File in wrong format
^^ seems to be 64bit JDK?
>
> 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)

Seems to be 32bit JRE?

~Sven


signature.asc (828 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOGL build on JDK 1.8

Peter
Thanks Sven,

It looks like a problem with my Windows environment, I haven't had much time to investigate.

JOGL builds fine with MinGW-W64, but not with Cigwin, while GlueGen builds with Cigwin but fails on MinGW-W64.

$ uname -a
CYGWIN_NT-6.1 AULH12GV32 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin

i686-5.2.0-posix-dwarf-rt_v4-rev0