<p>I want to execute a Linux binary from a QT application running on W10.
In QT we have <code>QProcess</code> to launch additional processes. However, since my binary is for Linux, I've thought of two possible approaches:</p>

<ol>
<li>Running the binary in a container (i.e.: Docker, Kubernetes, Singularity...).</li>
<li>Executing the binary through WSL (Ubuntu) bash.</li>
</ol>

<p>In any case, the QT application should initiate the process (the container or the bash) and, in turn, this process should launch my binary.</p>

<p>I've been searching on the web and I could not find something related, what makes me think that it will be difficult. For this reason, I am posting the question in order to know the viability of the proposed approaches.</p>

<p>EDITED</p>

<p>It looks like the WSL is easier, the problem is that the user has to have install ed it. Apart from requiring the sudo password when installing new software via apt-get.</p>

<p>The binary that I have to execute only exists for Linux, and let's say that cross-compiling is dismissed because of its complexity. Furthermore, this application needs CGAL, BOOST, MPI, among other pieces of software.</p>

<p>If you want to go with WSL, you can just run <code>wsl myLinuxProgram --options</code>.</p>

<p>Using WSL is the easiest way I believe as the current directory (PWD), is the current one i.e. the same as the PWD of your Qt app.</p>

<p>You can read Microsoft documenation for more info: <a href="https://learn.microsoft.com/en-us/windows/wsl/interop" rel="noreferrer">https://learn.microsoft.com/en-us/windows/wsl/interop</a></p>
