Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. environment.cpp:184:50: error: 'KEY_WOW64_32KEY' was not declared in this scope KEY_WOW64_32KEY).toLower();

environment.cpp:184:50: error: 'KEY_WOW64_32KEY' was not declared in this scope KEY_WOW64_32KEY).toLower();

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 4 Posters 3.1k 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.
  • A Offline
    A Offline
    Ardec
    wrote on last edited by
    #1

    hello all,
    I am trying to configureand build the qt 5.7 on host Windows. when I ran the configure.bat from the Qt5.7 source I got the following error.

    environment.cpp:184:50: error: 'KEY_WOW64_32KEY' was not declared in this scope KEY_WOW64_32KEY).toLower();
    environment.cpp: In static member function 'static QString Environment::execute(const QString&, int*)':
    environment.cpp:429:60: error: '_popen' was not declared in this scopeFILE *proc = _popen(command.toLatin1().constData(), "r");
    environment.cpp:439:29: error: '_pclose' was not declared in this scope int r = _pclose(proc);
    <builtin>: recipe for target 'environment.o' failed
    mingw32-make: *** [environment.o] Error 1
    Press any key to continue . . .

    I have only the qt5.7 source Package with out Qt creator. Please help me ot how to resolve this errors.

    jsulmJ 1 Reply Last reply
    0
    • A Ardec

      hello all,
      I am trying to configureand build the qt 5.7 on host Windows. when I ran the configure.bat from the Qt5.7 source I got the following error.

      environment.cpp:184:50: error: 'KEY_WOW64_32KEY' was not declared in this scope KEY_WOW64_32KEY).toLower();
      environment.cpp: In static member function 'static QString Environment::execute(const QString&, int*)':
      environment.cpp:429:60: error: '_popen' was not declared in this scopeFILE *proc = _popen(command.toLatin1().constData(), "r");
      environment.cpp:439:29: error: '_pclose' was not declared in this scope int r = _pclose(proc);
      <builtin>: recipe for target 'environment.o' failed
      mingw32-make: *** [environment.o] Error 1
      Press any key to continue . . .

      I have only the qt5.7 source Package with out Qt creator. Please help me ot how to resolve this errors.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ardec What compiler are you using and how exactly did you call configure?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      2
      • jsulmJ jsulm

        @Ardec What compiler are you using and how exactly did you call configure?

        A Offline
        A Offline
        Ardec
        wrote on last edited by
        #3

        @jsulm
        Compiler MinGW-5.1.4
        This is the command for configuration
        %configure% -platform win32-g++ -xplatform integrity-armv7-imx6 -confirm-license -opensource -nomake examples -nomake tests --no-dbus --force-debug-info -prefix / -extprefix

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you install mingw yourself or are you using the version that comes with Qt ?

          A 1 Reply Last reply
          1
          • mrjjM mrjj

            Did you install mingw yourself or are you using the version that comes with Qt ?

            A Offline
            A Offline
            Ardec
            wrote on last edited by
            #5

            @mrjj
            I installed it manually by myself.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Adam BZH
              wrote on last edited by
              #6

              same issue with qt5.8, tried Mingw32 that come with installer and from official website. same results.

              jsulmJ 1 Reply Last reply
              0
              • A Adam BZH

                same issue with qt5.8, tried Mingw32 that come with installer and from official website. same results.

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Adam-BZH Try to use MinGW which you can install using Qt Maintenance Tool

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                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