Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake error: Project ERROR: failed to parse default search paths from compiler output on MacOS Sonoma 14.0 & QT Version 5.15.13

qmake error: Project ERROR: failed to parse default search paths from compiler output on MacOS Sonoma 14.0 & QT Version 5.15.13

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 1.6k 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.
  • I Offline
    I Offline
    iSolve_Tech
    wrote on 21 Sept 2023, 05:56 last edited by
    #1

    After updating the macOS from 13.4 to 14 we are getting the following error while building mac OSX build.

    qmake error: Project ERROR: failed to parse default search paths from compiler output.

    We are using QT version 5.15.13 & also we have updated the xcode version to Version 15.0

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 21 Sept 2023, 06:04 last edited by
      #2

      Hi, I got the same error yesterday and I am still on Ventura 13.5.2.
      For me that error ("... failed to parse default search patterns...) started yesterday when my Xcode was updated to version 15.0.

      I have Qt 6.5.2.
      The error only occurs for projects using qmake (i.e. .pro files).
      Projects with CMake still work fine.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hskoglund
        wrote on 21 Sept 2023, 15:28 last edited by
        #3

        Fixed in https://bugreports.qt.io/browse/QTBUG-117225
        If you don't wait for Qt 6.5.3 or 5.15.16 you can apply the fix yourself, by editing ~/Qt/6.5.2/macos/mkspecs/features/toolchain.prf
        see here

        V 1 Reply Last reply 1 Dec 2023, 16:25
        0
        • S SGaist referenced this topic on 21 Sept 2023, 17:59
        • H hskoglund referenced this topic on 29 Sept 2023, 12:50
        • A Offline
          A Offline
          ademmler
          wrote on 3 Oct 2023, 13:06 last edited by
          #4

          hi,

          I have applied this patch to /Users/username/Qt/5.15.15/macos/mkspecs/features/toolchain.prf

          But I still get the same Error.
          Project ERROR: failed to parse default search paths from compiler output
          1: error: Error while parsing file

          Environment: Ventura 13.5.1 on M1 Macintosh with Qt 5.15.5

          A 1 Reply Last reply 3 Oct 2023, 17:57
          0
          • A ademmler
            3 Oct 2023, 13:06

            hi,

            I have applied this patch to /Users/username/Qt/5.15.15/macos/mkspecs/features/toolchain.prf

            But I still get the same Error.
            Project ERROR: failed to parse default search paths from compiler output
            1: error: Error while parsing file

            Environment: Ventura 13.5.1 on M1 Macintosh with Qt 5.15.5

            A Offline
            A Offline
            ademmler
            wrote on 3 Oct 2023, 17:57 last edited by
            #5

            @ademmler

            I have found a solution here (last entry):
            https://bugreports.qt.io/browse/QTBUG-117747?jql=project %3D QTBUG AND component %3D "Build tools%3A qmake"

            I have now replaced my copy of clang_64/mkspecs/features/toolchain.prf with the one available at https://github.com/qt/qtbase/blob/dev/mkspecs/features/toolchain.prf.

            This did the trick and worked for me.

            1 Reply Last reply
            1
            • I Offline
              I Offline
              iSolve_Tech
              wrote on 6 Oct 2023, 03:53 last edited by
              #6

              I have replaced toolchain.prf but still getting same error.

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hskoglund
                wrote on 6 Oct 2023, 11:03 last edited by
                #7

                Hi, try deleting your <projectname>.pro.user file and restart Qt Creator.

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  iSolve_Tech
                  wrote on 9 Oct 2023, 06:20 last edited by
                  #8

                  @hskoglund
                  I have replaced toolchain.prf & also deleted the <projectname>.pro.user file, but still getting same error.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hskoglund
                    wrote on 9 Oct 2023, 07:30 last edited by
                    #9

                    Try updating to Qt 5.15.16
                    If all else fails, try changing from qmake to CMake.

                    1 Reply Last reply
                    0
                    • H hskoglund
                      21 Sept 2023, 15:28

                      Fixed in https://bugreports.qt.io/browse/QTBUG-117225
                      If you don't wait for Qt 6.5.3 or 5.15.16 you can apply the fix yourself, by editing ~/Qt/6.5.2/macos/mkspecs/features/toolchain.prf
                      see here

                      V Offline
                      V Offline
                      vmanso
                      wrote on 1 Dec 2023, 16:25 last edited by
                      #10

                      @hskoglund I've had this exact issue after updating to sonoma and the instructions you provided have fixed my issue (at least).

                      I just manually edited the file and after that projects are compiling again.

                      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