I can't have JOGL built...

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

I can't have JOGL built...

tiofred
Hello all.
I'm trying to build JOGL in order tu use jreality.
I've installed ant, got jogl and gluegen from git.
I've built gluegen with success, and when I try to build jogl :

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
       [cc] 4 total files to be compiled.
       [cc] cc1.exe: attention : l'option de la ligne de commande "-fno-rtti" es
t valide pour C++/ObjC++ mais pas pour C
       [cc] cc1.exe: attention : l'option de la ligne de commande "-fno-rtti" es
t valide pour C++/ObjC++ mais pas pour C
       [cc] cc1.exe: attention : l'option de la ligne de commande "-fno-rtti" es
t valide pour C++/ObjC++ mais pas pour C
       [cc] cc1.exe: attention : l'option de la ligne de commande "-fno-rtti" es
t valide pour C++/ObjC++ mais pas pour C
       [cc] Starting link
       [cc] ..\..\..\..\..\Program Files\Java\jdk1.6.0_22\jre\bin/jawt.dll: file
 not recognized: File format not recognized
       [cc] collect2: ld a retournÚ 1 code d'Útat d'exÚcution

BUILD FAILED
C:\workspace\jogl\make\build.xml:63: The following error occurred while executin
g this line:
C:\workspace\jogl\make\build-nativewindow.xml:643: The following error occurred
while executing this line:
C:\workspace\jogl\make\build-nativewindow.xml:574: gcc failed with return code 1

Any clue ?
Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
I thought I had wrote this :
I'm under windows seven
sorry
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

gouessej
Administrator
Maybe a required native library is missing during linking or compilation.

Edit.: something is wrong during linking (see "ld a retourné 1 code d'état d'exécution", ld is the linker). I don't know what is wrong with jawt.dll :s
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
Hi Julien, merci for your time.
Might it come from the fact I'm under Seven64  ?
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

Wade Walker
Administrator
Hi Tiofred,

Have you tried the instructions at http://jogamp.org/wiki/index.php/Building_JOGL_on_the_command_line? I've verified that they work on Windows 7 64-bit. If they don't work for you, let me know and I'll help you debug what's going on.
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
Checking right now, I'll update the thread asap.
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
Okay, it's better now.
I had 6 22 and not 6 25.
I guess it's a path issue :

c.build.nativewindow.windowlib.windows:

BUILD FAILED
c:\workspace\jogl\make\build.xml:63: The following error occurred while executin
g this line:
c:\workspace\jogl\make\build-nativewindow.xml:656: Can't load javah


Working on it right now

Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

Wade Walker
Administrator
Are you sure you have a JDK installed and not a JRE? javah should be part of the JDK, and should be in your path if you set it up like in the instructions.
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
I guess I have both installed in fact.
I have
C:\Program Files\Java\jdk1.6.0_25\bin
in my PATH
and I just noticed :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
in the first line of the build result.
Big mixup somewhere I guess...
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
I do'nt get why javah can't be found, considering it's in the path and java_home...
and why it's mistaking
C:\Program Files\Java\jdk1.6.0_25\lib
and
C:\Program Files\Java\jre6\lib\
about tools.jar...
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

Wade Walker
Administrator
Maybe you have both the JRE and JDK in your path? The JDK bin dir should be the only Java thing in your path. JAVA_HOME also needs to be set to the JDK dir. These commands should all work from your DOS shell:

java -version
javah -version
javac -version

Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
Here's my PATH :
C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\ImageMagick-6.6.2-16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows
\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\
Program Files\Mercurial\;%ANT_HOME%\bin;C:\Program Files\Java\jdk1.6.0_25\bin;C:
\apache-ant-1.8.2\bin;C:\MinGW\bin

Here's my JAVA_HOME:
C:\Program Files\Java\jdk1.6.0_25

I have no CLASSPATH set.

Am I cursed ? ;-)

Thanks for your help guys
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
And the three commands work fine btw
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

Wade Walker
Administrator
Have you tried building with "ant -d" or "ant -v"? These give extra debugging output during the ant build that may help pinpoint the problem.
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
I'll try this tomorrow at work thanks.
What if I uninstall and reinstall java ?
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
I've reinstalled java after cleaning the system.
Here's the last part of the result of ant with -v :


       [cc] ..\..\..\..\..\Program Files\Java\jdk1.6.0_25\jre\bin/jawt.dll: file
 not recognized: File format not recognized
       [cc] collect2: ld a retournÚ 1 code d'Útat d'exÚcution

BUILD FAILED
C:\workspace\jogl\make\build.xml:63: The following error occurred while executin
g this line:
C:\workspace\jogl\make\build-nativewindow.xml:643: The following error occurred
while executing this line:
C:\workspace\jogl\make\build-nativewindow.xml:574: gcc failed with return code 1

        at net.sf.antcontrib.cpptasks.compiler.CommandLineLinker.link(CommandLin
eLinker.java:278)
        at net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration.li
nk(CommandLineLinkerConfiguration.java:117)
        at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:803)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at net.sf.antcontrib.logic.OutOfDate.execute(OutOfDate.java:457)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
a:398)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
Good news.
It seems it came from a bad version of gcc.
Build worked, now I'm gonna try and have jreality work with jogl.
Thanks a lot for the support
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

Wade Walker
Administrator
Ah, you beat me to it!  I was just about to suggest that either your gcc was 32-bit on your 64-bit system, or your gcc was custom-compiled for some other type of binary -- either one would result in not recognizing the DLL format. I'm glad you found the problem.
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

tiofred
Yeah ;-)
Maybe you could specify that on 64-bit, a special version of mingw is needed, etc.
But time lost is on me, I should have thought of it yesterday morning.
Thanks again, keep up the good work!
Reply | Threaded
Open this post in threaded view
|

Re: I can't have JOGL built...

Wade Walker
Administrator
I'll add a note to the wiki instructions -- another guy had this same problem in the past, I just forgot about it until now.
12