Unsolved Build 5.12 for Android on Windows - issue
-
Hi,
I am trying to build Qt5.12 from sources. I followed this manual: https://wiki.qt.io/Android
As you can see below, it does not work - problem with undefined LOCALE_...
Any ideas?C:\Qt\And\qt5>configure.bat -developer-build -opengl es2 -xplatform android-g++ -android-ndk ANDROID_NDK_PATH -android-sdk ANDROID_SDK_ROOT -opensource -confirm -license -nomake tests -nomake examples -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples-and-demos + cd qtbase + C:\Qt\And\qt5\qtbase\configure.bat -top-level -developer-build -opengl es2 -xp latform android-g++ -android-ndk ANDROID_NDK_PATH -android-sdk ANDROID_SDK_ROOT -opensource -confirm-license -nomake tests -nomake examples -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples-and-dem os Running syncqt ... <srcbase> = C:/Qt/And/qt5/qtbase <bldbase> = C:/Qt/And/qt5/qtbase <outbase> = C:/Qt/And/qt5/qtbase Bootstrapping qmake ... g++ -c -o qstring.o -DUNICODE -DMINGW_HAS_SECURE_API=1 -std=c++11 -ffunction-sec tions -g -IC:/Qt/And/qt5/qtbase/qmake -IC:/Qt/And/qt5/qtbase/qmake/library -IC: /Qt/And/qt5/qtbase/qmake/generators -IC:/Qt/And/qt5/qtbase/qmake/generators/unix -IC:/Qt/And/qt5/qtbase/qmake/generators/win32 -IC:/Qt/And/qt5/qtbase/qmake/gene rators/mac -I../include -I../include/QtCore -I../include/QtCore/5.12.2 -I../incl ude/QtCore/5.12.2/QtCore -I../src/corelib/global -IC:/Qt/And/qt5/qtbase/mkspecs/ win32-g++ -DQT_VERSION_STR=\"5.12.2\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=1 2 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH C:/Qt/And/qt5/qtbase/src/corelib/tools/qstring.cpp C:/Qt/And/qt5/qtbase/src/corelib/tools/qstring.cpp: In static member function 's tatic int QString::localeAwareCompare_helper(const QChar*, int, const QChar*, in t)': C:/Qt/And/qt5/qtbase/src/corelib/tools/qstring.cpp:6532:31: error: 'LOCALE_NAME_ USER_DEFAULT' was not declared in this scope int res = CompareStringEx(LOCALE_NAME_USER_DEFAULT, 0, (LPWSTR)lhs.constDat a(), lhs.length(), (LPWSTR)rhs.constData(), rhs.length(), NULL, NULL, 0); ^ C:/Qt/And/qt5/qtbase/src/corelib/tools/qstring.cpp:6532:151: error: 'CompareStri ngEx' was not declared in this scope int res = CompareStringEx(LOCALE_NAME_USER_DEFAULT, 0, (LPWSTR)lhs.constDat a(), lhs.length(), (LPWSTR)rhs.constData(), rhs.length(), NULL, NULL, 0); ^ Makefile:405: recipe for target 'qstring.o' failed mingw32-make: *** [qstring.o] Error 1