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 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
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on 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
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on 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
        0
        • SGaistS SGaist referenced this topic on
        • hskoglundH hskoglund referenced this topic on
        • ademmlerA Offline
          ademmlerA Offline
          ademmler
          wrote on 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

          ademmlerA 1 Reply Last reply
          0
          • ademmlerA ademmler

            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

            ademmlerA Offline
            ademmlerA Offline
            ademmler
            wrote on 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 last edited by
              #6

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

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on 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 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
                  • hskoglundH Offline
                    hskoglundH Offline
                    hskoglund
                    wrote on 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
                    • hskoglundH hskoglund

                      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 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