Project ERROR: You cannot configure qt 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. -
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 ?