Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Project ERROR: You cannot configure qt separately within a top-level build
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: You cannot configure qt separately within a top-level build

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 2.2k Views 3 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.
  • C Offline
    C Offline
    ChetanM
    wrote on last edited by
    #3

    @jsulm

    I followed steps from the below link ,
    "https://forum.qt.io/topic/122297/beaglebone-cross-compile-setup/2"

    after i remove -top-level i get the following
    Info: creating cache file /home/chetan/QtForBBB/build_qt/.qmake.cache
    Project ERROR: You cannot configure qtbase separately within a top-level build.

    jsulmJ 1 Reply Last reply
    0
    • C ChetanM

      @jsulm

      I followed steps from the below link ,
      "https://forum.qt.io/topic/122297/beaglebone-cross-compile-setup/2"

      after i remove -top-level i get the following
      Info: creating cache file /home/chetan/QtForBBB/build_qt/.qmake.cache
      Project ERROR: You cannot configure qtbase separately within a top-level build.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @ChetanM Please follow https://wiki.qt.io/Building_Qt_5_from_Git and don't build inside source tree!

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

      1 Reply Last reply
      2
      • C Offline
        C Offline
        ChetanM
        wrote on last edited by
        #5

        Thanks for the response @jsulm , i will try to do the steps mentioned ,
        my dir structure is
        ├── build_qt
        │   ├── bin
        │   ├── mkspecs
        │   └── qmake
        └── qt5
        └── qt5base

        I can issue build fro build_qt dir correct , qt5base will have the code

        Should i replace the QT code and continue the same steps for cross compilation .? Or are there different steps for cross compilation , I need QT for beagle bone black .

        Thanks
        Chetan.M

        jsulmJ 1 Reply Last reply
        0
        • C ChetanM

          Thanks for the response @jsulm , i will try to do the steps mentioned ,
          my dir structure is
          ├── build_qt
          │   ├── bin
          │   ├── mkspecs
          │   └── qmake
          └── qt5
          └── qt5base

          I can issue build fro build_qt dir correct , qt5base will have the code

          Should i replace the QT code and continue the same steps for cross compilation .? Or are there different steps for cross compilation , I need QT for beagle bone black .

          Thanks
          Chetan.M

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @ChetanM said in Project ERROR: You cannot configure qt separately within a top-level build:

          Should i replace the QT code and continue the same steps for cross compilation .?

          No need to replace Qt code as it is the same.
          For cross compilation you need a sysroot and cross-compiler for your device.

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

          C 1 Reply Last reply
          0
          • jsulmJ jsulm

            @ChetanM said in Project ERROR: You cannot configure qt separately within a top-level build:

            Should i replace the QT code and continue the same steps for cross compilation .?

            No need to replace Qt code as it is the same.
            For cross compilation you need a sysroot and cross-compiler for your device.

            C Offline
            C Offline
            ChetanM
            wrote on last edited by
            #7

            @jsulm i mean replace earlier QT code and cross compile the one from git .
            I have got the sys root for Debian image

            ../qt5/qt5base/qtbase/configure -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/home/chetan/gcc-linaro/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
            -sysroot /home/chetan/bbb-rootfs -opensource -confirm-license -optimized-qmake -release -make libs -prefix /usr/local/qt5bbb -hostprefix /usr/local/qt5bbb -qt-zlib -qt-libpng -openssl -v

            Is this correct

            jsulmJ 1 Reply Last reply
            0
            • C ChetanM

              @jsulm i mean replace earlier QT code and cross compile the one from git .
              I have got the sys root for Debian image

              ../qt5/qt5base/qtbase/configure -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/home/chetan/gcc-linaro/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
              -sysroot /home/chetan/bbb-rootfs -opensource -confirm-license -optimized-qmake -release -make libs -prefix /usr/local/qt5bbb -hostprefix /usr/local/qt5bbb -qt-zlib -qt-libpng -openssl -v

              Is this correct

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @ChetanM said in Project ERROR: You cannot configure qt separately within a top-level build:

              Is this correct

              Probably, just try

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

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ChetanM
                wrote on last edited by
                #9

                Hi @jsulm ,

                I still get the error
                Project ERROR: You cannot configure qtbase separately within a top-level build.

                This is my configure
                ../qtsrc/qt5/qtbase/configure -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/home/chetan/gcc-linaro/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/chetan/bbb-rootfs -opensource -confirm-license -optimized-qmake -release -make libs -prefix /usr/local/qt5bbb -hostprefix /usr/local/qt5bbb -qt-zlib -qt-libpng -openssl -v

                ├── build_qt
                │   ├── bin
                │   ├── include
                │   ├── mkspecs
                │   └── qmake
                └── qtsrc
                └── qt5 // Qt src from git

                Regards
                Chetan.M

                C 1 Reply Last reply
                0
                • C ChetanM

                  Hi @jsulm ,

                  I still get the error
                  Project ERROR: You cannot configure qtbase separately within a top-level build.

                  This is my configure
                  ../qtsrc/qt5/qtbase/configure -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/home/chetan/gcc-linaro/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/chetan/bbb-rootfs -opensource -confirm-license -optimized-qmake -release -make libs -prefix /usr/local/qt5bbb -hostprefix /usr/local/qt5bbb -qt-zlib -qt-libpng -openssl -v

                  ├── build_qt
                  │   ├── bin
                  │   ├── include
                  │   ├── mkspecs
                  │   └── qmake
                  └── qtsrc
                  └── qt5 // Qt src from git

                  Regards
                  Chetan.M

                  C Offline
                  C Offline
                  ChetanM
                  wrote on last edited by
                  #10

                  @jsulm

                  Creating qmake...
                  ............................................................................................Done.
                  Project ERROR: You cannot configure qtbase separately within a top-level build.

                  I still get error if i run
                  ../qtsrc/qt5/qtbase/configure -device linux-beagleboard-g++

                  can you please suggest

                  Regards
                  Chetan.M

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jbates
                    wrote on last edited by
                    #11

                    @ChetanM Did you ever resolve this? I'm stumbling with the same issue.

                    SGaistS 1 Reply Last reply
                    0
                    • J jbates

                      @ChetanM Did you ever resolve this? I'm stumbling with the same issue.

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @jbates hi and welcome to devnet,

                      Just a hunch, did you try using the full path to the configure script ?

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

                      J 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        @jbates hi and welcome to devnet,

                        Just a hunch, did you try using the full path to the configure script ?

                        J Offline
                        J Offline
                        jbates
                        wrote on last edited by
                        #13

                        @SGaist Thanks for the reply, Yes I did.
                        I resolved the problem by deleting the .qmake* files in my home directory.

                        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