I'm trying to build the gluegen and jogl jars on a Solaris 10 / SPARC using the instructions from:
http://jogamp.org/jogl/doc/HowToBuild.html But the build is failing with the trace at the bottom of this post. I'm wondering, what is the strip program and why might it not be where it needs to be? I get similar messages about missing a strip program when i build in the jogl directory. BUILD FAILED /Documents/jogamp/gluegen/make/build.xml:506: The following error occurred while executing this line: /Documents/jogamp/gluegen/make/build.xml:568: The following error occurred while executing this line: /Documents/jogamp/gluegen/make/gluegen-cpptasks-base.xml:1501: Execute failed: java.io.IOException: Cannot run program "strip" (in directory "/Documents/jogamp/gluegen/build/obj"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628) at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:410) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 49 more Total time: 1 minute 9 seconds |
strip is a classic Unix command to remove extra information from object files, it makes the native libraries JOGL produces a bit smaller. You can safely remove the usage of strip if strip is unavailable under Solaris 10 but really it should be available under /usr/ccs/bin/strip http://docs.oracle.com/cd/E23823_01/html/816-5165/strip-1.html |
Thank you, actually it was on the system just not in the path variable. |
So after I added strip to my PATH variable, everything built but the unit tests failed, which I'll get to later (I didn't notice at first because my history is pretty short and the build says successful after the tests run). And when i ran my application i got an error about missing a jar, gluegen-natives-solaris-sparc.jar. The build only built gluegen-rt-natives-solaris-sparc.jar (as far as natives jars for gluegen). But, that jar seemed to contain the library I was missing so i renamed it (took out -rt) and it no longer complained about missing jars.
Then I ran into the MachineDescription problem mentioned in this thread (which is also what i see in the failed unit tests): http://forum.jogamp.org/Solaris-Sparc-builds-td4025566.html So I applied those code changes and rebuilt and ran the tests again. I still got failures on the tests. And now when I run my application I get an exception (at the bottom). I'm not a JOGL developer, I have been using jzy3d and just been trying to create a build for Solaris SPARC, so I'm not sure what to look at to try to fix this. So any hints or suggestions appreciated. Also let me know what other information I should be providing to get help on this.. I'm running Solaris 10 btw. I'm trying to build the code from v2.0 rc11. javax.media.opengl.GLException: Profile GL_DEFAULT is not available on null, but: [] at javax.media.opengl.GLProfile.get(GLProfile.java:771) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:566) at org.jzy3d.global.Settings.<init>(Unknown Source) at org.jzy3d.global.Settings.getInstance(Unknown Source) at org.jzy3d.chart.Chart.<init>(Unknown Source) ... (cut out the layer from our code in the action to calling chart init in jzy3d) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) |
Administrator
|
On 05/31/2013 06:10 PM, BFarns [via jogamp] wrote:
> So after I added strip to my PATH variable, everything built but the unit > tests failed, which I'll get to later (I didn't notice at first because my > history is pretty short and the build says successful after the tests run). > And when i ran my application i got an error about missing a jar, > gluegen-natives-solaris-sparc.jar. The build only built > gluegen-rt-natives-solaris-sparc.jar (as far as natives jars for gluegen). > But, that jar seemed to contain the library I was missing so i renamed it > (took out -rt) and it no longer complained about missing jars. > > Then I ran into the MachineDescription problem mentioned in this thread (which > is also what i see in the failed unit tests): > > http://forum.jogamp.org/Solaris-Sparc-builds-td4025566.html > > So I applied those code changes and rebuilt and ran the tests again. I still > got failures on the tests. And now when I run my application I get an > exception (at the bottom). When we are past these hurdles, we may like to merge your changes. Problem, we don't have a sparc machine avail - so would need you to assist! > > I'm not a JOGL developer, I have been using jzy3d and just been trying to > create a build for Solaris SPARC, so I'm not sure what to look at to try to > fix this. So any hints or suggestions appreciated. Also let me know what other > information I should be providing to get help on this.. I'm running Solaris 10 > btw. I'm trying to build the code from v2.0 rc11. > > javax.media.opengl.GLException: Profile GL_DEFAULT is not available on null, > but: [] No OpenGL is available at all :( Pls run w/ all (JOGL) debug flags enabled, see Wiki/FAQ/Debug. DISPLAY env var set properly ? 'glxgears -info' works well ? ~sven signature.asc (911 bytes) Download Attachment |
Aha, in answering your questions I figured out the problem with the exception, but I'll respond below in order.
I built using ant, from the instructions.. It did use gcc, because i had to install gcc for the build to work. So I don't have glxgears, or glxinfo (from the other solaris sparc post i mentioned they didn't have it either), but i used the program that person in the other post used, ogl_install_check, and that worked when I ran on the computer directly the other day before I got started. BUT I just tried it again now to get you the output, and it turns out it does not work through my current VNC session. Which made me realize it's probably a problem with running through my vnc. So I tried again directly on the computer and everything is working there just fine now with my build jars, so far. So the patch worked well and no changes since then apparently, again at least so far, i'm able to run my application and see the 3D graphs. We'll be doing more testing. And as far as it not running on vnc I''m not too concerned about that, I have not had any trouble running my application with JOGL on Linux through VNC, and this solaris system was pretty bare bones. I haven't configured vnc at all, it was working just enough that I could run the builds and open the application so I didn't bother with it; didn't think about the fact that there's not much else enabled in vnc currently, opengl probably one of those things. The message is something like "extension "GLX" missing on display ":2.0". Probably an easy google fix if I need it in the future. Thanks! |
Administrator
|
On 05/31/2013 08:13 PM, BFarns [via jogamp] wrote:
> Aha, in answering your questions I figured out the problem with the exception, > but I'll respond below in order. > > > Sven Gothel wrote > You build w/ gnu-toolchain I assume, i.e. gcc etc ? > > I built using ant, from the instructions.. It did use gcc, because i had to > install gcc for the build to work. > > > Sven Gothel wrote > No OpenGL is available at all :( > > Pls run w/ all (JOGL) debug flags enabled, see Wiki/FAQ/Debug. > > DISPLAY env var set properly ? > > 'glxgears -info' works well ? > > So I don't have glxgears, or glxinfo (from the other solaris sparc post i > mentioned they didn't have it either), but i used the program that person in > the other post used, ogl_install_check, and that worked when I ran on the > computer directly the other day before I got started. BUT I just tried it > again now to get you the output, and it turns out it does not work through my > current VNC session. Which made me realize it's probably a problem with > running through my vnc. So I tried again directly on the computer and > everything is working there just fine now with my build jars, so far. So the > patch worked well and no changes since then apparently, again at least so far, > i'm able to run my application and see the 3D graphs. We'll be doing more > testing. > > And as far as it not running on vnc I''m not too concerned about that, I have > not had any trouble running my application with JOGL on Linux through VNC, and > this solaris system was pretty bare bones. I haven't configured vnc at all, it > was working just enough that I could run the builds and open the application > so I didn't bother with it; didn't think about the fact that there's not much > else enabled in vnc currently, opengl probably one of those things. The > message is something like "extension "GLX" missing on display ":2.0". Probably > an easy google fix if I need it in the future. > > Thanks! Can you add a bug report to our bugzilla and attach the patch you have used (which is unknown to me right now) ? This has also the benefit that we don't loose this information and that it well get done eventually. Yes, Solaris/Sparc is not on our focus right now .. but will do, if feasible. Thank you! ~Sven signature.asc (911 bytes) Download Attachment |
Free forum by Nabble | Edit this page |