Re: GLE on linux systems
Stéphane ANCELOT <[email protected]> Thu, 26 Nov 2015 10:08:31 +0100
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============7716035765263196905==
Content-Type: multipart/alternative;
boundary="------------040203040903050402050006"
This is a multi-part message in MIME format.
--------------040203040903050402050006
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
On 26/11/2015 09:45, St=E9phane ANCELOT wrote:
> 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=20
>>> function gleSetJoinStyle, check for bool(gleSetJoinStyle) before call=
ing
>>>
>>> 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(...)
>
This more complicated than that , if I import GLU before GLE, the=20
behaviour is not the same:
linux-qhf9:~ # python
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GLE import *
>>> gleGetJoinStyle()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File=20
"/usr/lib/python2.7/site-packages/OpenGL/platform/baseplatform.py", line=20
407, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function=20
gleGetJoinStyle, check for bool(gleGetJoinStyle) before calling
>>>
linux-qhf9:~ # python
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GLU import *
>>> from OpenGL.GLE import *
>>> gleGetJoinStyle()
274
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
>
>
>
> -----------------------------------------------------------------------=
-------
> 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 multipl=
e OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=3D254741551&iu=3D/4140
>
>
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users
--------------040203040903050402050006
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 26/11/2015 09:45, St=E9phane ANCELO=
T
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 11/11/2015 19:26, Mike C. Fletche=
r
wrote:<br>
</div>
<blockquote cite=3D"mid:[email protected]" type=3D"cit=
e">
<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 ANCE=
LOT
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.<b=
r>
<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"cit=
e">
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"cit=
e">
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>
This more complicated than that , if I import GLU before GLE, the
behaviour is not the same: <br>
<br>
linux-qhf9:~ # python<br>
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> from OpenGL.GLE import *<br>
>>> gleGetJoinStyle()<br>
Traceback (most recent call last):<br>
=A0 File "<stdin>", line 1, in <module><br>
=A0 File
"/usr/lib/python2.7/site-packages/OpenGL/platform/baseplatform.py",
line 407, in __call__<br>
=A0=A0=A0 self.__name__, self.__name__,<br>
OpenGL.error.NullFunctionError: Attempt to call an undefined
function gleGetJoinStyle, check for bool(gleGetJoinStyle) before
calling<br>
>>> <br>
<br>
linux-qhf9:~ # python<br>
Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> from OpenGL.GLU import *<br>
>>> from OpenGL.GLE import *<br>
>>> gleGetJoinStyle()<br>
274<br>
<br>
<br>
Take care,<br>
<blockquote cite=3D"mid:[email protected]" type=3D"cite">
<blockquote cite=3D"mid:[email protected]" type=3D"cit=
e">
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 moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"http:=
//pyopengl.sourceforge.net">http://pyopengl.sourceforge.net</a>
_______________________________________________
PyOpenGL-Users mailing list
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-abbreviated" href=3D"ma=
ilto:[email protected]">[email protected]=
ge.net</a>
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"https=
://lists.sourceforge.net/lists/listinfo/pyopengl-users">https://lists.sou=
rceforge.net/lists/listinfo/pyopengl-users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class=3D"mimeAttachmentHeader"></fieldset>
<br>
<pre wrap=3D"">----------------------------------------------------=
--------------------------
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 m=
ultiple OSs.
<a class=3D"moz-txt-link-freetext" href=3D"http://pubads.g.doubleclick.ne=
t/gampad/clk?id=3D254741551&iu=3D/4140">http://pubads.g.doubleclick.n=
et/gampad/clk?id=3D254741551&iu=3D/4140</a></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>
--------------040203040903050402050006--
--===============7716035765263196905==
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
--===============7716035765263196905==
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
--===============7716035765263196905==--