Sign inSign up

syping/qt5-shared-mingw-openssl

By syping

•Updated over 6 years ago

Qt Shared Build Environment for MinGW 6.0.0/GCC 8.3.0 (OpenSSL + libjpeg-turbo)

Image
1

3.8K

syping/qt5-shared-mingw-openssl repository overview

This Qt Shared Build Environment works with 32-Bit and 64-Bit MinGW. Default is set to 64-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 Buster

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/8.3-win32/libgcc_s_sjlj-1.dll
/usr/lib/gcc/i686-w64-mingw32/8.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/openssl-latest_qt32d/bin/*.dll

⁠64-Bit DLL Files

/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32/libgcc_s_seh-1.dll
/usr/lib/gcc/x86_64-w64-mingw32/8.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/openssl-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-1_1.dll and libssl-1_1.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 and styles/qwindowsvistastyle.dll

⁠DLL Distribution Example (32-Bit)

YourApplication.exe
libcrypto-1_1.dll
libgcc_s_sjlj-1.dll
libssl-1_1.dll
libstdc++-6.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5Widgets.dll
platforms/qwindows.dll
styles/qwindowsvistastyle.dll

⁠DLL Distribution Example (64-Bit)

YourApplication.exe
libcrypto-1_1-x64.dll
libgcc_s_seh-1.dll
libjpeg-62.dll
libssl-1_1-x64.dll
libstdc++-6.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5Widgets.dll
platforms/qwindows.dll
styles/qwindowsvistastyle.dll

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

⁠How to Build your Project

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

⁠GitLab

Docker Image GitLab Repository you can find here⁠.

Tag summary

Content type

Image

Digest

Size

375.1 MB

Last updated

over 6 years ago

docker pull syping/qt5-shared-mingw-openssl