I am trying to freeze an app on Ubuntu 14.10. The app uses PyQt5 and runs
under Python3.4

Cxfreeze creates a bundle into which it copies all the dependent libraries,
for example libQt5Core.so.5, libQt5Widgets.so.5, and so forth. It also
copies the PyQt libs such as PyQt5.QtCore.so, PyQt5.QtWidgets.so, etc.

When I move this bundle to another Ubuntu system where this version of
Python and Qt are not installed, is I get the dreaded message,

  Cannot mix incompatible Qt library (version 0x50300) with this library
> (version 0x50401)
>   Aborted (core dumped)
>

I think it is trying to load from the local Qt (Ubuntu has some version of
Qt installed by default). On that system, after copying the bundle from the
dev system, I see this:

$ cd Desktop/PPQT2 # the bundle made by cxfreeze
>
$ ldd libQt5Widgets.so.5
>     linux-gate.so.1 =>  (0xb779c000)
>     libQt5Gui.so.5 => /home/dcortesi/Desktop/PPQT2/./libQt5Gui.so.5
> (0xb6b49000)
>     libQt5Core.so.5 => /home/dcortesi/Desktop/PPQT2/./libQt5Core.so.5
> (0xb6605000)

   ...
>

That is good! libQt5Widgets is linking to the bundled copy of libQt5Gui and
so on.

However:

$ ldd PyQt5.QtWidgets.so
>     linux-gate.so.1 =>  (0xb7776000)
>     libQt5Widgets.so.5 => /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
> (0xb6afb000)
>

That is bad, PyQt5.QtWidgets is linking to the local native libQt5Widgets
-- NOT the one bundled right there alongside it.

Why is this? Am I doing something wrong? Or is something needed in the
hooks for PyQt5?

Thanks for any help,

Dave Cortesi
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to