Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved You cannot configure qt separately within a top-level build

    General and Desktop
    6
    18
    3617
    Loading More Posts
    • 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.
    • V
      Vivx701 last edited by Vivx701

      I am getting this error continuously while trying to build Qt5.9.5 source for Raspberry-Pi 3. What can be the possible reason ?
      log is given below.

      Target os: Fedberry 27
      Toolchain: gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/

      bash-4.4$ ../configure -recheck-all -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/alokin/raspberry/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/raspberry-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr -hostprefix /usr/local/Qt_5_9_5raspberry/ -skip qtwebengine

      • cd qtbase
      • /home/alokin/Qt5.9/qt-everywhere-opensource-src-5.9.5/qtbase/configure -top-level -recheck-all -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/alokin/raspberry/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/raspberry-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr -hostprefix /usr/local/Qt_5_9_5raspberry/ -skip qtwebengine
        Preparing build tree...
        Creating qmake...
        ........................................................................................Done.
        Project ERROR: You cannot configure qt separately within a top-level build.
      1 Reply Last reply Reply Quote 0
      • V
        Vivx701 last edited by Vivx701

        hello guys , finally iam able to build Qt after making two blank files named
        1.) .qmake.stash
        2.) .qmake.super
        in build directory. So the problem is happening due to not creating this two files in the configuring step. I don't know why configuring script is behaving like this.

        1 Reply Last reply Reply Quote 4
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          Hi
          You are not stating Qt version, platform etc so hard to geuss at.

          Might be this ?
          https://bugreports.qt.io/browse/QTBUG-56049

          V 1 Reply Last reply Reply Quote 0
          • V
            Vivx701 @mrjj last edited by

            @mrjj But i don't have any .qmake.super file in my directory

            Pablo J. Rogina 1 Reply Last reply Reply Quote 0
            • Pablo J. Rogina
              Pablo J. Rogina @Vivx701 last edited by

              @Vivx701 it looks like you're trying to cross compile (-device-option CROSS_COMPILE=...) so are you following this guide? It worked for me with Raspbian Stretch, Qt 5.10.1 and Pi Zero W
              Just in case, you stated "for Raspberry-Pi 3" but you shown configurating it for RPi 2 -> "-device linux-rasp-pi2-g++"

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              V 1 Reply Last reply Reply Quote 1
              • V
                Vivx701 @Pablo J. Rogina last edited by

                @Pablo-J.-Rogina Iam not building for rasbian . My target os is fedberry

                Pablo J. Rogina 1 Reply Last reply Reply Quote 0
                • Pablo J. Rogina
                  Pablo J. Rogina @Vivx701 last edited by

                  @Vivx701 said in You cannot configure qt separately within a top-level build:

                  fedberry

                  Ok, it would be better to have stated it previously :-) (saving you and me a couple of posts...)

                  Even with that, I guess the suggested guide would still apply from step #5 onwards, wouldn't it?

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    Vivx701 @Pablo J. Rogina last edited by

                    @Pablo-J.-Rogina : Still it gives the same error.

                    Pablo J. Rogina 1 Reply Last reply Reply Quote 0
                    • Pablo J. Rogina
                      Pablo J. Rogina @Vivx701 last edited by

                      @Vivx701 @Vivx701 Wow! it looks like you were super fast creating your sysroot and rscync'ing it.
                      Again, my suggestion is that you follow that guide step by step...

                      Upvote the answer(s) that helped you solve the issue
                      Use "Topic Tools" button to mark your post as Solved
                      Add screenshots via postimage.org
                      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        Vivx701 @Pablo J. Rogina last edited by Vivx701

                        @Pablo-J.-Rogina : I just mounted my sd card under /mnt/raspberry-rootfs

                        Pablo J. Rogina 1 Reply Last reply Reply Quote 0
                        • Pablo J. Rogina
                          Pablo J. Rogina @Vivx701 last edited by

                          @Vivx701 Ok, it's up to you. All I can say it's the guide helped me achieving the goal of cross-compiling Qt for RPi
                          Roger over and out!

                          Upvote the answer(s) that helped you solve the issue
                          Use "Topic Tools" button to mark your post as Solved
                          Add screenshots via postimage.org
                          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                          1 Reply Last reply Reply Quote 1
                          • SGaist
                            SGaist Lifetime Qt Champion last edited by

                            Hi,

                            You seem to be building Qt from within a directory that's inside the sources, is that correct ?

                            If so, then that's likely the problem. You should build Qt either within the top folder of the sources or even better in a folder outside of the sources.

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

                            V 2 Replies Last reply Reply Quote 2
                            • V
                              Vivx701 @SGaist last edited by

                              @SGaist Now i created a directory outside Qt source code and tried running this . see the output at the end same error.

                              bash-4.4$ ../qt-everywhere-opensource-src-5.9.5/configure -recheck-all -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/alokin/raspberry/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/raspberry-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/Qt_595-raspberry/ -qt-libpng -qt-zlib -qt-libjpeg -qt-pcre -qt-freetype -skip qtwebengine -force-debug-info -nomake tests

                              • cd qtbase
                              • /home/alokin/Qt5.9/qt-everywhere-opensource-src-5.9.5/qtbase/configure -top-level -recheck-all -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/alokin/raspberry/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/raspberry-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/Qt_595-raspberry/ -qt-libpng -qt-zlib -qt-libjpeg -qt-pcre -qt-freetype -skip qtwebengine -force-debug-info -nomake tests
                                Preparing build tree...
                                Creating qmake...
                                .Done.
                                Project ERROR: You cannot configure qt separately within a top-level build.
                              1 Reply Last reply Reply Quote 0
                              • V
                                Vivx701 @SGaist last edited by

                                @SGaist This time iam trying to build with in Qt source code directory , see the output . same error

                                ./configure -recheck-all -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/alokin/raspberry/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/raspberry-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/Qt_595-raspberry/ -qt-libpng -qt-zlib -qt-libjpeg -qt-pcre -qt-freetype -skip qtwebengine -force-debug-info -nomake tests

                                • cd qtbase
                                • /home/alokin/Qt5.9/qt-everywhere-opensource-src-5.9.5/qtbase/configure -top-level -recheck-all -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/alokin/raspberry/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/raspberry-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/Qt_595-raspberry/ -qt-libpng -qt-zlib -qt-libjpeg -qt-pcre -qt-freetype -skip qtwebengine -force-debug-info -nomake tests
                                  Creating qmake...
                                  .Done.
                                  Project ERROR: You cannot configure qt separately within a top-level build.
                                1 Reply Last reply Reply Quote 0
                                • SGaist
                                  SGaist Lifetime Qt Champion last edited by

                                  Are you doing that from clean sources ?

                                  If not, you should nuke them as well as the build folders you used and start over with an out of source build.

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

                                  V 1 Reply Last reply Reply Quote 1
                                  • V
                                    Vivx701 @SGaist last edited by

                                    @SGaist This is the source https://download.qt.io/archive/qt/5.9/5.9.5/single/qt-everywhere-opensource-src-5.9.5.tar.xz

                                    1 Reply Last reply Reply Quote 0
                                    • V
                                      Vivx701 last edited by Vivx701

                                      hello guys , finally iam able to build Qt after making two blank files named
                                      1.) .qmake.stash
                                      2.) .qmake.super
                                      in build directory. So the problem is happening due to not creating this two files in the configuring step. I don't know why configuring script is behaving like this.

                                      1 Reply Last reply Reply Quote 4
                                      • X
                                        xion0202 last edited by

                                        Adding .qmake.super seemed that have fixed my issue as well. Has anyone found out why it wasn't created to begin with?

                                        1 Reply Last reply Reply Quote 1
                                        • A
                                          AdrianFK last edited by

                                          Cloned GIT folder into Mint Linux 20, I had a failed configure in the root directory. Removed .qmake.super file from the root QT5 folder, then configured again within the QT5-build folder without error.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post