<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">rm /usr/lib/x86_64-linux-gnu/libQt5Core.so<br>cp /home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/libQt5Core.so.5 /usr/lib/x86_64-linux-gnu/libQt5Core.so</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">The linker does not care about the versioning after the .so, which is why they are symlinked.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2024 at 10:30 PM umbertofilippo <<a href="mailto:umbertofilippo@tiscali.it">umbertofilippo@tiscali.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>Hopefully this is the last thing I write about this (not for me
but for you :) )</p>
<p>I would like to go for option 1. Just to understand how to
properly do it without messing up the folder.</p>
<p>Let's take one of the many I have to replace as an example:
"/usr/lib/x86_64-linux-gnu/libQt5Core.so"</p>
<p>I'd like to replace this with the counterpart in
"/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib".</p>
<p>I don't have anything with the same exact name. The one I have
there which is similar ends with ".5" ("libQt5Core.so.5").</p>
<p>Then, if I look in the "/usr/lib/x86_64-linux-gnu/", other than
"libQt5Core.so", I also have "libQt5Core.so.5" (same name as the
file in the PyQt5 folder), "libQt5Core.so.5.15", and
"libQt5Core.so.5.15.3".</p>
<p>All these are symlinks except "libQt5Core.so.5.15.3", and all
others seem symlink to this one.</p>
<p>The question is: what am I supposed to do?</p>
<p>Hope I have given enough details.</p>
<p>Thanks!<br>
</p>
<p>Umberto<br>
</p>
<p><br>
</p>
<div>On 4/23/24 16:30, Charles wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Other
options are (1) replace the .so files in that LIBS line with
the one from PyQt5/lib or (2) install pyqt5 from your package
manager (not from pip) and enable your virtualenv to inherit
your global package.<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2024 at
9:25 PM umbertofilippo <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>So I changed LIBS in the Makefile to this:</p>
<p>```</p>
<p>LIBS = $(SUBLIBS)
-L/home/umberto/games/python/memory/sysroot-linux-64/lib
-L/home/umberto/games/python/memory/sysroot-linux-64/lib/python3.11/site-packages/PyQt5
-lQtCore -lQtGui -lQtMultimedia -lQtNetwork -lQtWidgets
-lm -lpython3.11 -lsip -lz -lutil -ldl
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/libQt5Multimedia.so5
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so5
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/libQt5Gui.so5
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/libQt5Network.so5
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/libQt5Core.so5
-lGL -lpthread <br>
</p>
<p>```</p>
<p>I made a copy of the modified Makefile and kept it aside.<br>
</p>
<p>I made sure all the "*.so.5" files exist in
"/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib".</p>
<p>Just to be sure, I deleted the folder "build-linux-64"
and recreated it by doing `pyqtdeploy-build memory.pdt`,
then inside ran `qmake`.</p>
<p>Only then, I replaced the generated Makefile with the
modified copy. At this point, something unexpected (at
least for me) happened: launching the `make` command
somehow overwrites the just replaced one. I tried to
overwrite it during the make process but I guess I am not
quick enough, and I receive the same error as before.</p>
<p>Also, I remember in a previous message in this mail
thread from KC that I had another issues because I was
using gcc versions 11. Don't know if this might be related
though... I am just assuming this has something to do
because the previous message and the part of the erroe
"/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libQtMultimedia.so"<br>
</p>
<p><br>
</p>
<p>Umberto</p>
<p><br>
</p>
<div>On 4/23/24 15:52, Charles wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<blockquote class="gmail_default gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
LIBS = $(SUBLIBS)
-L/home/umberto/games/python/memory/sysroot-linux-64/lib
-L<span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></span>/home/umberto/games/python/memory/sysroot-linux-64/lib/python3.11/site-packages/PyQt5
-lQtCore -lQtGui -lQtMultimedia -lQtNetwork
-lQtWidgets -lm -lpython3.11 -lsip -lz -lutil -ldl
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so<span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></span>
/usr/lib/x86_64-linux-gnu/libQt5Multimedia.so
/usr/lib/x86_64-linux-gnu/libQt5Gui.so
/usr/lib/x86_64-linux-gnu/libQt5Network.so
/usr/lib/x86_64-linux-gnu/libQt5Core.so -lGL -lpthread
</blockquote>
<div><br>
</div>
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">You could try replacing <span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></span>
/usr/lib/x86_64-linux-gnu in that line with
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib
<br>
</div>
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"><br>
</div>
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">Make sure the target .so file
actually exists either by creating symlinks or using
the right path (with .so.3 or whatever).</div>
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"><br>
</div>
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">The problem is that
libQt5Core.so installed by the system package is
dynamically linked to libstdc++ while the one used by
PyQt5 is statically linked, which is why you got the
undefined reference error.<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2024
at 8:17 PM umbertofilippo <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Charles, and thank you again for your time.</p>
<p>I am a bit confused.</p>
<p>I can see I have a file named "libQt5Core.so.5"
in the folder
"/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib".</p>
<p>In "/va/lib/" I don't have anything related to
Qt, but I have lots of "Qt*"-like files in
"/usr/lib/x86_64-linux-gnu/".</p>
<p>Among these, there is one which is called
"libQt5Core.so.5" (just like the one in the other
"PyQt5" folder). This is actually a symlink to the
file in the same directory called
"libQt5Core.so.5.15.3".</p>
<p>Are you suggesting to replace all "libQt*.so"
files in "/usr/lib/x86_64-linux-gnu/" with the
ones from
"/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib"?</p>
<p>Then you wrote "Alternatively you can adjust your
compiler LIB search directory if you know how." I
certainly am no expert and don't know how to do
that. However, i can see an entry in the
"Makefile" inside my project's "build-linux-64"
folder, which looks like:</p>
<p>```</p>
<p>LIBS = $(SUBLIBS)
-L/home/umberto/games/python/memory/sysroot-linux-64/lib
-L/home/umberto/games/python/memory/sysroot-linux-64/lib/python3.11/site-packages/PyQt5
-lQtCore -lQtGui -lQtMultimedia -lQtNetwork
-lQtWidgets -lm -lpython3.11 -lsip -lz -lutil -ldl
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so
/usr/lib/x86_64-linux-gnu/libQt5Multimedia.so
/usr/lib/x86_64-linux-gnu/libQt5Gui.so
/usr/lib/x86_64-linux-gnu/libQt5Network.so
/usr/lib/x86_64-linux-gnu/libQt5Core.so -lGL
-lpthread<br>
</p>
<p>```</p>
<p>What if I try to change the paths from
"/usr/lib/x86_64-linux-gnu/*" to
"/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/Qt5/lib/*"
there? Would it make sense? I see many of the
files in the "PyQt5" folders ends with "*.so.5"
rather than "*.so" so I am afraid this probably
won't work...<br>
</p>
<p>And last but not least, is it normal that one is
supposed to be doing all these modifications? I am
noting down all the steps, but I was wondering if
I did anything wrong that led me to pyqtdeploy not
working as expected.</p>
<p><br>
</p>
<p>Thank you in advance!</p>
<p><br>
</p>
<p>Umberto<br>
</p>
<p><br>
</p>
<div>On 4/22/24 14:06, Charles wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">That
symbol is exported by libQtCore.so.3 from
PyQt5-Qt5. The easiest way to fix it is to
copy/replace libQtCore.so in /var/lib with the
file from PyQt5-Qt5. To be safe it is better
to replace all Qt .so in /var/lib with the
ones from PyQt5-Qt5. Alternatively you can
adjust your compiler LIB search directory if
you know how.<br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Apr
21, 2024 at 11:53 PM umbertofilippo <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks
Charles and thanks Phil for clarifying,<br>
<br>
<br>
I am moving on, but having another issue now.<br>
<br>
The symlink is now fine and I have the file I
accidentally removed <br>
earlier ("libQt5Multimedia.so").<br>
<br>
Now when I try to build with make I get:<br>
<br>
```<br>
<br>
/usr/bin/ld: <br>
/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libQtMultimedia.so:
<br>
undefined reference to `operator
delete[](void*, unsigned long)@Qt_5'<br>
collect2: error: ld returned 1 exit status<br>
make: *** [Makefile:210: memory] Error 1<br>
<br>
```<br>
<br>
Sorry for spamming, I hope I can keep posting
my tries without <br>
disturbing too much.<br>
<br>
<br>
Umberto<br>
<br>
<br>
On 4/21/24 18:49, Phil Thompson wrote:<br>
> <a href="http://QtMultimedia.abi3.so" rel="noreferrer" target="_blank">QtMultimedia.abi3.so</a>
is the Python extension module that implements
<br>
> the bindings to the QtMultimedia C++
library.<br>
><br>
> libQt5Multimedia.so is the QtMultimedia
C++ library itself.<br>
><br>
> Phil<br>
><br>
> On 21/04/2024 17:40, umbertofilippo
wrote:<br>
>> Sorry for messing things up.<br>
>><br>
>> I noticed the right command for the
symlink was `sudo ln -s<br>
>>
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/<a href="http://QtMultimedia.abi3.so" rel="noreferrer" target="_blank">QtMultimedia.abi3.so</a>
<br>
>><br>
>>
/usr/lib/x86_64-linux-gnu/libQtMultimedia.so`
(not<br>
>> "libQt5Multimedia.so", removed the
"5").<br>
>><br>
>> Trying to rebuild again with this I
got:<br>
>><br>
>> ```<br>
>><br>
>> /usr/bin/ld: cannot find<br>
>>
/usr/lib/x86_64-linux-gnu/libQt5Multimedia.so:
No such file or<br>
>> directory<br>
>> collect2: error: ld returned 1 exit
status<br>
>> make: *** [Makefile:210: memory]
Error 1<br>
>><br>
>> ```<br>
>><br>
>> Sorry for the confusion.<br>
>><br>
>> Umberto<br>
>><br>
>> On 4/21/24 18:35, umbertofilippo
wrote:<br>
>>><br>
>>> Hello again,<br>
>>><br>
>>><br>
>>> I gave it a try.<br>
>>><br>
>>> I found the <a href="http://QtMultimedia.abi.so" rel="noreferrer" target="_blank">QtMultimedia.abi.so</a>
file in the folder <br>
>>>
/home/umberto/miniforge3/envs/memory/lib/python3.1/site-packages/PyQt5
<br>
>>> (I am using a virtual Python
environment created with mamba, similar <br>
>>> to conda).<br>
>>><br>
>>> I created the symlink with `sudo
ln -s <br>
>>>
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/<a href="http://QtMultimedia.abi3.so" rel="noreferrer" target="_blank">QtMultimedia.abi3.so</a>
<br>
>>>
/usr/lib/x86_64-linux-gnu/libQt5Multimedia.so`.
After this, I <br>
>>> checked that
/usr/lib/x86_64-linux-gnu/libQt5Multimedia.so
points to <br>
>>>
/home/umberto/miniforge3/envs/memory/lib/python3.12/site-packages/PyQt5/<a href="http://QtMultimedia.abi3.so" rel="noreferrer" target="_blank">QtMultimedia.abi3.so</a>
<br>
>>> by following the symlink and
everything seems fine so far.<br>
>>><br>
>>> I then tried to re-build with
`pyqtdeploy-build memory.pdt`, then cs <br>
>>> to build- directory, `qmake` and
`make`.<br>
>>><br>
>>> I came back to the error I had
before this:<br>
>>><br>
>>> ```<br>
>>><br>
>>> /usr/bin/ld: cannot find
-lQtMultimedia: No such file or directory<br>
>>> collect2: error: ld returned 1
exit status<br>
>>> make: *** [Makefile:210: memory]
Error 1<br>
>>><br>
>>> ```<br>
>>><br>
>>> I sincerely don't know at this
point what I am supposed to do, and I <br>
>>> did not think it wold be this
complicated.<br>
>>><br>
>>> Is it because I am using a
virtual environment maybe?<br>
>>><br>
>>><br>
>>> Thanks,<br>
>>><br>
>>> Umberto<br>
>>><br>
>>><br>
>>> On 4/21/24 12:31, Charles wrote:<br>
>>>> That means instead of
QtMultimedia.so from Qt, it wants to link <br>
>>>> with <a href="http://QtMultimedia.abi3.so" rel="noreferrer" target="_blank">QtMultimedia.abi3.so</a>
<<a href="http://QtMultimedia.abi3.so" rel="noreferrer" target="_blank">http://QtMultimedia.abi3.so</a>>
from PyQt5 <br>
>>>> package instead, so you
should find where that file is located then <br>
>>>> create symlink from
QtMultimedia.so to it.<br>
>>>><br>
>>>> On Sun, Apr 21, 2024 at
5:16 PM umbertofilippo <br>
>>>> <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
>>>><br>
>>>> Thank you Charles,<br>
>>>><br>
>>>><br>
>>>> I symlinked the file, and
now I am receiving yet another error:<br>
>>>><br>
>>>><br>
>>>> `/usr/bin/ld:
pyqtdeploy_main.o:(.data.rel+0x28): undefined<br>
>>>> reference to
`PyInit_QtMultimedia'`<br>
>>>><br>
>>>><br>
>>>> I am (again) a bit stuck
at this point, a google search of<br>
>>>> "PyInit_QtMultimedia"
gave no results...<br>
>>>><br>
>>>> But I am confident that
slowly but steadily, error by error, I<br>
>>>> will be able to
eventually build the application!<br>
>>>><br>
>>>> Of course, if it wasn't
for the support of this mailing list, I<br>
>>>> would not be so optimist
:)<br>
>>>><br>
>>>><br>
>>>> Umberto<br>
>>>><br>
>>>><br>
>>>> On 4/20/24 15:57, Charles
wrote:<br>
>>>>> -lQtMultimedia means
that you are linking with QtMultimedia.so.<br>
>>>>><br>
>>>>> The first thing you
do is check is your /usr/lib directory<br>
>>>>> whether that file
exists: cd /usr/lib && find | grep -i
<br>
>>>>> qtmultimedia<br>
>>>>><br>
>>>>> Then if the file is
not found, you check the list of files your<br>
>>>>> qtmultimedia5-dev
package has. You'll see that it has<br>
>>>>> Qt5Multimedia.so.<br>
>>>>><br>
>>>>> So then what you need
to do is just symlink it<br>
>>>>><br>
>>>>> ln<br>
>>>>>
-s /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so /usr/lib/x86_64-linux-gnu/libQtMultimedia.so<br>
>>>>><br>
>>>>><br>
>>>>> On Sat, Apr 20, 2024
at 8:21 PM umbertofilippo<br>
>>>>> <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
>>>>><br>
>>>>> Hi KC and thanks
again for your suopport!<br>
>>>>><br>
>>>>><br>
>>>>> I have included
it in my toml file, then tried to build the<br>
>>>>> project and I got
the error: "Project ERROR: Unknown<br>
>>>>> module(s) in QT:
multimedia linux"<br>
>>>>><br>
>>>>><br>
>>>>> I then googled
and understood I might need to install<br>
>>>>> QtMultimedia on
my system (Linux Mint 20).<br>
>>>>><br>
>>>>> I then did `sudo
apt install qtmultimedia5-dev<br>
>>>>> libqt5multimedia5
libqt5multimedia5-plugins` (not sure if<br>
>>>>> all were
necessary), and now during the make command I<br>
>>>>> receive a new
error:<br>
>>>>><br>
>>>>><br>
>>>>> ```<br>
>>>>><br>
>>>>> /usr/bin/ld:
cannot find -lQtMultimedia: No such file or<br>
>>>>> directory<br>
>>>>> collect2: error:
ld returned 1 exit status<br>
>>>>> make: ***
[Makefile:210: memory] Error 1<br>
>>>>><br>
>>>>> ```<br>
>>>>><br>
>>>>><br>
>>>>> I tried to find
out how to solve the problem but after some<br>
>>>>> search I could
figure it out.<br>
>>>>><br>
>>>>> I guess it still
has to do with some missing components, but<br>
>>>>> I could not find
the proper page with a list of all the<br>
>>>>> needed libraries.<br>
>>>>><br>
>>>>><br>
>>>>> Do you or anyone
else has it?<br>
>>>>><br>
>>>>><br>
>>>>> Thanks again for
your time, really appreciated<br>
>>>>><br>
>>>>><br>
>>>>> Umberto<br>
>>>>><br>
>>>>><br>
>>>>> On 4/20/24 11:32,
Kaiser Chief wrote:<br>
>>>>>> Hi
umbertofilippo,<br>
>>>>>><br>
>>>>>> The
non-standard python packages should be added
to the<br>
>>>>>>
`sysroot.toml` first.<br>
>>>>>><br>
>>>>>> In fact,
there should be a `PyQt5` block in your<br>
>>>>>>
`sysroot.toml`. (The component plugin for
PyQt5 will work<br>
>>>>>> there). Look
at the `Pyqt5.Linux` section and add<br>
>>>>>> QtMultimedia
to the list of modules (QtWidgets should<br>
>>>>>> already be
there for instance).<br>
>>>>>><br>
>>>>>> Then reload
your .pdt and it should automatically detect<br>
>>>>>> QtMultimedia
which you can tick.<br>
>>>>>><br>
>>>>>> I have
checked your python source code and it does
not seem<br>
>>>>>> that you need
any other dependency so you can ghead with<br>
>>>>>> this change
and build.<br>
>>>>>><br>
>>>>>> Best regards,<br>
>>>>>><br>
>>>>>> KC<br>
>>>>>><br>
>>>>>><br>
>>>>>> On Fri, 19
Apr 2024, 17:16 umbertofilippo,<br>
>>>>>> <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
>>>>>><br>
>>>>>> Hello
everyone,<br>
>>>>>><br>
>>>>>><br>
>>>>>> I finally
had some time to come back to this.<br>
>>>>>><br>
>>>>>> I tried
to build my own application (a simple memory<br>
>>>>>> game,
whose source you can find here:<br>
>>>>>> <a href="https://github.com/umbe1987/memory" rel="noreferrer" target="_blank">https://github.com/umbe1987/memory</a>).<br>
>>>>>><br>
>>>>>> Host
Linux-64 and target Linux-64.<br>
>>>>>><br>
>>>>>> The
deployment process seemed smooth, however when
I<br>
>>>>>> try to
launch my application in the build-linux-64<br>
>>>>>>
directory, I see this error:<br>
>>>>>><br>
>>>>>><br>
>>>>>> ```<br>
>>>>>><br>
>>>>>> Traceback
(most recent call last):<br>
>>>>>> File
"memory.py", line 6, in <module><br>
>>>>>> File "<a href="http://bootstrap-3.11.0.py" rel="noreferrer" target="_blank">bootstrap-3.11.0.py</a><br>
>>>>>> <<a href="http://bootstrap-3.11.0.py" rel="noreferrer" target="_blank">http://bootstrap-3.11.0.py</a>>",
line 1178, in <br>
>>>>>> _find_and_load<br>
>>>>>> File "<a href="http://bootstrap-3.11.0.py" rel="noreferrer" target="_blank">bootstrap-3.11.0.py</a><br>
>>>>>> <<a href="http://bootstrap-3.11.0.py" rel="noreferrer" target="_blank">http://bootstrap-3.11.0.py</a>>",
line 1142, in<br>
>>>>>>
_find_and_load_unlocked<br>
>>>>>>
ModuleNotFoundError: No module named <br>
>>>>>> 'PyQt5.QtMultimedia'<br>
>>>>>><br>
>>>>>> ```<br>
>>>>>><br>
>>>>>> I went
back to the .pdt file (`pyqtdeploy-build<br>
>>>>>>
memory.pdt`), but in the Packages tab I cannot
see<br>
>>>>>>
QtMultimedia listed anywhere.<br>
>>>>>><br>
>>>>>> I could
try to add it manually in the memory.pdt file,<br>
>>>>>> but I was
wondering if I am doing anything wrong.<br>
>>>>>><br>
>>>>>> I am
sharing the content of my pdt file below.<br>
>>>>>><br>
>>>>>> Many
thanks in advance if you wish to help.<br>
>>>>>><br>
>>>>>><br>
>>>>>> Umberto<br>
>>>>>><br>
>>>>>><br>
>>>>>>
memory.pdt<br>
>>>>>><br>
>>>>>> ```<br>
>>>>>><br>
>>>>>> version =
0<br>
>>>>>> sysroot =
""<br>
>>>>>>
sysroots_dir = ""<br>
>>>>>> parts = [
"Python:random", "PyQt:PyQt5.QtWidgets",<br>
>>>>>>
"Python:glob", "Python:os",
"PyQt:PyQt5.QtCore",<br>
>>>>>>
"PyQt:PyQt5.QtGui", "SIP:PyQt5.sip",
"PyQt:PyQt5",]<br>
>>>>>><br>
>>>>>>
[Application]<br>
>>>>>>
entry_point = ""<br>
>>>>>>
is_console = false<br>
>>>>>> is_bundle
= false<br>
>>>>>> name = ""<br>
>>>>>>
qmake_configuration = ""<br>
>>>>>> script =
"memory.py"<br>
>>>>>> syspath =
""<br>
>>>>>><br>
>>>>>>
[Application.Package]<br>
>>>>>> name =
"data"<br>
>>>>>> exclude =
[ "*.pyc", "*.pyd", "*.pyo", "*.pyx",<br>
>>>>>> "*.pxi",
"__pycache__", "*-info", "EGG_INFO", "*.so",]<br>
>>>>>>
[[Application.Package.Content]]<br>
>>>>>> name =
"back.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content]]<br>
>>>>>> name =
"img"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = true<br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"analisiapprofondita.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"cagnaccioselvaggio.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"diamanteocchidileone.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"lameraviglia.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"leggedelpiuforte.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"lucertolacrogiolante.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"ricercaossessiva.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"ruggitodelwurm.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"studioaccurato.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"Tropicalisland.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"wurmarrogante.jpg"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>><br>
>>>>>>
[[Application.Package.Content]]<br>
>>>>>> name =
"sound"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = true<br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"end.wav"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"fail.wav"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>>
[[Application.Package.Content.Content]]<br>
>>>>>> name =
"success.wav"<br>
>>>>>> included
= true<br>
>>>>>>
is_directory = false<br>
>>>>>><br>
>>>>>> ```<br>
>>>>>><br>
>>>>>> On
3/12/24 08:48, umbertofilippo wrote:<br>
>>>>>>><br>
>>>>>>>
Thanks Charles and KC!<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> I was
finally able to build the demo after
installing<br>
>>>>>>> all
the Qt for X11 requirements for Linux!!!<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> For
the records, here is what I had to install on
my<br>
>>>>>>>
machine (Linux Mint 21):<br>
>>>>>>><br>
>>>>>>> Note:
there is a package in the list of requirements<br>
>>>>>>> which
has a missing match on my system, I am marking<br>
>>>>>>> it
down below:<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> sudo
apt-get install libxcb-util-dev<br>
>>>>>>> sudo
apt-get install libfontconfig1-dev<br>
>>>>>>>
libfreetype6-dev libx11-dev libx11-xcb-dev
libxext-dev<br>
>>>>>>>
libxfixes-dev libxi-dev libxrender-dev
libxcb1-dev<br>
>>>>>>>
libxcb-glx0-dev libxcb-keysyms1-dev
libxcb-image0-dev<br>
>>>>>>>
libxcb-shm0-dev libxcb-icccm4-dev
libxcb-sync0-dev<br>
>>>>>>>
libxcb-xfixes0-dev libxcb-shape0-dev
libxcb-randr0-dev<br>
>>>>>>>
libxcb-render-util0-dev libxkbcommon-dev<br>
>>>>>>>
libxkbcommon-x11-dev libxcb-xinerama0-dev #
instead of<br>
>>>>>>>
"libxcd-xinerama-dev"<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> Now,
on my application and then Android! ;)<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On
3/9/24 20:47, Umberto Minora wrote:<br>
>>>>>>>>
Thanks for the hint Charles, I will try to
test the<br>
>>>>>>>>
solution as soon as I can and report back on
the <br>
>>>>>>>> result.<br>
>>>>>>>><br>
>>>>>>>>
As far as I understand, I should do "sudo
apt-get<br>
>>>>>>>>
install libxcb-util-dev" as explained in<br>
>>>>>>>> <a href="https://forum.qt.io/topic/125582/qt-5-15-2-do-not-build-libqxcb-so-but-at-the-same-time-qt-5-14-0-successfully-build-libqxcb-so/4?_=1710013170647&lang=it" rel="noreferrer" target="_blank">https://forum.qt.io/topic/125582/qt-5-15-2-do-not-build-libqxcb-so-but-at-the-same-time-qt-5-14-0-successfully-build-libqxcb-so/4?_=1710013170647&lang=it</a><br>
>>>>>>>> <<a href="https://forum.qt.io/topic/125582/qt-5-15-2-do-not-build-libqxcb-so-but-at-the-same-time-qt-5-14-0-successfully-build-libqxcb-so/4?_=1710013170647&lang=it" rel="noreferrer" target="_blank">https://forum.qt.io/topic/125582/qt-5-15-2-do-not-build-libqxcb-so-but-at-the-same-time-qt-5-14-0-successfully-build-libqxcb-so/4?_=1710013170647&lang=it</a>><br>
>>>>>>>>
and run "build-demo.py" again.<br>
>>>>>>>><br>
>>>>>>>>
Will be back soon.<br>
>>>>>>>><br>
>>>>>>>>
Umberto<br>
>>>>>>>><br>
>>>>>>>>
Il 9 mar 2024 15:48, Charles <<a href="mailto:peacech@gmail.com" target="_blank">peacech@gmail.com</a>><br>
>>>>>>>>
<mailto:<a href="mailto:peacech@gmail.com" target="_blank">peacech@gmail.com</a>>
ha scritto:<br>
>>>>>>>><br>
>>>>>>>>
Do you have libxcb.so platform
plugin in your qt<br>
>>>>>>>>
directory?<br>
>>>>>>>><br>
>>>>>>>>
If not you need to rebuild qt
again, make sure<br>
>>>>>>>>
that requirements listed at<br>
>>>>>>>> <a href="https://doc.qt.io/qt-5/linux-requirements.html" rel="noreferrer" target="_blank">https://doc.qt.io/qt-5/linux-requirements.html</a><br>
>>>>>>>>
are installed and make sure
the xcb platform<br>
>>>>>>>>
plugin is built.<br>
>>>>>>>><br>
>>>>>>>>
On Sat, Mar 9, 2024 at 8:38 PM
umbertofilippo<br>
>>>>>>>>
<<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
wrote:<br>
>>>>>>>><br>
>>>>>>>>
Hello everyone,<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
just a quick update: I did
the KC's three<br>
>>>>>>>>
lines trick and it did the
job.<br>
>>>>>>>><br>
>>>>>>>>
I am now stuck at yet
another error, which is<br>
>>>>>>>><br>
>>>>>>>>
Generating the
Makefiles...<br>
>>>>>>>>
/home/umberto/games/python/pyqt-demo/sysroot-linux-64/Qt/bin/qmake<br>
>>>>>>>>
-recursive PyQt5.pro<br>
>>>>>>>>
sip-install:<br>
>>>>>>>>
'/home/umberto/games/python/pyqt-demo/sysroot-linux-64/Qt/bin/qmake
<br>
>>>>>>>><br>
>>>>>>>>
-recursive PyQt5.pro'
failed returning 3<br>
>>>>>>>>
Info: creating stash file<br>
>>>>>>>>
/tmp/tmphwkq3ix1/.qmake.stash<br>
>>>>>>>>
Reading
/tmp/tmphwkq3ix1/QtCore/QtCore.pro<br>
>>>>>>>>
Reading <br>
>>>>>>>>
/tmp/tmphwkq3ix1/QtNetwork/QtNetwork.pro<br>
>>>>>>>>
Reading
/tmp/tmphwkq3ix1/QtGui/QtGui.pro<br>
>>>>>>>>
Reading <br>
>>>>>>>>
/tmp/tmphwkq3ix1/QtWidgets/QtWidgets.pro<br>
>>>>>>>>
Reading<br>
>>>>>>>>
/tmp/tmphwkq3ix1/QtX11Extras/QtX11Extras.pro<br>
>>>>>>>>
Project ERROR: Unknown
module(s) in QT: <br>
>>>>>>>> x11extras<br>
>>>>>>>>
pyqtdeploy-sysroot:
execution of<br>
>>>>>>>>
'sip-install' failed:
returned exit code 1<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I am attaching the whole
log again in case<br>
>>>>>>>>
it's useful to better
understand what went <br>
>>>>>>>> wrong.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Any idea how to move on
from here?<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Sorry for spamming but I
hope this thread not<br>
>>>>>>>>
only will fix my issues
but also will serve<br>
>>>>>>>>
as a reference for
building with a Linux<br>
>>>>>>>>
machine (or me and for
others hopefully).<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Umberto<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
On 3/8/24 20:32, Kaiser
Chief wrote:<br>
>>>>>>>><br>
>>>>>>>>
Hi,<br>
>>>>>>>><br>
>>>>>>>>
"qt-everywhere-opensource-src-5.15.10.tar.xz"<br>
>>>>>>>>
is the right file you
are looking for.<br>
>>>>>>>><br>
>>>>>>>>
Unfortunately,<br>
>>>>>>>>
"pyqtdeploy/sysroot/plugins/Qt.py" is<br>
>>>>>>>>
looking for
'qt-everywhere-src-{}.tar.xz'<br>
>>>>>>>><br>
>>>>>>>>
You could fix that
line (#53) in<br>
>>>>>>>>
"pyqtdeploy/sysroot/plugins/Qt.py"with:<br>
>>>>>>>>
`
qt-everywhere-opensource-src-{}.tar.xz `<br>
>>>>>>>><br>
>>>>>>>>
However, you might
encounter problems<br>
>>>>>>>>
down the line
probably...<br>
>>>>>>>><br>
>>>>>>>>
I would recommend to
stick with Qt5.15.2<br>
>>>>>>>>
and do necessary
changes.<br>
>>>>>>>>
Alternatively, you
could built<br>
>>>>>>>>
qt-everywhere-opensource-src-5.15.10.tar.xz<br>
>>>>>>>>
from source manually
and tell pyqtdeploy<br>
>>>>>>>>
where to look for Qt
install (but that's<br>
>>>>>>>>
a bit more painful).<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Best regards,<br>
>>>>>>>><br>
>>>>>>>>
KC<br>
>>>>>>>><br>
>>>>>>>>
Le ven. 8 mars 2024
à 19:21,<br>
>>>>>>>>
umbertofilippo<br>
>>>>>>>> <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>>
a écrit :<br>
>>>>>>>><br>
>>>>>>>>
Thanks again for
the feedback,<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I have just tried
to update the<br>
>>>>>>>>
sysroot.toml like
this:<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
# Qt<br>
>>>>>>>>
##########################################################################<br>
>>>>>>>><br>
>>>>>>>>
[Qt]<br>
>>>>>>>>
version =
"5.15.10" # original was<br>
>>>>>>>>
"5.15.2"<br>
>>>>>>>>
edition =
"opensource"<br>
>>>>>>>><br>
>>>>>>>>
and now it seems
the link to download<br>
>>>>>>>>
the qt source can
no longer be found.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Qt: installing
component...<br>
>>>>>>>>
Qt: looking for<br>
>>>>>>>>
'qt-everywhere-src-5.15.10.tar.xz' in<br>
>>>>>>>>
/home/umberto/games/python/pyqt-demo.<br>
>>>>>>>>
Qt: downloading<br>
>>>>>>>>
'qt-everywhere-src-5.15.10.tar.xz'<br>
>>>>>>>>
from<br>
>>>>>>>> <a href="https://download.qt.io/archive/qt/5.15/5.15.10/single/." rel="noreferrer" target="_blank">https://download.qt.io/archive/qt/5.15/5.15.10/single/.</a>..<br>
>>>>>>>>
Qt:<br>
>>>>>>>> '<a href="https://download.qt.io/archive/qt/5.15/5.15.10/single/qt-everywhere-src-5.15.10.tar.xz" rel="noreferrer" target="_blank">https://download.qt.io/archive/qt/5.15/5.15.10/single/qt-everywhere-src-5.15.10.tar.xz</a>'<br>
>>>>>>>>
was not found.<br>
>>>>>>>>
pyqtdeploy-sysroot: Qt: unable to<br>
>>>>>>>>
find<br>
>>>>>>>>
'/home/umberto/.pyqtdeploy/cache/qt-everywhere-src-5.15.10.tar.xz'.
<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
The only similar
thing I can see in<br>
>>>>>>>> <a href="https://download.qt.io/archive/qt/5.15/5.15.10/single/" rel="noreferrer" target="_blank">https://download.qt.io/archive/qt/5.15/5.15.10/single/</a><br>
>>>>>>>>
is<br>
>>>>>>>>
"qt-everywhere-opensource-src-5.15.10.tar.xz"<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
If there is no
easy way to solve this<br>
>>>>>>>>
you can think of I
will probably try<br>
>>>>>>>>
to test adding
those 3 lines to<br>
>>>>>>>>
qtbase/src/corelib/global/qglobal.h<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Thanks again so
much for your kind<br>
>>>>>>>>
and feedback, much
appreciated!<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Umberto<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
On 3/8/24 19:38,
Kaiser Chief wrote:<br>
>>>>>>>><br>
>>>>>>>>
To complement
Charles' answer, it<br>
>>>>>>>>
seems like
someone found a quick<br>
>>>>>>>>
fix with
GCC11, in case you are<br>
>>>>>>>>
reluctant to
move back to GCC10:<br>
>>>>>>>> <a href="https://forum.qt.io/topic/136672/error-installing-qt-everywhere-src-5-15-2-on-ubuntu-22-04/2" rel="noreferrer" target="_blank">https://forum.qt.io/topic/136672/error-installing-qt-everywhere-src-5-15-2-on-ubuntu-22-04/2</a><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
add these 3
lines at the top of<br>
>>>>>>>>
qtbase/src/corelib/global/qglobal.h<br>
>>>>>>>>
: (I haven't
tested that)<br>
>>>>>>>>
```<br>
>>>>>>>>
#ifdef
__cplusplus<br>
>>>>>>>>
#include
<limits><br>
>>>>>>>>
#endif<br>
>>>>>>>>
```<br>
>>>>>>>><br>
>>>>>>>>
For ref, the
QT bug associated<br>
>>>>>>>>
is:<br>
>>>>>>>> <a href="https://bugreports.qt.io/browse/QTBUG-90395" rel="noreferrer" target="_blank">https://bugreports.qt.io/browse/QTBUG-90395</a><br>
>>>>>>>>
It has been
fixed for ** QT5.15.9<br>
>>>>>>>> <<a href="https://bugreports.qt.io/issues/?jql=project+%3D+QTBUG+AND+fixVersion+%3D+5.15.9" rel="noreferrer" target="_blank">https://bugreports.qt.io/issues/?jql=project+%3D+QTBUG+AND+fixVersion+%3D+5.15.9</a>>,<br>
>>>>>>>>
but since you
are using the<br>
>>>>>>>>
default
QT5.15.2, well it's not<br>
>>>>>>>>
fixed.<br>
>>>>>>>><br>
>>>>>>>>
Best regards,<br>
>>>>>>>><br>
>>>>>>>>
KC<br>
>>>>>>>><br>
>>>>>>>>
Le ven. 8 mars
2024 à 18:28,<br>
>>>>>>>>
Charles <<a href="mailto:peacech@gmail.com" target="_blank">peacech@gmail.com</a>>
a <br>
>>>>>>>> écrit :<br>
>>>>>>>><br>
>>>>>>>>
With C++
the relevant error<br>
>>>>>>>>
is the
first error line, the<br>
>>>>>>>>
rest is
usually noise. If you<br>
>>>>>>>>
google gcc
numeric_limits is<br>
>>>>>>>>
not a
class template you will<br>
>>>>>>>>
find<br>
>>>>>>>> <a href="https://bugs.gentoo.org/768342" rel="noreferrer" target="_blank">https://bugs.gentoo.org/768342</a><br>
>>>>>>>><br>
>>>>>>>>
If you use
gcc 11 then use<br>
>>>>>>>>
gcc 10
otherwise patch qt<br>
>>>>>>>>
headers as
in<br>
>>>>>>>> <a href="https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d54be896563102786238893a9c645b8bdb43ef" rel="noreferrer" target="_blank">https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d54be896563102786238893a9c645b8bdb43ef</a><br>
>>>>>>>><br>
>>>>>>>>
On Sat,
Mar 9, 2024 at<br>
>>>>>>>>
12:49 AM
umbertofilippo<br>
>>>>>>>> <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>><br>
>>>>>>>>
wrote:<br>
>>>>>>>><br>
>>>>>>>>
Moving
on,<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I have
tried to remove<br>
>>>>>>>>
OpenSSL from the<br>
>>>>>>>>
"sysroot.toml" since it<br>
>>>>>>>>
is not
required, and now<br>
>>>>>>>>
the
process seems to go<br>
>>>>>>>>
further, but I am stuck<br>
>>>>>>>>
at a
new error:<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Verifying host<br>
>>>>>>>>
architecture 'linux-64'...<br>
>>>>>>>>
Verifying target<br>
>>>>>>>>
architecture 'linux-64'...<br>
>>>>>>>>
zlib:
verifying...<br>
>>>>>>>>
Qt:
verifying...<br>
>>>>>>>>
Python: verifying...<br>
>>>>>>>>
SIP:
verifying...<br>
>>>>>>>>
PyQt:
verifying...<br>
>>>>>>>>
PyQt3D: verifying...<br>
>>>>>>>>
PyQtChart: verifying...<br>
>>>>>>>>
PyQtDataVisualization:<br>
>>>>>>>>
verifying...<br>
>>>>>>>>
PyQtNetworkAuth: verifying...<br>
>>>>>>>>
PyQtPurchasing: verifying...<br>
>>>>>>>>
QScintilla: verifying...<br>
>>>>>>>>
zlib:
installing <br>
>>>>>>>> component...<br>
>>>>>>>>
Qt:
installing <br>
>>>>>>>> component...<br>
>>>>>>>>
Qt:
downloading<br>
>>>>>>>>
'qt-everywhere-src-5.15.2.tar.xz'<br>
>>>>>>>>
from<br>
>>>>>>>> <a href="https://download.qt.io/archive/qt/5.15/5.15.2/single/." rel="noreferrer" target="_blank">https://download.qt.io/archive/qt/5.15/5.15.2/single/.</a>..<br>
>>>>>>>>
pyqtdeploy-sysroot:<br>
>>>>>>>>
execution of<br>
>>>>>>>> './configure'
failed:<br>
>>>>>>>>
returned exit code 2<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
What
can be the cause of<br>
>>>>>>>>
this
new error? I see<br>
>>>>>>>>
there
is a new folder now<br>
>>>>>>>>
in the
original pyqt demo<br>
>>>>>>>>
directory called<br>
>>>>>>>>
"sysroot-linux-64" and<br>
>>>>>>>>
inside
I see there's<br>
>>>>>>>>
"sysroot-linux-64/build/qt-everywhere-src-5.15.2"<br>
>>>>>>>>
with a
"configure" file,<br>
>>>>>>>>
but
other than this I<br>
>>>>>>>>
have
no clue sincerely on<br>
>>>>>>>>
why it
is failing.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I have
attached the<br>
>>>>>>>>
content of running<br>
>>>>>>>> build-demo.py
with --verbose<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Hope
someone can help me.<br>
>>>>>>>>
Thanks.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
On
3/8/24 12:18,<br>
>>>>>>>>
umbertofilippo wrote:<br>
>>>>>>>><br>
>>>>>>>>
Hi
and many thanks<br>
>>>>>>>>
for you feedback!<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
First of all let me<br>
>>>>>>>>
tell that I am very<br>
>>>>>>>> interested in
finding<br>
>>>>>>>>
a
solution to this<br>
>>>>>>>>
problem, and I will<br>
>>>>>>>>
try to do my best if<br>
>>>>>>>>
I
can contribute in<br>
>>>>>>>>
case it's needed.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I
just checked, and<br>
>>>>>>>>
this is what I can<br>
>>>>>>>>
see in my<br>
>>>>>>>>
/usr/include/openssl/opensslv.h<br>
>>>>>>>>
file. Cannot tell<br>
>>>>>>>>
though if pyqtdeploy<br>
>>>>>>>>
is
supposed to work<br>
>>>>>>>>
or
not given these<br>
>>>>>>>>
lines...<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
/*<br>
>>>>>>>>
*
SECTION 4:<br>
>>>>>>>>
BACKWARD COMPATIBILITY<br>
>>>>>>>>
*/<br>
>>>>>>>><br>
>>>>>>>>
#
define<br>
>>>>>>>>
OPENSSL_VERSION_TEXT<br>
>>>>>>>>
"OpenSSL 3.0.2 15 Mar<br>
>>>>>>>>
2022"<br>
>>>>>>>><br>
>>>>>>>>
/*
Synthesize<br>
>>>>>>>>
OPENSSL_VERSION_NUMBER<br>
>>>>>>>>
with the layout<br>
>>>>>>>> 0xMNN00PPSL
*/<br>
>>>>>>>>
#
ifdef<br>
>>>>>>>>
OPENSSL_VERSION_PRE_RELEASE<br>
>>>>>>>>
#
define<br>
>>>>>>>>
_OPENSSL_VERSION_PRE_RELEASE<br>
>>>>>>>>
0x0L<br>
>>>>>>>>
#
else<br>
>>>>>>>>
#
define<br>
>>>>>>>>
_OPENSSL_VERSION_PRE_RELEASE<br>
>>>>>>>>
0xfL<br>
>>>>>>>>
#
endif<br>
>>>>>>>>
#
define<br>
>>>>>>>>
OPENSSL_VERSION_NUMBER \<br>
>>>>>>>>
(<br>
>>>>>>>>
(OPENSSL_VERSION_MAJOR<<28)<br>
>>>>>>>>
\<br>
>>>>>>>>
|(OPENSSL_VERSION_MINOR<<20)<br>
>>>>>>>>
\<br>
>>>>>>>>
|(OPENSSL_VERSION_PATCH<<4)<br>
>>>>>>>>
\<br>
>>>>>>>>
|_OPENSSL_VERSION_PRE_RELEASE<br>
>>>>>>>>
)<br>
>>>>>>>><br>
>>>>>>>>
#
ifdef __cplusplus<br>
>>>>>>>>
}<br>
>>>>>>>>
#
endif<br>
>>>>>>>><br>
>>>>>>>>
#
include<br>
>>>>>>>>
<openssl/macros.h><br>
>>>>>>>>
#
ifndef<br>
>>>>>>>>
OPENSSL_NO_DEPRECATED_3_0<br>
>>>>>>>>
#
define<br>
>>>>>>>>
HEADER_OPENSSLV_H<br>
>>>>>>>>
#
endif<br>
>>>>>>>><br>
>>>>>>>>
#endif<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Umberto<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
On
3/7/24 19:11,<br>
>>>>>>>>
Kaiser Chief wrote:<br>
>>>>>>>><br>
>>>>>>>>
Hi,<br>
>>>>>>>><br>
>>>>>>>>
To complement my<br>
>>>>>>>> previous
message<br>
>>>>>>>>
(and after doing<br>
>>>>>>>>
a quick search<br>
>>>>>>>> through the<br>
>>>>>>>> source code):<br>
>>>>>>>>
* The script<br>
>>>>>>>> "OpenSSL.py"
is<br>
>>>>>>>> looking for<br>
>>>>>>>>
"OPENSSL_VERSION_NUMBER"<br>
>>>>>>>>
in<br>
>>>>>>>>
"/usr/include/openssl/opensslv.h"<br>
>>>>>>>>
* In OpenSSL<br>
>>>>>>>> 1.1.1 (which
is<br>
>>>>>>>> installed on
my<br>
>>>>>>>> Linux), I can
see<br>
>>>>>>>>
the line "#define<br>
>>>>>>>>
OPENSSL_VERSION_NUMBER"<br>
>>>>>>>>
in<br>
>>>>>>>>
"/usr/include/openssl/opensslv.h".<br>
>>>>>>>><br>
>>>>>>>>
Can you check<br>
>>>>>>>>
that you have<br>
>>>>>>>>
that line in your<br>
>>>>>>>> header file
too?<br>
>>>>>>>><br>
>>>>>>>>
If not, it's<br>
>>>>>>>> probably that<br>
>>>>>>>> OpenSSL
updated<br>
>>>>>>>> their header<br>
>>>>>>>> files and put
the<br>
>>>>>>>>
VERSION_NUMBER<br>
>>>>>>>> somewhere
else...<br>
>>>>>>>><br>
>>>>>>>>
If you want to<br>
>>>>>>>>
run the demo, I<br>
>>>>>>>> would
recommend<br>
>>>>>>>>
you install the<br>
>>>>>>>> default
versions<br>
>>>>>>>>
as written in the<br>
>>>>>>>>
`sysroot.toml`<br>
>>>>>>>><br>
>>>>>>>>
If there are<br>
>>>>>>>> fixes to make
for<br>
>>>>>>>>
each "version<br>
>>>>>>>> grepping", I<br>
>>>>>>>> believe that
Phil<br>
>>>>>>>>
had a way to<br>
>>>>>>>> contribute to<br>
>>>>>>>> plugins for<br>
>>>>>>>> pyqtdeploy,
but<br>
>>>>>>>> can't
remember<br>
>>>>>>>> where...<br>
>>>>>>>><br>
>>>>>>>>
Best regards,<br>
>>>>>>>><br>
>>>>>>>>
KC<br>
>>>>>>>><br>
>>>>>>>> Le jeu. 7
mars<br>
>>>>>>>>
2024 à 17:56,<br>
>>>>>>>> Kaiser Chief<br>
>>>>>>>> <<a href="mailto:kaiser.chiefmail@gmail.com" target="_blank">kaiser.chiefmail@gmail.com</a>><br>
>>>>>>>>
a écrit :<br>
>>>>>>>><br>
>>>>>>>> Hi,<br>
>>>>>>>><br>
>>>>>>>> According to<br>
>>>>>>>> the sysroot<br>
>>>>>>>> help page<br>
>>>>>>>> (<a href="https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/sysroot.html#openssl" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/sysroot.html#openssl</a>),
<br>
>>>>>>>><br>
>>>>>>>> if you have<br>
>>>>>>>> configured<br>
>>>>>>>> your<br>
>>>>>>>>
`sysroot.toml`<br>
>>>>>>>> like this:<br>
>>>>>>>> ```<br>
>>>>>>>><br>
>>>>>>>>
[OpenSSL.linux]<br>
>>>>>>>> version = ""<br>
>>>>>>>>
install_from_source = false<br>
>>>>>>>><br>
>>>>>>>> ```<br>
>>>>>>>><br>
>>>>>>>> Then, on<br>
>>>>>>>> Linux, the<br>
>>>>>>>> OpenSSL<br>
>>>>>>>> library used<br>
>>>>>>>> will be the<br>
>>>>>>>> one installed<br>
>>>>>>>> on your OS<br>
>>>>>>>> with no<br>
>>>>>>>> assumption on<br>
>>>>>>>> the version<br>
>>>>>>>> (so that<br>
>>>>>>>> should work<br>
>>>>>>>> in your
example).<br>
>>>>>>>> Now, that's<br>
>>>>>>>> what is<br>
>>>>>>>> provided in<br>
>>>>>>>> the demo<br>
>>>>>>>> folder for<br>
>>>>>>>>
`pyqtdeploy-3.3.0`,<br>
>>>>>>>> so that's
odd.<br>
>>>>>>>><br>
>>>>>>>> Therefore, it<br>
>>>>>>>> could be that<br>
>>>>>>>> the<br>
>>>>>>>>
`pyqtdeploy-sysroot`<br>
>>>>>>>> functionality<br>
>>>>>>>> is struggling<br>
>>>>>>>> to extract<br>
>>>>>>>> the version<br>
>>>>>>>> number from<br>
>>>>>>>> your<br>
>>>>>>>> OS-installed<br>
>>>>>>>> OpenSSL.<br>
>>>>>>>><br>
>>>>>>>> ---<br>
>>>>>>>><br>
>>>>>>>> I am not of<br>
>>>>>>>> great help<br>
>>>>>>>> with that<br>
>>>>>>>> comment,<br>
>>>>>>>> however, I<br>
>>>>>>>> would like to<br>
>>>>>>>> suggest, if<br>
>>>>>>>> it's your<br>
>>>>>>>> first time<br>
>>>>>>>> with<br>
>>>>>>>> pyqtdeploy to<br>
>>>>>>>> give a try at<br>
>>>>>>>> my Github
repo:<br>
>>>>>>>><br>
>>>>>>>> <a href="https://github.com/achille-martin/pyqt-crom" rel="noreferrer" target="_blank">https://github.com/achille-martin/pyqt-crom</a><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> This repo<br>
>>>>>>>> aims at<br>
>>>>>>>> demonstrating<br>
>>>>>>>> how beginner<br>
>>>>>>>> devs,<br>
>>>>>>>> intermediate<br>
>>>>>>>> devs and<br>
>>>>>>>> expert devs<br>
>>>>>>>> can benefit<br>
>>>>>>>> from
pyqtdeploy.<br>
>>>>>>>> It also<br>
>>>>>>>> offers a few<br>
>>>>>>>> simple<br>
>>>>>>>> tutorials to<br>
>>>>>>>> get started<br>
>>>>>>>> with<br>
>>>>>>>> pyqtdeploy<br>
>>>>>>>> (simpler than<br>
>>>>>>>> the demo in<br>
>>>>>>>> the official<br>
>>>>>>>> pyqtdeploy<br>
>>>>>>>> package) and<br>
>>>>>>>> optimises<br>
>>>>>>>> bits of the<br>
>>>>>>>> tool<br>
>>>>>>>> regarding the<br>
>>>>>>>> user<br>
>>>>>>>> interface<br>
>>>>>>>> (for now).<br>
>>>>>>>><br>
>>>>>>>> I can support<br>
>>>>>>>> you with your<br>
>>>>>>>> initial<br>
>>>>>>>> journey on<br>
>>>>>>>> discovering<br>
>>>>>>>> pyqtdeploy<br>
>>>>>>>> through my<br>
>>>>>>>> repo if you
wish.<br>
>>>>>>>><br>
>>>>>>>> Best regards,<br>
>>>>>>>><br>
>>>>>>>> KC<br>
>>>>>>>><br>
>>>>>>>> Le jeu. 7<br>
>>>>>>>> mars 2024<br>
>>>>>>>> à 17:06,<br>
>>>>>>>>
umbertofilippo<br>
>>>>>>>> <<a href="mailto:umbertofilippo@tiscali.it" target="_blank">umbertofilippo@tiscali.it</a>><br>
>>>>>>>> a écrit :<br>
>>>>>>>><br>
>>>>>>>>
Hello<br>
>>>>>>>>
everyone,<br>
>>>>>>>>
first<br>
>>>>>>>>
time here<br>
>>>>>>>>
for me :)<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I was<br>
>>>>>>>>
giving<br>
>>>>>>>>
pyqtdeploy<br>
>>>>>>>>
a try and<br>
>>>>>>>>
I am<br>
>>>>>>>>
stuck at<br>
>>>>>>>>
the very<br>
>>>>>>>>
first<br>
>>>>>>>>
step of<br>
>>>>>>>>
the<br>
>>>>>>>>
"Building<br>
>>>>>>>>
the Demo"<br>
>>>>>>>>
page.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I am on a<br>
>>>>>>>>
Linux-64<br>
>>>>>>>>
machine.<br>
>>>>>>>>
I am<br>
>>>>>>>>
following<br>
>>>>>>>>
the<br>
>>>>>>>>
<br>
>>>>>>>> tutorial at<br>
>>>>>>>> <a href="https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/demo.html" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/demo.html</a>
<br>
>>>>>>>><br>
>>>>>>>>
and<br>
>>>>>>>>
I have<br>
>>>>>>>>
downloaded<br>
>>>>>>>>
the demo<br>
>>>>>>>>
files from<br>
>>>>>>>> <a href="https://files.pythonhosted.org/packages/44/d4/978017382f0ecc48601944c3fc0f58a5c5075a1d3acd48d09c11ee471b05/pyqtdeploy-3.3.0.tar.gz" rel="noreferrer" target="_blank">https://files.pythonhosted.org/packages/44/d4/978017382f0ecc48601944c3fc0f58a5c5075a1d3acd48d09c11ee471b05/pyqtdeploy-3.3.0.tar.gz</a><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
I have<br>
>>>>>>>>
created a<br>
>>>>>>>>
virtual<br>
>>>>>>>>
python<br>
>>>>>>>>
<br>
>>>>>>>> environment<br>
>>>>>>>>
with the<br>
>>>>>>>>
following<br>
>>>>>>>>
packages<br>
>>>>>>>>
and<br>
>>>>>>>>
versions<br>
>>>>>>>>
installed:<br>
>>>>>>>><br>
>>>>>>>>
<br>
>>>>>>>> Name,Version<br>
>>>>>>>>
_libgcc_mutex,0.1<br>
>>>>>>>>
_openmp_mutex,4.5<br>
>>>>>>>>
<br>
>>>>>>>> bzip2,1.0.8<br>
>>>>>>>>
ca-certificates,2024.2.2<br>
>>>>>>>>
ld_impl_linux-64,2.40<br>
>>>>>>>>
<br>
>>>>>>>>
libexpat,2.6.1<br>
>>>>>>>>
<br>
>>>>>>>> libffi,3.4.2<br>
>>>>>>>>
<br>
>>>>>>>>
libgcc-ng,13.2.0<br>
>>>>>>>>
<br>
>>>>>>>>
libgomp,13.2.0<br>
>>>>>>>>
<br>
>>>>>>>> libnsl,2.0.1<br>
>>>>>>>>
<br>
>>>>>>>>
libsqlite,3.45.1<br>
>>>>>>>>
<br>
>>>>>>>>
libuuid,2.38.1<br>
>>>>>>>>
<br>
>>>>>>>>
libxcrypt,4.4.36<br>
>>>>>>>>
<br>
>>>>>>>>
libzlib,1.2.13<br>
>>>>>>>>
<br>
>>>>>>>> ncurses,6.4<br>
>>>>>>>>
<br>
>>>>>>>> openssl,3.2.1<br>
>>>>>>>>
pip,24.0<br>
>>>>>>>>
<br>
>>>>>>>> pyqt5,5.15.10<br>
>>>>>>>>
<br>
>>>>>>>>
pyqt5-qt5,5.15.2<br>
>>>>>>>>
pyqt5-sip,12.13.0<br>
>>>>>>>>
<br>
>>>>>>>>
pyqtdeploy,3.3.0<br>
>>>>>>>>
<br>
>>>>>>>> python,3.12.2<br>
>>>>>>>>
<br>
>>>>>>>> readline,8.2<br>
>>>>>>>>
setuptools,69.1.1<br>
>>>>>>>>
tk,8.6.13<br>
>>>>>>>>
<br>
>>>>>>>> toml,0.10.2<br>
>>>>>>>>
<br>
>>>>>>>> tzdata,2024a<br>
>>>>>>>>
<br>
>>>>>>>> wheel,0.42.0<br>
>>>>>>>>
xz,5.2.6<br>
>>>>>>>><br>
>>>>>>>>
I have<br>
>>>>>>>>
tried to<br>
>>>>>>>>
run the<br>
>>>>>>>>
command<br>
>>>>>>>>
"python<br>
>>>>>>>>
<br>
>>>>>>>>
build-demo.py"<br>
>>>>>>>>
straight<br>
>>>>>>>>
away,<br>
>>>>>>>>
but I am<br>
>>>>>>>>
getting<br>
>>>>>>>>
the<br>
>>>>>>>>
following<br>
>>>>>>>>
error:<br>
>>>>>>>><br>
>>>>>>>>
OpenSSL:<br>
>>>>>>>>
<br>
>>>>>>>> verifying...<br>
>>>>>>>>
OpenSSL:<br>
>>>>>>>>
<br>
>>>>>>>> determining<br>
>>>>>>>>
installed<br>
>>>>>>>>
version <br>
>>>>>>>> from<br>
>>>>>>>>
'/usr/include/openssl/opensslv.h'.<br>
>>>>>>>>
pyqtdeploy-sysroot:<br>
>>>>>>>>
OpenSSL:<br>
>>>>>>>>
unable to<br>
>>>>>>>>
extract<br>
>>>>>>>>
the<br>
>>>>>>>>
version<br>
>>>>>>>>
number.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
OpenSSL<br>
>>>>>>>>
is<br>
>>>>>>>>
installed<br>
>>>>>>>>
on my<br>
>>>>>>>>
machine<br>
>>>>>>>>
and the<br>
>>>>>>>>
result of<br>
>>>>>>>>
doing<br>
>>>>>>>>
"openssl<br>
>>>>>>>>
version"<br>
>>>>>>>>
is<br>
>>>>>>>>
"OpenSSL<br>
>>>>>>>>
3.2.1 30<br>
>>>>>>>>
Jan 2024<br>
>>>>>>>>
(Library:<br>
>>>>>>>>
OpenSSL<br>
>>>>>>>>
3.2.1 30<br>
>>>>>>>>
Jan 2024)"<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Am I<br>
>>>>>>>>
supposed<br>
>>>>>>>>
to<br>
>>>>>>>>
install<br>
>>>>>>>>
the exact<br>
>>>>>>>>
versions<br>
>>>>>>>>
of all<br>
>>>>>>>>
the<br>
>>>>>>>>
components<br>
>>>>>>>>
found<br>
>>>>>>>>
in the<br>
>>>>>>>>
<br>
>>>>>>>>
""sysroot.toml"<br>
>>>>>>>>
file to<br>
>>>>>>>>
be able<br>
>>>>>>>>
to<br>
>>>>>>>>
<br>
>>>>>>>> run "python<br>
>>>>>>>>
<br>
>>>>>>>>
build-demo.py"<br>
>>>>>>>><br>
>>>>>>>>
<br>
>>>>>>>> successfully?<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Thanks,<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>>
Umberto<br>
>>>>>>>><br>
>>>>>>>><br>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote></div>