Package python along with my C++ app
-
Hi,
For now it is just a theoretical question.
I have a Qt application that links to external libraries built on Ubuntu 20.04
To create an installator I uselinuxdeployqt.
What I want is to add python with all its directories to the installation process. And for example python is not linked anyhow to my application, I just want it to be unpacked along with my application (for example I'm going to use it as a subprocess without linking).Is there a way to add python to my application installation? More generally: can I add external files that are not linked and are not in Qt resource file to the installator of my application?
-
Hi,
For now it is just a theoretical question.
I have a Qt application that links to external libraries built on Ubuntu 20.04
To create an installator I uselinuxdeployqt.
What I want is to add python with all its directories to the installation process. And for example python is not linked anyhow to my application, I just want it to be unpacked along with my application (for example I'm going to use it as a subprocess without linking).Is there a way to add python to my application installation? More generally: can I add external files that are not linked and are not in Qt resource file to the installator of my application?
@Please_Help_me_D Sure, you can add whatever you want to the package containing your application. You can also use some proper installer framework like https://doc.qt.io/qtinstallerframework/index.html to create a real installer for your application.
Usually Python needs to be properly installed. But it should be possible to package Python as part of your app, see https://www.pythonforengineers.com/3-and-12-ways-to-try-python-without-installing-it/
-
Hi,
For now it is just a theoretical question.
I have a Qt application that links to external libraries built on Ubuntu 20.04
To create an installator I uselinuxdeployqt.
What I want is to add python with all its directories to the installation process. And for example python is not linked anyhow to my application, I just want it to be unpacked along with my application (for example I'm going to use it as a subprocess without linking).Is there a way to add python to my application installation? More generally: can I add external files that are not linked and are not in Qt resource file to the installator of my application?
@Please_Help_me_D
I will just say: under Linux I would expect/prefer you not to provide a Python distro, Ubuntu etc come with Python installed in system area. I know there are debates about whether your application might be better with a "virtual environment" where you control the precise Python version or packages it comes with, but there are pros & cons, e..g. system-wide Python is kept up-to-date with patches etc. Food for thought. -
Thank you for information!
Just a quick question: does Qt Installer Framework work with QMake projects or it can also work with CMake projects?
-
P Please_Help_me_D has marked this topic as solved on
-
Thank you for information!
Just a quick question: does Qt Installer Framework work with QMake projects or it can also work with CMake projects?
@Please_Help_me_D Both