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. Configure -top-level in qt5 configure.bat (unknown option)
Forum Updated to NodeBB v4.3 + New Features

Configure -top-level in qt5 configure.bat (unknown option)

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 4.8k 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.
  • L Offline
    L Offline
    Ludwick
    wrote on last edited by
    #1

    Hi there,

    today I tried to make a rebuild of the latest qt5 repository.
    I did a git pull of the stable branch and then tried to run
    configure (under Windows XP).

    It turned out, however, that there was always the option "-top-level" added to my other configure options, which resulted in configure not completing: "Unkown option -top-level"

    Looking into the file qt5/configure.bat I found this line:
    @call %configure% -top-level %*@

    Changing it into
    @call %configure% %*@

    made it possible to complete configure.

    But afterwards I have no makefile in my qt5 directory...

    What am I missing??

    Thanks,
    Ludwick

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

      Hi,

      Did you just call git pull or did you follow this "guide":http://qt-project.org/wiki/Building_Qt_5_from_Git ?

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

        Thanks for the quick reply! :-)

        I followed this guide about half a year ago, when I built qt for the first time. Then it all worked fine. So I thought, I could now just "git pull" and run "configure ..." "make" again to have the newest version.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Ludwick
          wrote on last edited by
          #4

          I just checked out a completely fresh clone of the qt repository (following the quide) and now configure does not complain about the -top-level option:

          New checkout:

          D:\qt5-new>configure -help

          • cd qtbase
          • D:\qt5-new\qtbase\configure.bat -top-level -help
            Please wait while bootstrapping configure ...
            <srcbase> = D:/qt5-new/qtbase
            <outbase> = D:/qt5-new/qtbase
            mingw32-make: '../../configure.exe' is up to date.
            Usage: configure [options]

          However, my original checkout:

          D:\qt5>configure -help

          • cd qtbase
          • D:\qt5\qtbase\configure.bat -top-level -help
            Please wait while bootstrapping configure ...
            <srcbase> = D:/qt5/qtbase
            <outbase> = D:/qt5/qtbase
            mingw32-make: '../../configure.exe' is up to date.
            Unknown option -top-level
            Usage: configure [options]

          The files in the root directories of D:/qt5/ and D:/qt5-new/ are identical. What could be the cause for -top-level not being accepted by the former?

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

            Did you pull only qt5 ? Or did you also do it in the modules ?

            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
            • L Offline
              L Offline
              Ludwick
              wrote on last edited by
              #6

              I did just "git pull" in the qt5 root-directory; assuming it would update all subdirecotires recursively.

              I have to admit that I'm not very familiar with the concept of submodules in git. As a matter of fact, "git status" still shows me that the submodules are modfied and "git reset" does not change this.

              How should I have done the pull on all submodules, too?

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

                You can use qt5_tools from the qtrepotools

                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

                • Login

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