在Ubuntu20.04上交叉编译能在Windows上运行的Qt5应用
参考链接:
https://blog.csdn.net/Interview_TC/article/details/146050419
https://bugreports.qt.io/browse/QTBUG-82592
重要设置
sudo update-alternatives --config x86_64-w64-mingw32-g++
选择后缀带posix的,(/usr/bin/x86_64-w64-mingw32-g++-posix)
执行以下命令查看threading model:
x86_64-w64-mingw32-g++ -v 2>&1 | grep "Thread model"
确定Thread model为posix