Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT 5.12 Project ERROR: You cannot configure qt separately within a top-level build on Raspberry Pi 3
Forum Update on Monday, May 27th 2025

QT 5.12 Project ERROR: You cannot configure qt separately within a top-level build on Raspberry Pi 3

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 2.3k Views
  • 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.
  • ThatGuyYeahT Offline
    ThatGuyYeahT Offline
    ThatGuyYeah
    wrote on last edited by ThatGuyYeah
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

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

      1 Reply Last reply
      0
      • ThatGuyYeahT Offline
        ThatGuyYeahT Offline
        ThatGuyYeah
        wrote on last edited by ThatGuyYeah
        #3

        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 and qt-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.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          WangXiaobing
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved