Sign inSign up

syping/qt5-shared-mingw

By syping

Updated over 6 years ago

Qt Shared Build Environment for MinGW 5.0.1/GCC 6.3.0 (LibreSSL + libjpeg-turbo)

Image
1

2.3K

syping/qt5-shared-mingw repository overview

This Qt Shared Build Environment works with 32-Bit and 64-Bit MinGW. Default is set to 32-Bit.

You can change which Qt to use with QT_SELECT environment variable or with -qt= argument.

export QT_SELECT=qt5-x86_64-w64-mingw32
export QT_SELECT=qt5-i686-w64-mingw32
qmake -qt=qt5-x86_64-w64-mingw32
qmake -qt=qt5-i686-w64-mingw32

You can install packages in the container with: apt-get update && apt-get install package
Linux Distribution is Debian Stretch

Note: You need to copy all DLL Files from MinGW and the Qt modules you use to the Application folder. More information at the DLL Distribution Guide.

32-Bit DLL Files

/usr/lib/gcc/i686-w64-mingw32/6.3-win32/libgcc_s_sjlj-1.dll
/usr/lib/gcc/i686-w64-mingw32/6.3-win32/libstdc++-6.dll
/opt/windev/qt32d-latest/bin/*.dll
/opt/windev/qt32d-latest/plugins/*
/opt/windev/libjpeg-turbo-latest_qt32d/bin/*.dll
/opt/windev/libressl-latest_qt32d/bin/*.dll

64-Bit DLL Files

/usr/lib/gcc/x86_64-w64-mingw32/6.3-win32/libgcc_s_seh-1.dll
/usr/lib/gcc/x86_64-w64-mingw32/6.3-win32/libstdc++-6.dll
/opt/windev/qt64d-latest/bin/*.dll
/opt/windev/qt64d-latest/plugins/*
/opt/windev/libjpeg-turbo-latest_qt64d/bin/*.dll
/opt/windev/libressl-latest_qt64d/bin/*.dll

DLL Distribution Guide

When you use Qt Gui, you need to include libjpeg-62.dll
When you use Qt Network, you need to include libcrypto-43.dll and libssl-45.dll
You need include always libgcc_s_sjlj-1.dll or libgcc_s_seh-1.dll
You need include always libstdc++-6.dll
You need include Qt modules you use Qt5Core.dll Qt5Gui.dll Qt5Widgets.dll etc.
For Console Applications you need to include Qt Plugin platforms/qminimal.dll
For Gui Applications you need to include Qt Plugin platforms/qwindows.dll

DLL Distribution Example (32-Bit)

YourApplication.exe
libcrypto-43.dll
libgcc_s_sjlj-1.dll
libssl-45.dll
libstdc++-6.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5Widgets.dll
platforms/qwindows.dll

DLL Distribution Example (64-Bit)

YourApplication.exe
libcrypto-43.dll
libgcc_s_seh-1.dll
libjpeg-62.dll
libssl-45.dll
libstdc++-6.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5Widgets.dll
platforms/qwindows.dll

Note: Some file names could vary depends on the library versions.

How to Build your Project

docker pull syping/qt5-shared-mingw
docker run --rm -v ${PWD}:/root/project -it syping/qt5-shared-mingw
cd ~/project
qmake
make -j$(nproc --all)

GitLab

Docker Image GitLab Repository you can find here.

Tag summary

Content type

Image

Digest

Size

346.2 MB

Last updated

over 6 years ago

docker pull syping/qt5-shared-mingw