Unsolved Problems with freetype and bearer on Windows XP
-
Hello
I try build Qt 5.6.3 for Windows XP with VS2015. After testing on XP I found two problems.. I build qt with -qt-freetype, bearer (default option) and -no-directwrite. Firstly test project always crash if I enable freetype as fontengine. Also crash if I use bearer. When I remove bearer plugins and disable freetype all works fineBuilding Qt with VS2013 no problems, all works fine with freetype and bearer
I spend a lot of time to find on what problem, but without result :(Test project crashed when I create QLabel with freetype engine
Test project crashed when I create request on google.comConfigure options:
-target xp -developer-build -debug-and-release -opensource -c++std c++11 -shared -nomake examples -qt-sql-sqlite -no-icu -qt-libpng -qt-libjpeg -qt-freetype -no-angle -opengl desktop -openssl -I C:\OpenSSL\include -L C:\OpenSSL\bin -make libs -make tools -mp -skip qtwebkit -skip qtwebengine -skip qtwebview -skip qt3d -force-debug-info -no-directwrite
-
Test project crashed when I create request on google.com
So, After two days of debuging I can say that bug was with Q_GLOBAL_STATIC macro.
I found in qcompilerdetection.h Q_COMPILER_THREADSAFE_STATICS and comment it for VS2015Yeah, it works well on Windows 7 and greater version but fails on XP
Also I can say that Q_GLOBAL_STATIC fails only when I use QtService module (don't know why)
Test project crashed when I create QLabel with freetype engine
For Windows XP I can disable freetype engine, but if I do that, my fonts changes to stroke with italic style :D