[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Ubuntu, PyQt/Qt 5.9, QOpenGLShaderProgram "is not linked"
From: David Cortesi <davecortesi () gmail ! com>
Date: 2017-07-18 18:38:16
Message-ID: CALyzANuU6MML-yvy5iMoVf6ODhwUxYdytx2HXo_98ojLtne5_w () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
OK I tested with the simple fix,
if sys.platform.startswith('linux') : from OpenGL import GL
and it worked. Also as Florian suggested, using --exclude-module=OpenGL
when building with PyInstaller for other platforms takes care of that issue.
I poked around inside Ubuntu 16.04 (64-bit) looking for libGL.so and there
is just a mess of them.
/usr/lib/x86_64-linux-gnu/libGL.so -> mesa/libGL.so
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
/usr/lib/x86_64-linux-gnu/mesa/libGL.so -> libGL.so.1.2.0
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.11.2.2.32651
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 ->
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.11.2.2.32651
Since the original Ubuntu bug report (linked earlier) said the problem was
using the "mesa" libs, and since I don't see anything nvidia-related dlls
-- and since the import work-around fixed it -- I didn't want to mess with
that. Perhaps ctypes.cdll.LoadLibrary("libGL.so.1") would pick up the last
one, libGL.so.1.11.2.2.32651, but I don't know.
[Attachment #5 (text/html)]
<div dir="ltr"><div><div><div><div>OK I tested with the simple fix, <br><br></div> \
<font size="1"><span style="font-family:monospace,monospace">if \
sys.platform.startswith('linux') : from OpenGL import \
GL</span></font><br><br></div>and it worked. Also as Florian suggested, using \
--exclude-module=OpenGL when building with PyInstaller for other platforms takes care \
of that issue.<br><br></div>I poked around inside Ubuntu 16.04 (64-bit) looking for \
libGL.so and there is just a mess of them.<br><br> <font size="1"><span \
style="font-family:monospace,monospace">/usr/lib/x86_64-linux-gnu/libGL.so -> \
mesa/libGL.so<br> /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0<br> \
/usr/lib/x86_64-linux-gnu/mesa/libGL.so -> libGL.so.1.2.0<br> \
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.11.2.2.32651<br> \
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -> \
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.11.2.2.32651</span></font><br><br></div>Since \
the original Ubuntu bug report (linked earlier) said the problem was using the \
"mesa" libs, and since I don't see anything nvidia-related dlls -- and \
since the import work-around fixed it -- I didn't want to mess with that. Perhaps \
ctypes.cdll.LoadLibrary("<wbr>libGL.so.1") would pick up the last one, \
<span style="font-family:monospace,monospace">libGL.so.1.11.2.2.32651</span>, but I \
don't know.<br><br><br></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic