[scilab-Users] scilab 5.1.1 compilation under Solaris 10

Jonathan Blanchard BlanchardJ at ieee.org
Fri Aug 21 17:05:48 CEST 2009


On Fri, Aug 21, 2009 at 12:00 PM, Langella
Raphael<raphael.langella at steria.cnes.fr> wrote:
>> -----Message d'origine-----
>> De : irf610 at gmail.com [mailto:irf610 at gmail.com] De la part de
>> Jonathan Blanchard
>> Envoyé : vendredi 21 août 2009 16:13
>> À : users at lists.scilab.org
>> Objet : Re: [scilab-Users] scilab 5.1.1 compilation under Solaris 10
>>
>> On Fri, Aug 21, 2009 at 4:44 AM, Langella
>> Raphael<raphael.langella at steria.cnes.fr> wrote:
>> >> OK, thanks. I tried that, but now I get this :
>> >>
>> >> An error occurred when Scilab tried to open a Canvas:
>> >> glXGetConfig failed: error code GLX_NO_EXTENSION
>> >>
>> >> So I guess it doesn't work with a remote cygwin-xfree
>> display. I'll
>> >> try tomorrow with Exceed. Also, any idea about the "make install"
>> >> error with the macros?
>> >>
>> >
>> > So, here is the error with Exceed:
>> >
>> > java.lang.reflect.InvocationTargetException
>> >        at java.awt.EventQueue.invokeAndWait(EventQueue.java:997)
>> >        at
>> > javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)
>> >        at
>> > org.scilab.modules.gui.bridge.tab.SwingScilabTab.draw(Unknown
>> > Source)
>> >        at org.scilab.modules.gui.tab.ScilabTabBridge.draw(Unknown
>> > Source)
>> >        at org.scilab.modules.gui.bridge.ScilabBridge.draw(Unknown
>> > Source)
>> >        at org.scilab.modules.gui.tab.ScilabTab.draw(Unknown Source)
>> >        at
>> >
>> org.scilab.modules.gui.graphicWindow.ScilabRendererProperties.forceDis
>> > pl
>> > ay(Unknown Source)
>> >        at
>> >
>> org.scilab.modules.renderer.figureDrawing.DrawableFigureGL.drawCanvas(
>> > Un
>> > known Source)
>> > Caused by: javax.media.opengl.GLException: Error making context
>> > current
>> >        at
>> >
>> com.sun.opengl.impl.x11.X11GLContext.makeCurrentImpl(X11GLContext.java
>> > :1
>> > 41)
>> >        at
>> >
>> com.sun.opengl.impl.x11.X11OffscreenGLContext.makeCurrentImpl(X11Offsc
>> > re
>> > enGLContext.java:74)
>> >        at
>> >
>> com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
>> >        at
>> >
>> com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:18
>> > 2)
>> >        at
>> > javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:661)
>> >        at javax.swing.JComponent.paint(JComponent.java:1027)
>> >        at javax.swing.JComponent.paintChildren(JComponent.java:864)
>> >        at javax.swing.JComponent.paint(JComponent.java:1036)
>> >        at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
>> >        at
>> > org.scilab.modules.gui.bridge.tab.SwingScilabAxes.paint(Unknown
>> > Source)
>> >        at javax.swing.JComponent.paintChildren(JComponent.java:864)
>> >        at javax.swing.JComponent.paint(JComponent.java:1036)
>> >        at javax.swing.JViewport.paint(JViewport.java:747)
>> >        at javax.swing.JComponent.paintChildren(JComponent.java:864)
>> >        at javax.swing.JComponent.paint(JComponent.java:1036)
>> >        at javax.swing.JComponent.paintChildren(JComponent.java:864)
>> >        at
>> >
>> org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintChildren(Unknown
>> > Source)
>> >        at javax.swing.JComponent.paint(JComponent.java:1036)
>> >        at javax.swing.JComponent.paintChildren(JComponent.java:864)
>> >        at javax.swing.JComponent.paint(JComponent.java:1036)
>> >        at
>> >
>> org.flexdock.docking.defaults.DefaultDockingPort.paint(DefaultDockingP
>> > or
>> > t.java:1976)
>> >        at
>> > javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
>> >        at
>> >
>> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPai
>> ntManager.
>> > java:277)
>> >        at javax.swing.RepaintManager.paint(RepaintManager.java:1217)
>> >        at
>> > javax.swing.JComponent._paintImmediately(JComponent.java:5070)
>> >        at
>> > javax.swing.JComponent.paintImmediately(JComponent.java:4880)
>> >        at
>> >
>> org.scilab.modules.gui.bridge.tab.SwingScilabTab.paintImmediately(Unkn
>> > ow
>> > n Source)
>> >        at
>> >
>> org.scilab.modules.gui.bridge.tab.SwingScilabTab$1.run(Unknown Source)
>> >        at
>> > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
>> >        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
>> >        at
>> >
>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispa
>> tchThread.
>> > java:269)
>> >        at
>> >
>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
>> > av
>> > a:184)
>> >        at
>> >
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
>> tchThread.
>> > java:174)
>> >        at
>> >
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
>> >        at
>> >
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
>> >        at
>> > java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>> > #
>> > # An unexpected error has been detected by Java Runtime Environment:
>> > #
>> > #  SIGSEGV (0xb) at pc=0xfb61d87c, pid=3490, tid=33 # #
>> Java VM: Java
>> > HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing
>> > solaris-sparc)
>> > # Problematic frame:
>> > # C  [libX11.so.4+0x1d87c]  XQueryExtension+0x4 # # An error report
>> > file with more information is saved as:
>> > #
>> >
>> /nfs/Produits/tmp/rla/Sol9/scilab-5.1.1-first_build/hs_err_pid3490.log
>> > #
>> > # If you would like to submit a bug report, please visit:
>> > #   http://java.sun.com/webapps/bugreport/crash.jsp
>> > #
>> > Abort - core dumped
>> >
>>
>> Just like that it's hard to say what is the problem exactly.
>> But it's graphic related, X and all are pretty outdated on
>> Sol9 and might not work at all. May I ask why you need Scilab
>> on Sol9 specifically?
>
> Well, the reason is I don't have a working gcc 4.3.x under Solaris 10! But I'm compiling it right now, so I'll try under Solaris 10 next week.
>
>> As a last resort try updating java to the latest version if
>> possible and maybe building with libmesa, an updated version
>> is available from Blastwave I think.
>
> OK, I'll try that, thanks. How do I build scilab with libmesa? I didn't see any OpenGL related option in configure.
>

Well it just need to be found first at build and run time. At build
time you may add the directory using either -L -R. For some reason
though something somewhere encode the system library in the rpaths so
unless you can edit the rpath you will have to either LD_PRELOAD it or
*ouch* use LD_LIBRARY_PATH in the Scilab startup script.

Jonathan Blanchard



More information about the users mailing list