<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,<br>
    </p>
    <div class="moz-cite-prefix">Le 07/05/2020 à 14:29, Chin Luh Tan a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:171ef1cb690.b1315c50139858.8380982811956051652@bytecode-asia.com">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <div style="font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10pt;">
        <div>Hi Stephane, <br>
        </div>
        <div><br>
        </div>
        <div>I applied the patch <span style="color: rgb(53, 53, 53);
            font-family: sans-serif; font-size: small; font-style:
            normal; font-variant-ligatures: normal; font-variant-caps:
            normal; font-weight: 400; letter-spacing: normal; orphans:
            2; text-align: start; text-indent: 0px; text-transform:
            none; white-space: nowrap; widows: 2; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; background-color: rgb(225,
            225, 225); text-decoration-style: initial;
            text-decoration-color: initial; display: inline !important;
            float: none;">Change<span> </span></span><a style="color:
            rgb(6, 84, 172); text-decoration: none; font-family:
            sans-serif; font-size: small; font-style: normal;
            font-variant-ligatures: normal; font-variant-caps: normal;
            font-weight: 400; letter-spacing: normal; orphans: 2;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: nowrap; widows: 2; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; background-color: rgb(225,
            225, 225);"
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/17530"
            title="Reload the change (Shortcut: R)" class="gwt-Anchor"
            target="_blank" moz-do-not-send="true">17530</a> but not
          the <span style="color: rgb(53, 53, 53); font-family:
            sans-serif; font-size: small; font-style: normal;
            font-variant-ligatures: normal; font-variant-caps: normal;
            font-weight: 400; letter-spacing: normal; orphans: 2;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: nowrap; widows: 2; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; background-color: rgb(225,
            225, 225); text-decoration-style: initial;
            text-decoration-color: initial; display: inline !important;
            float: none;">Change<span> </span></span><a style="color:
            rgb(6, 84, 172); text-decoration: none; font-family:
            sans-serif; font-size: small; font-style: normal;
            font-variant-ligatures: normal; font-variant-caps: normal;
            font-weight: 400; letter-spacing: normal; orphans: 2;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: nowrap; widows: 2; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; background-color: rgb(225,
            225, 225);"
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/21438"
            title="Reload the change (Shortcut: R)" class="gwt-Anchor"
            target="_blank" moz-do-not-send="true">21438</a>, as the
          original configure.ac still searching for Jogl 2.2.<br>
        </div>
        <div><br>
        </div>
        <div>I tried the path set 5 and 8 from changes 17530, both
          compile the scilab with minor modification on the fop (to
          enable detection).<br>
        </div>
        <div><br>
        </div>
        <div>As I am trying to compile in Arm environment, I have to
          install the 3rd parties from apt-get, and with those libs
          installed, "configure" was able to "pass" for the make. <br>
        </div>
        <div><br>
        </div>
        <div>i think the issue is on the jogl now? The parts which
          differentiate 2.2. and 2.3 were mentioned in the configure.ac:<br>
        </div>
        <div><br>
        </div>
        <div>AC_JAVA_CHECK_JAR([jogl2],[javax.media.opengl.glu.GLUnurbs],[Scilab
          3D rendering - Version 2.0], [], [], [2.2]) <br>
        </div>
        <div>AC_JAVA_CHECK_JAR([jogl2],[jogamp.opengl.x11.glx.GLX],[Scilab
          3D rendering - Version 2.3], [], [], 2.3)<br>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <p>On the source point of view, 2.3 version changed all class
      headers, but there are surely may other changes in the
      implementation. <br>
    </p>
    <blockquote type="cite"
cite="mid:171ef1cb690.b1315c50139858.8380982811956051652@bytecode-asia.com">
      <div style="font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10pt;">
        <div>AC_JAVA_CHECK_JAR([gluegen2-rt],[jogamp.common.os.MachineDescriptionRuntime],[Scilab
          3D rendering])<br>
        </div>
        <div>AC_JAVA_CHECK_JAR([gluegen2-rt],[com.jogamp.common.os.Platform],[Scilab
          3D rendering])<br>
        </div>
        <div><br>
        </div>
        <div>Should I use the Jogl2.2 for the compilation and use the
          original configure.ac?<br>
        </div>
      </div>
    </blockquote>
    <p>I think so. Just to test that the problem still occurs (or not)
      with 2.2. <br>
    </p>
    <p>S.<br>
    </p>
    <blockquote type="cite"
cite="mid:171ef1cb690.b1315c50139858.8380982811956051652@bytecode-asia.com">
      <div style="font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10pt;">
        <div><br>
        </div>
        <div>Thanks.<br>
        </div>
        <div><br>
        </div>
        <div>Regards,<br>
        </div>
        <div>Chin Luh</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div class="zmail_extra" style="" data-zbluepencil-ignore="true">
          <div><br>
          </div>
          <div id="Zm-_Id_-Sgn1">---- On Thu, 07 May 2020 01:42:51 +0800
            <b>Stéphane Mottelet <a class="moz-txt-link-rfc2396E" href="mailto:stephane.mottelet@utc.fr"><stephane.mottelet@utc.fr></a></b>
            wrote ----<br>
          </div>
          <div><br>
          </div>
          <blockquote style="border-left: 1px solid rgb(204, 204, 204);
            padding-left: 6px; margin: 0px 0px 0px 5px;">
            <div dir="auto">
              <div dir="ltr">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.<br>
              </div>
              <div dir="ltr"><br>
              </div>
              <div dir="ltr">S.<br>
              </div>
              <div dir="ltr">
                <div><br>
                </div>
                <blockquote>Le 6 mai 2020 à 18:52, Chin Luh Tan <<a
                    href="mailto:chinluh.tan@bytecode-asia.com"
                    target="_blank" moz-do-not-send="true">chinluh.tan@bytecode-asia.com</a>>
                  a écrit :<br>
                  <br>
                </blockquote>
              </div>
              <blockquote>
                <div dir="ltr">
                  <div><br>
                  </div>
                  <div style="font-family: Verdana, Arial, Helvetica,
                    sans-serif;font-size: 10.0pt;">
                    <div>sorry pls ignore the previous incomplete email
                      which has been accidentally sent:<br>
                    </div>
                    <div><br>
                    </div>
                    <div>I tried to compile scilab 6.1 under raspberry
                      pi 4, and the compilation completed with scilab
                      lauched with following messages:<br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <blockquote style="border: 1.0px solid
                      rgb(204,204,204);padding: 7.0px;background-color:
                      rgb(245,245,245);">
                      <div>
                        <div>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<br>
                        </div>
                        <div>    [0]:
jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)<br>
                        </div>
                        <div>    [1]:
                          jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)<br>
                        </div>
                        <div>    [2]:
                          java.lang.Thread.run(Thread.java:748)<br>
                        </div>
                        <div>Caused[0] by NoSuchMethodError:
                          java.nio.IntBuffer.rewind()Ljava/nio/IntBuffer;
                          on thread main-SharedResourceRunner<br>
                        </div>
                        <div>    [0]:
                          com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:146)<br>
                        </div>
                        <div>    [1]:
                          com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:150)<br>
                        </div>
                        <div>    [2]:
                          com.jogamp.common.nio.Buffers.newDirectIntBuffer(Buffers.java:154)<br>
                        </div>
                        <div>    [3]:
jogamp.opengl.egl.EGLGraphicsConfiguration.EGLConfig2Capabilities(EGLGraphicsConfiguration.java:221)<br>
                        </div>
                        <div>    [4]:
jogamp.opengl.egl.EGLGraphicsConfigurationFactory.eglConfigs2GLCaps(EGLGraphicsConfigurationFactory.java:481)<br>
                        </div>
                        <div>    [5]:
jogamp.opengl.egl.EGLDrawableFactory.getAvailableEGLConfigs(EGLDrawableFactory.java:962)<br>
                        </div>
                        <div>    [6]:
jogamp.opengl.egl.EGLDrawableFactory.access$800(EGLDrawableFactory.java:88)<br>
                        </div>
                        <div>    [7]:
jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:679)<br>
                        </div>
                        <div>    [8]:
jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:613)<br>
                        </div>
                        <div>    [9]:
jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)<br>
                        </div>
                        <div>    [10]:
                          jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)<br>
                        </div>
                        <div>    [11]:
                          java.lang.Thread.run(Thread.java:748)<br>
                        </div>
                        <div>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<br>
                        </div>
                        <div>    [0]:
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:306)<br>
                        </div>
                        <div>    [1]:
                          jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)<br>
                        </div>
                        <div>    [2]:
                          java.lang.Thread.run(Thread.java:748)<br>
                        </div>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>while I am still able to launch the Scilab and
                      perform most operation, however, when I tried to
                      plot a figure, i get:<br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <blockquote style="border: 1.0px solid
                      rgb(204,204,204);padding: 7.0px;background-color:
                      rgb(245,245,245);">
                      <div>
                        <div>java.lang.reflect.InvocationTargetException<br>
                        </div>
                        <div>        at
                          java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)<br>
                        </div>
                        <div>        at
                          java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)<br>
                        </div>
                        <div>        at
                          javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)<br>
                        </div>
                        <div>        at
                          org.scilab.modules.gui.SwingView.updateObject(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown
                          Source)<br>
                        </div>
                        <div>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: []<br>
                        </div>
                        <div>        at
                          com.jogamp.opengl.GLProfile.get(GLProfile.java:991)<br>
                        </div>
                        <div>        at
                          com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722)<br>
                        </div>
                        <div>        at
                          com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:363)<br>
                        </div>
                        <div>        at
                          com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:337)<br>
                        </div>
                        <div>        at
                          com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:325)<br>
                        </div>
                        <div>        at
org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.<init>(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.<init>(Unknown
                          Source)<br>
                        </div>
                        <div>        at
org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown
                          Source)<br>
                        </div>
                      </div>
                    </blockquote>
                    <div>.<br>
                    </div>
                    <div>Any suggestion what I need to change for the
                      compilation?<br>
                    </div>
                    <div><br>
                    </div>
                    <div>I compile scilab with:<br>
                    </div>
                    <div>1. gcc, g++, gfortran v 8, and also another try
                      on v9<br>
                    </div>
                    <div>2. openjdk-8-jdk<br>
                    </div>
                    <div>3. Tried Raspbian, Ubuntu for Pi 18.04 , same
                      issue. <br>
                    </div>
                    <div>4. Applied jogl 2.3.2 patch.<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Thanks.<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Rgds,<br>
                    </div>
                    <div>CL<br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div class="x_732141053zmail_extra">
                      <div><br>
                      </div>
                      <div>---- On Thu, 07 May 2020 00:45:23 +0800 <b>Chin
                          Luh Tan <<a
                            href="mailto:chinluh.tan@bytecode-asia.com"
                            target="_blank" moz-do-not-send="true">chinluh.tan@bytecode-asia.com</a>></b>
                        wrote ----<br>
                      </div>
                      <div><br>
                      </div>
                      <blockquote style="border-left: 1.0px solid
                        rgb(204,204,204);padding-left: 6.0px;margin:
                        0.0px 0.0px 0.0px 5.0px;">
                        <div>
                          <div style="font-family: Verdana, Arial,
                            Helvetica, sans-serif;font-size: 10.0pt;">
                            <div>Hi, <br>
                            </div>
                            <div><br>
                            </div>
                            <div>I tried to compile scilab 6.1 under
                              raspberry pi 4, and the compilation
                              completed with scilab lauched with
                              following messages:<br>
                            </div>
                            <div><br>
                            </div>
                          </div>
                          <div><br>
                          </div>
                        </div>
                        <div>_______________________________________________
                          <br>
                        </div>
                        <div>users mailing list <br>
                        </div>
                        <div><a href="mailto:users@lists.scilab.org"
                            target="_blank" moz-do-not-send="true">users@lists.scilab.org</a>
                          <br>
                        </div>
                        <div><a
href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users"
                            target="_blank" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a>
                          <br>
                        </div>
                      </blockquote>
                    </div>
                    <div><br>
                    </div>
                  </div>
                  <div><br>
                  </div>
                  <div><span>_______________________________________________</span><br>
                  </div>
                  <div><span>dev mailing list</span><br>
                  </div>
                  <div><span><a href="mailto:dev@lists.scilab.org"
                        target="_blank" moz-do-not-send="true">dev@lists.scilab.org</a></span><br>
                  </div>
                  <div><span><a
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev"
                        target="_blank" moz-do-not-send="true">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev</a></span><br>
                  </div>
                </div>
              </blockquote>
            </div>
            <div>_______________________________________________ <br>
            </div>
            <div>dev mailing list <br>
            </div>
            <div><a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a> <br>
            </div>
            <div><a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a> <br>
            </div>
          </blockquote>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre>
  </body>
</html>