Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Build Qt library for Android on Windows error ('KEY_WOW64_32KEY' was not declared on this scope)
QtWS25 Last Chance

Build Qt library for Android on Windows error ('KEY_WOW64_32KEY' was not declared on this scope)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 2.0k 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
    rom8726
    wrote on last edited by
    #1

    Hello. I tried to build Qt library for Android on my Windows machine.
    But configure failed.

    Configure command:
    configure.bat -platform win32-g++ -xplatform android-g++ -nomake tests -nomake examples -android-ndk ANDROID_NDK_PATH -android-sdk ANDROID_SDK_ROOT -android-ndk-host windows-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors

    And I received next message:
    environment.cpp: In static member function 'static Compiler Environment::detectCompiler()':
    environment.cpp:194:50: error: 'KEY_WOW64_32KEY' was not declared on this scope
    KEY_WOW64_32KEY).toLower();
    <builtin>: recipe for target 'environment.o' failed

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      I have no idea why that is, but apparently it is just a constant and you could just define it and hope for the best
      https://msdn.microsoft.com/en-us/library/windows/desktop/aa384129(v=vs.110).aspx

      (...and for the next error due to the same underlying cause... but who knows, perhaps this is just a one-off bug)

      1 Reply Last reply
      1

      • Login

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