Skip to content

Deploying Windows to Linux

Radhi edited this page Aug 16, 2017 · 3 revisions

The easiest way to deploy from Windows to Linux is by using docker image.

  1. Make sure you already installed docker on your system.

  2. Pull docker image for Linux :

    docker pull therecipe/qt:linux
    
  3. Deploy your app :

    qtdeploy -docker build linux
    

The output of deployment process will be located in folder deploy/linux at your project's root directory :

project-name
└── deploy
    └── linux
        ├── lib/
        ├── linux/
        ├── plugins/
        ├── qml/
        ├── project-name
        └── project-name.sh

You can start your app either by running project-name or project-name.sh. If you use project-name, your app will run using Qt5 libraries that installed by your target's package manager, therefore make it looks native in the targeted platform. On the other hand, if you use project-name.sh, your app will run by dynamic linking the included libraries which will use the fusion style.

Clone this wiki locally