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 |
I thought I had wrote this :
I'm under windows seven sorry |
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
|
Hi Julien, merci for your time.
Might it come from the fact I'm under Seven64 ? |
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. |
Checking right now, I'll update the thread asap.
Thanks |
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 |
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.
|
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... |
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... |
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 |
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 |
And the three commands work fine btw
|
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.
|
I'll try this tomorrow at work thanks.
What if I uninstall and reinstall java ? |
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) |
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 |
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.
|
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! |
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.
|
Free forum by Nabble | Edit this page |