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 Qt5 from git with msys2 fails on wrong includes
Forum Updated to NodeBB v4.3 + New Features

Build Qt5 from git with msys2 fails on wrong includes

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 1.4k Views 1 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.
  • T Offline
    T Offline
    TinTin82
    wrote on last edited by TinTin82
    #1

    Hi,
    i try to build Qt from source for windows desktop with mingw2. For that rison i do the following steps:

    • git clone git://code.qt.io/qt/qt5.git
    • perl init-repository --branch --no-update
    • sh ..\qt5.\configure -c++std c++11 -platform win32-g++ -prefix D:\0000_Tools\19_Qt\02_Prefix -opensource -debug-and-release -static -static-runtime -opengl desktop -nomake examples -nomake tests -confirm-license
    • make -j8

    if i do that, i run in the following error:

    D:/0000_Tools/19_Qt/01_GIT_Qt5/qt5/qtbase/src/corelib/tools/qcollator_p.h:57:10:
     fatal error: QVector: No such file or directory
     #include <QVector>
    
    compilation terminated.
    make[4]: *** [Makefile.Debug:15071: .obj/debug/qcollator.o] Error 1
    make[4]: Leaving directory '/d/0000_Tools/19_Qt/01_GIT_Qt5/ShadowBuild/qtbase/sr
    c/corelib'
    .
    .
    .
    

    if i look in the Folder:
    D:\0000_Tools\19_Qt\01_GIT_Qt5\qt5\qtbase\src\corelib\tools
    there is a file:
    qvector.h
    But not a QVector.h

    If i Change the Linefrom
    #include <QVector>
    to :
    #include "qvector.h"

    this module compiles,
    but the in run in a further include error:

    D:/0000_Tools/19_Qt/01_GIT_Qt5/qt5/qtbase/src/corelib/mimetypes/qmimedatabase.cp
    p:53:10: fatal error: QtCore/QSet: No such file or directory
     #include <QtCore/QSet>
    

    and so on...

    Can anyone show me what is going worng with that ??
    May i bootstrap Qt with a Compiler which does not have a Qt installed by itselfe ??

    Thanks in advance for the help,
    TinTin

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

      Hi,

      Why not build Qt with the version of MinGW provided directly with the installer ?

      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
      • T Offline
        T Offline
        TinTin82
        wrote on last edited by
        #3

        Hi SGaist,

        I really wanted to avoid that to pervent too much compilers on mu System ...

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

          What version of MinGW do you have installed ?

          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
          • T Offline
            T Offline
            TinTin82
            wrote on last edited by
            #5

            gcc —Version 7.3.0 ( msys2 muild in )

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

              So you have an error in your title. You wrote Build Qt5 from git with mingw2 fails on wrong includes

              Did you already saw https://wiki.qt.io/MSYS2 ?

              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
              • T Offline
                T Offline
                TinTin82
                wrote on last edited by
                #7

                Thx, i have changed the title "mingw2 -> msys2"

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jcelerier
                  wrote on last edited by jcelerier
                  #8

                  Hi,
                  I had the same problem and found this thread by googling.

                  After asking on IRC Thiago told use the solution : you have to put another perl distribution in your PATH before msys perl (Thiago recommended StrawberryPerl, I also tested with ActivePerl and it seems to work) and then run ./configure.

                  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