Sign inSign up

syping/qt5-shared-llvm-mingw

By syping

•Updated over 3 years ago

Qt Shared Build Environment for MinGW 7-8-10-11/LLVM Clang 10/11/14/16 (OpenSSL + libjpeg-turbo)

Image
0

10K+

syping/qt5-shared-llvm-mingw 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

/opt/llvm-mingw/i686-w64-mingw32/bin/libc++.dll
/opt/llvm-mingw/i686-w64-mingw32/bin/libunwind.dll
/usr/local/lib/i686-w64-mingw32/qt5/bin/*.dll
/usr/local/lib/i686-w64-mingw32/qt5/plugins/*
/usr/local/lib/i686-w64-mingw32/openssl/bin/*.dll

⁠64-Bit DLL Files

/opt/llvm-mingw/x86_64-w64-mingw32/bin/libc++.dll
/opt/llvm-mingw/x86_64-w64-mingw32/bin/libunwind.dll
/usr/local/lib/x86_64-w64-mingw32/qt5/bin/*.dll
/usr/local/lib/x86_64-w64-mingw32/qt5/plugins/*
/usr/local/lib/x86_64-w64-mingw32/openssl/bin/*.dll

⁠DLL Distribution Guide

When you use Qt Network, you need to include libcrypto-1_1.dll and libssl-1_1.dll
You need include always libc++.dll and libunwind.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
libc++.dll
libcrypto-1_1.dll
libssl-1_1.dll
libunwind.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5Widgets.dll
platforms/qwindows.dll
styles/qwindowsvistastyle.dll

⁠DLL Distribution Example (64-Bit)

YourApplication.exe
libc++.dll
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
libunwind.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-llvm-mingw
docker run --rm -v ${PWD}:/root/project -it syping/qt5-shared-llvm-mingw
cd ~/project
qmake
make -j$(nproc --all)

⁠GitLab

Docker Image GitLab Repository you can find here⁠.

Tag summary

Content type

Image

Digest

sha256:3a6724649…

Size

378 MB

Last updated

over 3 years ago

docker pull syping/qt5-shared-llvm-mingw