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. Project ERROR: failed to parse default search paths from compiler output
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 5 Posters 5.8k Views 2 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.
  • I Offline
    I Offline
    Inc0n
    wrote on last edited by
    #1

    I am trying out a QT project, specifically this one: https://gitlab.com/eql/lqml. My machine is Mac m1. My installation is brew and online installer (I tried both).

    I have not been successful in compiling this project using qmake, the error being:

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

    There seems to be two posts on this forum, but I am struggling to get it to apply to my case.

    So I added -d to qmake and found out:

    DEBUG 1: /opt/homebrew/Cellar/qt@5/5.15.8_3/mkspecs/features/toolchain.prf:291: calling built-in isEmpty(QMAKE_DEFAULT_LIBDIRS)
    DEBUG 1: /opt/homebrew/Cellar/qt@5/5.15.8_3/mkspecs/features/toolchain.prf:291: test function returned true

    For some reason nothing was added to QMAKE_DEFAULT_LIBDIRS, whilst parsing the compiler output.
    Inspecting the compiler output (I have taken out the bits I think is most relevant to lib path):

    -L. -L/lib -L/opt/homebrew/lib -v /var/folders/p4/fdb1p15530n00cx05d2xjkgm0000gn/T/--b0e304.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a" "@(#)PROGRAM:ld PROJECT:ld64-764" "BUILD 11:29:07 May 17 2022" "configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em" "ld: warning: directory not found for option '-L/lib'" "Library search paths:" \t. \t/opt/homebrew/lib \t/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib "Framework search paths:" \t/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/

    SGaistS 1 Reply Last reply
    0
    • I Inc0n

      I am trying out a QT project, specifically this one: https://gitlab.com/eql/lqml. My machine is Mac m1. My installation is brew and online installer (I tried both).

      I have not been successful in compiling this project using qmake, the error being:

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

      There seems to be two posts on this forum, but I am struggling to get it to apply to my case.

      So I added -d to qmake and found out:

      DEBUG 1: /opt/homebrew/Cellar/qt@5/5.15.8_3/mkspecs/features/toolchain.prf:291: calling built-in isEmpty(QMAKE_DEFAULT_LIBDIRS)
      DEBUG 1: /opt/homebrew/Cellar/qt@5/5.15.8_3/mkspecs/features/toolchain.prf:291: test function returned true

      For some reason nothing was added to QMAKE_DEFAULT_LIBDIRS, whilst parsing the compiler output.
      Inspecting the compiler output (I have taken out the bits I think is most relevant to lib path):

      -L. -L/lib -L/opt/homebrew/lib -v /var/folders/p4/fdb1p15530n00cx05d2xjkgm0000gn/T/--b0e304.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a" "@(#)PROGRAM:ld PROJECT:ld64-764" "BUILD 11:29:07 May 17 2022" "configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em" "ld: warning: directory not found for option '-L/lib'" "Library search paths:" \t. \t/opt/homebrew/lib \t/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib "Framework search paths:" \t/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      How did you install Xcode ?
      Did you install the command line tools ?

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

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        How did you install Xcode ?
        Did you install the command line tools ?

        R Offline
        R Offline
        rjmx
        wrote on last edited by
        #3

        @SGaist @Inc0n Had the same problem just now. Turned out to be because qmake wasn't in my PATH. Added its directory to my PATH, and all is well.

        L 1 Reply Last reply
        0
        • R rjmx

          @SGaist @Inc0n Had the same problem just now. Turned out to be because qmake wasn't in my PATH. Added its directory to my PATH, and all is well.

          L Offline
          L Offline
          lay_aa
          wrote on last edited by
          #4

          @rjmx can you tell me how you deal this question

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            Hi, upgrade to Qt 6.5.3 and delete your <projectname>.pro.user file.

            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