Project ERROR: You cannot configure qt separately within a top-level build
-
Re: Project ERROR: You cannot configure qt separately within a top-level build. ?
Hi I am trying to cross compile Qt5 for beaglebone black (BBB),
My BBB runs debian 10, and has gcc 8.3.0
Linux beaglebone 4.19.94-ti-r43 #1buster SMP PREEMPT Wed Apr 22 06:11:16 UTC 2020
armv7l GNU/Linuxroot@beaglebone:/home/debian# arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.Desktop Version Linux Ubuntu 16.04
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial-VirtualBox 4.15.0-142-generic #146~16.04.1-Ubuntu SMP
Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxI have downloaded GCC 8.3.0 for "gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar"
and QT5 source qt-everywhere-src-5.15.2.tari have followed steps suggested by @jsulm in "https://forum.qt.io/topic/122297/beaglebone-cross-compile-setup/2"
later i faced the infolder issue and changed the folder structure as per links ,
now my folder structure is
"/home/chetan/QtForBBB/qt5/qt5base/"
my configure command is
../qt5/qt5base/qtbase/configure -top-level -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 -vPlease help me what i am missing
Regards
Chetan -
Re: Project ERROR: You cannot configure qt separately within a top-level build. ?
Hi I am trying to cross compile Qt5 for beaglebone black (BBB),
My BBB runs debian 10, and has gcc 8.3.0
Linux beaglebone 4.19.94-ti-r43 #1buster SMP PREEMPT Wed Apr 22 06:11:16 UTC 2020
armv7l GNU/Linuxroot@beaglebone:/home/debian# arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.Desktop Version Linux Ubuntu 16.04
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial-VirtualBox 4.15.0-142-generic #146~16.04.1-Ubuntu SMP
Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxI have downloaded GCC 8.3.0 for "gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar"
and QT5 source qt-everywhere-src-5.15.2.tari have followed steps suggested by @jsulm in "https://forum.qt.io/topic/122297/beaglebone-cross-compile-setup/2"
later i faced the infolder issue and changed the folder structure as per links ,
now my folder structure is
"/home/chetan/QtForBBB/qt5/qt5base/"
my configure command is
../qt5/qt5base/qtbase/configure -top-level -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 -vPlease help me what i am missing
Regards
Chetan@ChetanM said in Project ERROR: You cannot configure qt separately within a top-level build:
-top-level
Why?
-
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. -
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.@ChetanM Please follow https://wiki.qt.io/Building_Qt_5_from_Git and don't build inside source tree!
-
Thanks for the response @jsulm , i will try to do the steps mentioned ,
my dir structure is
├── build_qt
│ ├── bin
│ ├── mkspecs
│ └── qmake
└── qt5
└── qt5baseI 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 -
Thanks for the response @jsulm , i will try to do the steps mentioned ,
my dir structure is
├── build_qt
│ ├── bin
│ ├── mkspecs
│ └── qmake
└── qt5
└── qt5baseI 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@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. -
@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.@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 -vIs this correct
-
@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 -vIs this correct
@ChetanM said in Project ERROR: You cannot configure qt separately within a top-level build:
Is this correct
Probably, just try
-
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 gitRegards
Chetan.M -
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 gitRegards
Chetan.MCreating 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 -
@jbates hi and welcome to devnet,
Just a hunch, did you try using the full path to the configure script ?