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. Configure script for Qt5.15.X fails on Linux-Ubuntu24 with "Could not find qmake spec ''"
Qt 6.11 is out! See what's new in the release blog

Configure script for Qt5.15.X fails on Linux-Ubuntu24 with "Could not find qmake spec ''"

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 196 Views 1 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.
  • N Offline
    N Offline
    NicolasC
    wrote on last edited by NicolasC
    #1

    Hello everyone,

    I'd like to compile a version of Qt5.15.X on a fresh Linux-Ubuntu24. Qt5.15.13 is (still) packaged for Ubuntu24, so it is clearly possible.

    AFAIK, I have installed all the dependencies I am aware of.

    However, no matter which Qt5.15 version of qt sources I download (I tried Qt5.15.2, Qt5.15.13, Qt5.15.15, Qt5.15.18), the configure script aborts with the following error :

    + cd qtbase
    + XXX/qt-everywhere-src-5.15.15/qtbase/configure -top-level 
    Creating qmake...
    .Done.
    Could not find qmake spec ''.
    Error processing project file: XXX/qt-everywhere-src-5.15.15/qt.pro
    

    I am clearly missing something, likely a needed dependency, but... well... I could bot figure out the problem.

    Would you have a hint for me ?

    Thanks in advance,
    N.

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

      Hi,

      Are you doing an out of source build ?

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Are you doing an out of source build ?

        N Offline
        N Offline
        NicolasC
        wrote on last edited by NicolasC
        #3

        Hello and thanks.

        @SGaist no I am not.

        This is exactly what I do (with various qt5.15 source versions) :

        • download the sources from the Qt archives, eg https://download.qt.io/archive/qt/5.15/5.15.18/
        • navigate to the qt-everywhere-src-5.15.18 directory
        • run the configure script, with e.g. ./configure -prefix $PWD/qtbase -opensource -nomake tests

        This is when the configure script generates the error. Full output is :

        + cd qtbase
        + XXX/qt-everywhere-src-5.15.15/qtbase/configure -top-level 
        Creating qmake...
        .Done.
        Could not find qmake spec ''.
        Error processing project file: XXX/qt-everywhere-src-5.15.15/qt.pro
        

        An internet search indicates that I may be missing some dependencies on my freshly installed Ubuntu24.
        But which one ? I can't figure out.

        Thanks;
        Nicolas

        1 Reply Last reply
        0
        • N Offline
          N Offline
          NicolasC
          wrote on last edited by
          #4

          Hello again.

          Well, problem solved !

          My qt-everywhere-src-5.15.XX directory was placed behind a path with French accents (eg $HOME/Téléchargements).

          Accents (and very likely other non-ASCII chars) within the qt source directory's path is not supported by the configure script.

          My configure script ran OK :)

          Thanks

          1 Reply Last reply
          2
          • N NicolasC has marked this topic as solved on
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Accents and spaces are pretty tricky !
            Glad you found out and thanks for sharing

            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

            • Login

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