Re: GLE on linux systems

Stéphane ANCELOT <[email protected]> Thu, 26 Nov 2015 09:45:03 +0100
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============1180326150476443346==
Content-Type: multipart/alternative;
	boundary="------------050800000202050307090407"

This is a multi-part message in MIME format.
--------------050800000202050307090407
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

On 11/11/2015 19:26, Mike C. Fletcher wrote:
> On 15/10/15 12:26, St=E9phane ANCELOT wrote:
>> Hi,
>>
>> I have noticed in my recent linux systems I was no more able to use=20
>> GLE API with pyopengl.
>>
>> I tried reinstalling the sources, the problem is the same :
>> I can import GLE but not use any functions .
>>
>> OpenGL.error.NullFunctionError: Attempt to call an undefined function=20
>> gleSetJoinStyle, check for bool(gleSetJoinStyle) before calling
>>
>> I have found similar people with same problem, but no answer.
>>
>> I am a bit surprised, since setting up Release 3.0.2 from source is=20
>> working , but not releases 3.1.x .
>>
>> I tried using ctypes and loading libgle libs, no problem.
>>
>> So, If there is no "good" reason, to inhibit it in 3.1.x releases it=20
>> should work.
>
> Could you give more details as to *what* Linux systems? PyOpenGL is=20
> primarily written on Kubuntu machines (12.04 and 15.10) and on both=20
> GLE tests using PyOpenGL-Demo and OpenGLContext are all working.
>
OpenSuse 13.2  64 bits system. (you can testdrive it on susestudio.com)
> Are you sure that you've created a GL context before calling any GLE=20
> functions?
This is a working / running application, with context, no problem.
> I was working on getting the final 3.1.1 release out today, but it=20
> seems that will need to wait until we address this (afraid I haven't=20
> been monitoring my PyOpenGL folder as I worked on my conference=20
> presentation).

It looks like you are using ctypes, so I made few investigations and=20
tried this :
I had the /usr/lib64/libgle.so library file in the system.
I made a symlink named "libGLE.so" in the same directory =3D=3D=3D> now,=20
PyOpenGL can run gle Commands !

That may give you some ideas...

without any context, the following gle command should work :
gleGetJoinStyle()
gleSetJoinStyle(...)

> Take care,
> Mike
>
>
>
> --=20
> ________________________________________________
>    Mike C. Fletcher
>    Designer, VR Plumber, Coder
>    http://www.vrplumber.com
>    http://blog.vrplumber.com
>
>
> -----------------------------------------------------------------------=
-------
>
>
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users


--------------050800000202050307090407
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dwindows-1252"
      http-equiv=3D"Content-Type">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">On 11/11/2015 19:26, Mike C. Fletcher
      wrote:<br>
    </div>
    <blockquote cite=3D"mid:[email protected]" type=3D"cite"=
>
      <meta content=3D"text/html; charset=3Dwindows-1252"
        http-equiv=3D"Content-Type">
      <div class=3D"moz-cite-prefix">On 15/10/15 12:26, St=E9phane ANCELO=
T
        wrote:<br>
      </div>
      <blockquote cite=3D"mid:[email protected]" type=3D"cite">
        <meta http-equiv=3D"content-type" content=3D"text/html;
          charset=3Dwindows-1252">
        Hi,<br>
        <br>
        I have noticed in my recent linux systems I was no more able to
        use GLE API with pyopengl.<br>
        <br>
        I tried reinstalling the sources, the problem is the same :<br>
        I can import GLE but not use any functions .<br>
        <br>
        <meta http-equiv=3D"content-type" content=3D"text/html;
          charset=3Dwindows-1252">
        <div style=3D"color: rgb(34, 34, 34); font-family: palatino,
          georgia, verdana, arial, sans-serif; font-size: medium;
          font-style: normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: 24px; orphans: 2;
          text-align: justify; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px; background-color: rgb(255, 255, 255); ">
          <div>OpenGL.error.NullFunctionError: Attempt to call an
            undefined function gleSetJoinStyle, check for
            bool(gleSetJoinStyle) before calling</div>
        </div>
        <br class=3D"Apple-interchange-newline">
        I have found similar people with same problem, but no answer.<br>
        <br>
        I am a bit surprised, since setting up Release 3.0.2 from source
        is working , but not releases 3.1.x .<br>
        <br>
        I tried using ctypes and loading libgle libs, no problem.<br>
        <br>
        So, If there is no "good" reason, to inhibit it in 3.1.x
        releases it should work.<br>
      </blockquote>
      <br>
      Could you give more details as to *what* Linux systems? PyOpenGL
      is primarily written on Kubuntu machines (12.04 and 15.10) and on
      both GLE tests using PyOpenGL-Demo and OpenGLContext are all
      working.<br>
      <br>
    </blockquote>
    OpenSuse 13.2=A0 64 bits system. (you can testdrive it on
    susestudio.com)<br>
    <blockquote cite=3D"mid:[email protected]" type=3D"cite"=
>
      Are you sure that you've created a GL context before calling any
      GLE functions?<br>
    </blockquote>
    This is a working / running application, with context, no problem.<br=
>
    <blockquote cite=3D"mid:[email protected]" type=3D"cite"=
> I
      was working on getting the final 3.1.1 release out today, but it
      seems that will need to wait until we address this (afraid I
      haven't been monitoring my PyOpenGL folder as I worked on my
      conference presentation).<br>
    </blockquote>
    <br>
    It looks like you are using ctypes, so I made few investigations and
    tried this :<br>
    I had the /usr/lib64/libgle.so library file in the system. <br>
    I made a symlink named "libGLE.so" in the same directory =3D=3D=3D&gt=
;
    now, PyOpenGL can run gle Commands !<br>
    <br>
    That may give you some ideas...<br>
    <br>
    without any context, the following gle command should work :<br>
    gleGetJoinStyle()<br>
    gleSetJoinStyle(...)<br>
    <br>
    <blockquote cite=3D"mid:[email protected]" type=3D"cite"=
>
      Take care,<br>
      Mike<br>
      <br>
      <br>
      <br>
      <pre class=3D"moz-signature" cols=3D"72">--=20
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  <a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"htt=
p://www.vrplumber.com">http://www.vrplumber.com</a>
  <a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"htt=
p://blog.vrplumber.com">http://blog.vrplumber.com</a>
</pre>
      <br>
      <fieldset class=3D"mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap=3D"">----------------------------------------------------=
--------------------------
</pre>
      <br>
      <fieldset class=3D"mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap=3D"">_______________________________________________
PyOpenGL Homepage
<a class=3D"moz-txt-link-freetext" href=3D"http://pyopengl.sourceforge.ne=
t">http://pyopengl.sourceforge.net</a>
_______________________________________________
PyOpenGL-Users mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:PyOpenGL-Users@lists=
.sourceforge.net">[email protected]</a>
<a class=3D"moz-txt-link-freetext" href=3D"https://lists.sourceforge.net/=
lists/listinfo/pyopengl-users">https://lists.sourceforge.net/lists/listin=
fo/pyopengl-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------050800000202050307090407--


--===============1180326150476443346==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
--===============1180326150476443346==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users

--===============1180326150476443346==--