How does one set up a qt.conf to allow distribution of a Python + Qt5 based application built with mingw64 so that it may be installed in whatever directory the user wants???? On the target system the binary files may not be modified, only a configuration file like qt.conf may be created (or some environmental variable set).

Background:

I finally made pymol work with Qt5 in a mingw64 terminal, in cmd.exe, and from a .bat file. This is from the original location:

 C:\progs\msys2\home\user\PymolU

Copy that entire directory to

 C:\Temp\PymolU

And it still works when started from cmd.exe and the bat file (which is in the top of the directory). However, that copy did not work on another system where msys2 (etc.) was not also installed. On the build machine Msys2 is installed in:

 C:\progs\msys2

If that is renamed msys2 -> msys2_hide then the copy in Temp
no longer works. It fails when it tries to load the first qt plugin with:

   qt.qpa.plugin could not find the Qt platform plugin "windows" in ""

I think this must be because of the hard coding of addresses in parts of Qt5. Supposedly one can work around this using qt.conf files. The plugins in mingw64 are in:

  /mingw64/share/Qt5/Qt

When all of that Qt folder is copied to

  /c/Temp/PymolU/share/Qt5/Qt

and in the top level of PymolU a file qt.conf is created with:

[PATHS]
Prefix = C:/Temp/PymolU
Libraries = C:/Temp/PymolU/bin

it still fails with the same message.

(Note, Qt5OpenGL.dll and similar dll's are in C:/Temp/PymolU/bin along with all
other dlls OTHER than those in the Qt plugin directory.)

Changing the path syntax to "/C/Temp/PymolU" or "C:\Temp\PymolU" did not help. Putting a second copy in /C/Temp/PymolU/bin (where the python3 executable is) changed nothing.

Suggestions????

Thanks,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to