<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi Stephane, <br></div><div><br></div><div>Thanks, I will give a try on that. <br></div><div><br></div><div>As there are no repository for 2.2, base on your experience in Mac, do we need to recompile the whole lib, or we could just use the binary/libs from the jogl web? If so, how should we place the libs and jar in the system? The previous Mac compilation the dylib were place in the thirdparty folder, but now as I am not using any thirparty from the scilab github, how should I get the scilab to refer to the locations?<br></div><div><br></div><div>Thanks again for advice.<br></div><div><br></div><div>Regards,<br></div><div>Chin Luh <br></div><div><br></div><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Thu, 07 May 2020 20:44:33 +0800 <b>Stéphane Mottelet <stephane.mottelet@utc.fr></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><p>Hi,<br></p><div class="x_-714172078moz-cite-prefix">Le 07/05/2020 à 14:29, Chin Luh Tan a
      écrit :<br></div><blockquote><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><div>Hi Stephane, <br></div><div><br></div><div>I applied the patch <span class="highlight" style="background-color:rgb(225, 225, 225)"><span class="colour" style="color:rgb(53, 53, 53)"><span class="font" style="font-family:sans-serif"><span class="size" style="font-size: small; font-style: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px; display: inline; float: none;">Change<span> </span></span></span></span></span><a target="_blank" class="x_-714172078gwt-Anchor" title="Reload the change (Shortcut: R)" href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/17530" style="color: rgb(6,84,172);text-decoration: none;font-family: sans-serif;font-size: small;font-style: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0.0px;text-transform: none;white-space: nowrap;widows: 2;word-spacing: 0.0px;background-color: rgb(225,225,225);">17530</a> but not
          the <span class="highlight" style="background-color:rgb(225, 225, 225)"><span class="colour" style="color:rgb(53, 53, 53)"><span class="font" style="font-family:sans-serif"><span class="size" style="font-size: small; font-style: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px; display: inline; float: none;">Change<span> </span></span></span></span></span><a target="_blank" class="x_-714172078gwt-Anchor" title="Reload the change (Shortcut: R)" href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/21438" style="color: rgb(6,84,172);text-decoration: none;font-family: sans-serif;font-size: small;font-style: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0.0px;text-transform: none;white-space: nowrap;widows: 2;word-spacing: 0.0px;background-color: rgb(225,225,225);">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><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><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><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><div><br></div><div>Thanks.<br></div><div><br></div><div>Regards,<br></div><div>Chin Luh<br></div><div><br></div><div><br></div><div><br></div><div class="x_-714172078zmail_extra"><div><br></div><div>---- On Thu, 07 May 2020 01:42:51 +0800 <b>Stéphane Mottelet <a target="_blank" href="mailto:stephane.mottelet@utc.fr" class="x_-714172078moz-txt-link-rfc2396E"><stephane.mottelet@utc.fr></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 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 target="_blank" href="mailto:chinluh.tan@bytecode-asia.com">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 target="_blank" href="mailto:chinluh.tan@bytecode-asia.com">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 target="_blank" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> <br></div><div><a target="_blank" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">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 target="_blank" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a></span><br></div><div><span><a target="_blank" href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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></span><br></div></div></blockquote></div><div>_______________________________________________ <br></div><div>dev mailing list <br></div><div><a target="_blank" href="mailto:dev@lists.scilab.org" class="x_-714172078moz-txt-link-abbreviated">dev@lists.scilab.org</a> <br></div><div><a target="_blank" href="http://lists.scilab.org/mailman/listinfo/dev" class="x_-714172078moz-txt-link-freetext">http://lists.scilab.org/mailman/listinfo/dev</a> <br></div></blockquote></div><div><br></div></div><div><br></div><div><br></div><pre class="x_-714172078moz-quote-pre">_______________________________________________
dev mailing list
<a target="_blank" href="mailto:dev@lists.scilab.org" class="x_-714172078moz-txt-link-abbreviated">dev@lists.scilab.org</a>
<a target="_blank" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev" class="x_-714172078moz-txt-link-freetext">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev</a>
<br></pre></blockquote><pre class="x_-714172078moz-signature">-- 
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 target="_blank" href="http://www.utc.fr/~mottelet" class="x_-714172078moz-txt-link-freetext">http://www.utc.fr/~mottelet</a>
<br></pre></div><div>_______________________________________________<br></div><div>dev mailing list <br></div><div>dev@lists.scilab.org <br></div><div>http://lists.scilab.org/mailman/listinfo/dev <br></div></blockquote></div><div><br></div></div><br></body></html>