Solved QT 5.12 Project ERROR: You cannot configure qt separately within a top-level build on Raspberry Pi 3
-
Hello,
I am currently trying to add QT 5.12.3 on Raspberry Pi 3 B+ on Raspbian. I have had very mixed results so far. The tutorial I am using is this: https://www.tal.org/tutorials/building-qt-512-raspberry-pi
I am aware that as soon as I resolve this one issue, I will have another can of worms with the make as seen in past issues in other threads and forums. But I cannot make it to that issue as I am stuck at this part:
"Create a shadow build directory outside of the Qt source tree
We will build Qt outside of the source tree, this way you can easily have different build version and easily also start over in case of any issues. You build location can be anywhere where there is enough space, for example an USB stick in case you are running out on your SD card. Remember to adjust any paths in the commands.mkdir build
cd build"So I do just that, I create a simple folder called build and enter the folder there, then I enter the following:
PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \ ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ \ -v \ -opengl es2 -eglfs \ -no-gtk \ -opensource -confirm-license -release \ -reduce-exports \ -force-pkg-config \ -nomake examples -no-compile-examples \ -skip qtwayland \ -skip qtwebengine \ -no-feature-geoservices_mapboxgl \ -qt-pcre \ -no-pch \ -ssl \ -evdev \ -system-freetype \ -fontconfig \ -glib \ -prefix /opt/Qt5.12 \ -qpa eglfs
I then run into the Project ERROR mentioned in the title. I am 1000% sure that I am doing something really silly, but would like confirmation. Thank you.
-
Hi and welcome to devnet,
@thatguyyeah said in QT 5.12 Project ERROR: You cannot configure qt separately within a top-level build on Raspberry Pi 3:
Create a shadow build directory outside of the Qt source tree
The key word here is:
outside
.From what you wrote, your
build
folder is inside Qt's sources folder. Change that and add-nomake tests -nomake examples
. These last two flags will make you win time and disk space. -
Thank you for the reply!
@sgaist said in QT 5.12 Project ERROR: You cannot configure qt separately within a top-level build on Raspberry Pi 3:
The key word here is:
outside
.From what you wrote, your
build
folder is inside Qt's sources folder. Change that and add-nomake tests -nomake examples
. These last two flags will make you win time and disk space.Alright, so I made a directory
/home/pi/build
I did the code there and I got the same error. I tried going a folder deeper and did/home/pi/build/qt512
and I still got the same error.qt-everywhere-src-5.12.3
andqt-raspberrypi-configuration
folders are in the same folder directory (home/pi
).Are you saying that I have to take that I have to build this folder elsewhere?
EDIT: Appears that this was the issue, but I am now running into another issue, lol. Thank you on this solution.
-
I just came across this issue. The anwser is in the qtbase/configure, you can see the error messge in this file. Delete the parent derecotory of the build can solve this issue.