Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying pyqt application to Windows using pyqtdeploy

I would like to deploy for the first time my first app made with PyQt5. I found pyqtdeploy (link) to be probably what I need to do this for Windows and other platforms.

Anyway, I am following this tutorial, but, as I am completely new to deploying applications, I am not sure on one thing: do I need to download Qt for the target specific platform I need to deploy my app to? If so, am I supposed to use qmake from that Qt installation against the result of pyqtdeploy? For example: if I want to deploy to Windows, do I have to download Qt from here (and which version???)?

From the same tutorial page, this is not so clear, maybe it's obvious, but as I am a newbie in this, not for me.

like image 679
umbe1987 Avatar asked Oct 29 '22 18:10

umbe1987


1 Answers

No you don't need to download Qt. When building your 'sysroot.toml' file, pyqtdeploy will download qt-everywhere-src and builds it from source.

In the built sysroot directory you can find qmake executable in "...\Qt\bin" (qmake.exe) depends on where your project files (sysroot.toml file) are.

For example if your host machine is Windows and C:\Users\username\Desktop\My_PyQtDeploy_Proj is your project folder which contains sysroot.toml, after building sysroot you can find qmake in "C:\Users\username\Desktop\My_PyQtDeploy_Proj\sysroot-win-64\Qt\bin\qmake.exe"

like image 94
Parsa Avatar answered Nov 15 '22 05:11

Parsa