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. I failed to build Qt
Forum Updated to NodeBB v4.3 + New Features

I failed to build Qt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
12 Posts 6 Posters 5.2k Views 2 Watching
  • 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.
  • G Gravak

    I want to build Qt for my windows machine but it doesn't work.

    I entered from a directory called Qt-5.8.0-build "..\Qt-5.8.0-src\configure.bat -debug-and-release -platform win32-g++ -prefix C:\Qt\Qt-5.8.0- bin-x64

    But I got some errors:

    C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp: In static member function 'static Compiler Environment::detectCompiler()':
    C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp:144:50: error: 'KEY_WOW64_32KEY' was not declared in this scope
                                                      KEY_WOW64_32KEY).toLower();
                                                      ^
    C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp: In static member function 'static QString Environment::execute(const QString&, int*)':
    C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp:389:60: error: '_popen' was not declared in this scope
         FILE *proc = _popen(command.toLatin1().constData(), "r");
                                                                ^
    C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp:399: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
    

    What could I do to make it work?

    Thanks for help

    ![alt text](image url)

    K Offline
    K Offline
    koahnig
    wrote on last edited by
    #2

    @Gravak

    Did you follow those guidelines?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gravak
      wrote on last edited by
      #3

      Yes, I did

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

        Hi,

        Which compiler are you using exactly ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • G Offline
          G Offline
          Gravak
          wrote on last edited by
          #5

          I'm using the MinGW g++ 5.3.0 compiler

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            32 or 64 bit ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Gravak
              wrote on last edited by Gravak
              #7

              I'm using 64 bit

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Gravak
                wrote on last edited by
                #8

                I installed mingw-w64 and now I have the 6.3.0 version. It works now but there are a lot of other problems:

                At the end of configure it checks the gold linker and then a window appears with the text: ld.gold.exe doesn't work anymore. My options are "Debug" and "Close program". When I use the second it continues with checking things. Then I type mingw32-make -j4 and then: it compiles but suddenly there are a lot of problems. The entry point "_ZdaPvy" was not found in the DLL ...\rcc.exe. It appears more than one time. After this there are ptoblems like "waiting for unfinished jobs" and then compiling was aborted

                O 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  Take a look at this thread.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • G Gravak

                    I installed mingw-w64 and now I have the 6.3.0 version. It works now but there are a lot of other problems:

                    At the end of configure it checks the gold linker and then a window appears with the text: ld.gold.exe doesn't work anymore. My options are "Debug" and "Close program". When I use the second it continues with checking things. Then I type mingw32-make -j4 and then: it compiles but suddenly there are a lot of problems. The entry point "_ZdaPvy" was not found in the DLL ...\rcc.exe. It appears more than one time. After this there are ptoblems like "waiting for unfinished jobs" and then compiling was aborted

                    O Offline
                    O Offline
                    ocroquette
                    wrote on last edited by
                    #10

                    @Gravak said in I failed to build Qt:

                    The entry point "_ZdaPvy" was not found in the DLL ...\rcc.exe

                    I had the same problem and found no solution online, so in case someone else has the same issue:

                    This error can occur if you have another, incompatible version of libstdc++-6.dll in your PATH. Make sure that the right one is found first, e.g. that it's location appears soon enough in the PATH environment variable.

                    1 Reply Last reply
                    2
                    • S Offline
                      S Offline
                      SherifOmran
                      wrote on last edited by
                      #11

                      This issue occurs if you open the command line (visual studio) and try to compile Qt. Please try to open cmd from an old Qt ex 5.9.1 and try from it to compile, this should use the mingw32-make from 5.9.1 for example, otherwise you should correct the path.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rakasmo
                        Banned
                        wrote on last edited by rakasmo
                        #12
                        This post is deleted!
                        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