MSYS2 编译32位qt源码 添加openssl支持,添加 -openssl-linked 并跳过不需要的模块
./configure -confirm-license -opensource -platform win32-g++ -mp -release -static -openssl-linked -prefix /f/Qt/Static -qt-sqlite -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -opengl desktop -no-qml-debug -no-angle -nomake tests -nomake examples -skip qtwebengine -skip qtwebview -skip qt3d
错误处理 :
一.HRESULT hr = D3D12CreateDevice(adapter.Get(), fl, _uuidof(ID3D12Device), nullptr);
提示错误error: '_uuidof' was not declared in this scope
解决方案:
1.编译路径查找src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp
2.__uuidof 替换_uuidof
3.查找src/plugins/scenegraph/d3d12/qsgd3d12engine_p_p.h
4.添加#include <d3d12sdklayers.h> 路径C:\msys64\mingw32\include 查找本地类似路径
5.static const int MAX_SWAP_CHAIN_BUFFER_COUNT = 4;static const int MAX_FRAME_IN_FLIGHT_COUNT = 4;替换为static inline const int MAX_SWAP_CHAIN_BUFFER_COUNT = 4;static inline const int MAX_FRAME_IN_FLIGHT_COUNT = 4;