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. Compiling Qt 5.10.0 with GCC on macOS 10.13?

Compiling Qt 5.10.0 with GCC on macOS 10.13?

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 6.9k 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.
  • S Offline
    S Offline
    ScottLupton
    wrote on last edited by
    #1

    I was trying to compile Qt 5.10.0 for the macx-g++ platform, but I'm getting an error. Here are my configure parameters:

    configure -platform macx-g++ -prefix /Users/scott/Qt/Qt5.10.0S/ -static -opensource -confirm-license -make libs
    

    Here's the error:

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

    Here's the full output:

    Scotts-MacBook-Pro:Qt5.10.0S scott$ ./configure -platform macx-g++ -prefix /Users/scott/Qt/Qt5.10.0S/ -static -opensource -confirm-license -make libs
    + cd qtbase
    + /Users/scott/Qt/Qt5.10.0S/qtbase/configure -top-level -platform macx-g++ -prefix /Users/scott/Qt/Qt5.10.0S/ -static -opensource -confirm-license -make libs
    Creating qmake...
    ...............................................................................................Done.
    Info: creating super cache file /Users/scott/Qt/Qt5.10.0S/.qmake.super
    Info: creating stash file /Users/scott/Qt/Qt5.10.0S/.qmake.stash
    Project ERROR: failed to parse default search paths from compiler output
    

    Can anybody suggest the cause of this error?

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

      Hi,

      IIRC, the macx-g++ mkspec is still present for historical reason. Don't use it.

      Let configure use the default which is clang that is also the official compiler from Apple.

      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
      2
      • S Offline
        S Offline
        ScottLupton
        wrote on last edited by
        #3

        Thanks, I didn't know it was deprecated. I'll use Clang.

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

          Clang has become the default compiler since Xcode 4.2 and the only one available since 5.0.

          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