Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build 5.12 for Android on Windows - issue
Qt 6.11 is out! See what's new in the release blog

Build 5.12 for Android on Windows - issue

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 389 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RobertLabTeam
    wrote on last edited by
    #1

    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
    
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved