Skip to content

Dockerfile with Qt 5 + MXE for compiling Windows binaries for CI

License

Notifications You must be signed in to change notification settings

Vrex123/qt5_mxe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Straighforward Dockefile with Qt 5 + MXE for compiling Windows binaries for CI using MinGW 32.

After building your project, you will get 32-bit binary with static linked Qt. This can be changed by changing MXE_TARGETS env variable in Dockerfile.

Pre-built Docker image can be found in Docker repo

Documentation for MXE can be found on website

Usage

For example, here is how it can be used in Jenkins

    stage('Build Windows binary') {
      agent {
        docker {
          image 'vrex141/qt5_mxe'
        }
      }
      steps {
        sh '/build/mxe/usr/bin/qmake workplace.pro CONFIG+=qtquickcompiler'
        sh 'make'
        sh 'make clean'
        stash includes: 'bin/**', name: 'windows_binary'
      }
    }

Versions

  • Ubuntu 18.04
  • Qt 5.12 (pre-built container)
  • Infor about Qt version inside MXE can be found here

Credits

About

Dockerfile with Qt 5 + MXE for compiling Windows binaries for CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published