I am looking to build Qt Desktop and Android app, how to set this up?

There is a Qt docker image on Docker Hub: https://hub.docker.com/r/rabits/qt/

But, how to use it? Should I copy the qmake file from Desktop to Pipeline or sth?


1 answer

0 vote

Hi Simon,

To use this particular docker image you need to specify it in the image section of your bitbucket-pipelines.yml file. When the pipeline starts the commands you specify in the step section of the yaml will be executed within this docker container. To get started I recommend running the container locally and seeing that your build works within the container. From that point you'll need to specify a yml similar to this
image: rabits/qt

- step:
- build commands here

    - step:
          - sudo apt-get -qq update && sudo apt-get install -qq -y <packages>
		  - mkdir ~/build && cd ~/build
          - qmake -r ~/src
          - make -j4
          - make install INSTALL_ROOT=$HOME/dist
          - androiddeployqt --input ~/src/<android json> --output ~/dist --deployment bundled --gradle --release

It is likely you'll have to modify these commands slightly to accomodate your specific file locations and build quirks.

For more information please consult our documentation here:


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,043 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you