[Scilab-users] [Scilab-Dev] Issue on Scilab Compilation on Raspbery Pi

Stéphane Mottelet stephane.mottelet at utc.fr
Wed May 6 19:42:51 CEST 2020


If you apply the JoGL patch then third parties have to be updated as well. I think you did it. But since this patch is not needed for Linux, I would try to compile with previous version.

S.

> Le 6 mai 2020 à 18:52, Chin Luh Tan <chinluh.tan at bytecode-asia.com> a écrit :
> 
> 
> sorry pls ignore the previous incomplete email which has been accidentally sent:
> 
> I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages:
> 
> 
> Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v1.4.0, connection :0.0, unitID 0, handle 0xffffffffa8b148f0, owner true, ResourceToolkitLock[obj 0xb29daf, isOwner true, <1fa6506, f15db4>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
>     [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
>     [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
>     [2]: java.lang.Thread.run(Thread.java:748)
> Caused[0] by NoSuchMethodError: java.nio.IntBuffer.rewind()Ljava/nio/IntBuffer; on thread main-SharedResourceRunner
>     [0]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:146)
>     [1]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:150)
>     [2]: com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:154)
>     [3]: jogamp.opengl.egl.EGLGraphicsConfiguration.EGLConfig2Capabilities(EGLGraphicsConfiguration.java:221)
>     [4]: jogamp.opengl.egl.EGLGraphicsConfigurationFactory.eglConfigs2GLCaps(EGLGraphicsConfigurationFactory.java:481)
>     [5]: jogamp.opengl.egl.EGLDrawableFactory.getAvailableEGLConfigs(EGLDrawableFactory.java:962)
>     [6]: jogamp.opengl.egl.EGLDrawableFactory.access$800(EGLDrawableFactory.java:88)
>     [7]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:679)
>     [8]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:613)
>     [9]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
>     [10]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
>     [11]: java.lang.Thread.run(Thread.java:748)
> Caught handled GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner <NULL>]]] on thread main-SharedResourceRunner
>     [0]: jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:306)
>     [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
>     [2]: java.lang.Thread.run(Thread.java:748)
> 
> while I am still able to launch the Scilab and perform most operation, however, when I tried to plot a figure, i get:
> 
> 
> java.lang.reflect.InvocationTargetException
>         at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
>         at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
>         at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)
>         at org.scilab.modules.gui.SwingView.updateObject(Unknown Source)
>         at org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown Source)
>         at org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown Source)
>         at org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown Source)
>         at org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown Source)
>         at org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown Source)
> Caused by: com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f4f0f8, isOwner false, <1c08638, 40f0>[count 0, qsz 0, owner <NULL>]]], but: []
>         at com.jogamp.opengl.GLProfile.get(GLProfile.java:991)
>         at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722)
>         at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:363)
>         at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:337)
>         at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:325)
>         at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.<init>(Unknown Source)
>         at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.<init>(Unknown Source)
>         at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown Source)
> .
> Any suggestion what I need to change for the compilation?
> 
> I compile scilab with:
> 1. gcc, g++, gfortran v 8, and also another try on v9
> 2. openjdk-8-jdk
> 3. Tried Raspbian, Ubuntu for Pi 18.04 , same issue. 
> 4. Applied jogl 2.3.2 patch.
> 
> Thanks.
> 
> Rgds,
> CL
> 
> 
> 
> 
> 
> 
> ---- On Thu, 07 May 2020 00:45:23 +0800 Chin Luh Tan <chinluh.tan at bytecode-asia.com> wrote ----
> 
> Hi, 
> 
> I tried to compile scilab 6.1 under raspberry pi 4, and the compilation completed with scilab lauched with following messages:
> 
> 
> _______________________________________________ 
> users mailing list 
> users at lists.scilab.org 
> http://lists.scilab.org/mailman/listinfo/users 
> 
> 
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200506/73557952/attachment.htm>


More information about the users mailing list