Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OSX Qt 5.7 static compile
Qt 6.12 LTS is out! See what's new in the release blog

OSX Qt 5.7 static compile

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.7k 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.
  • J Offline
    J Offline
    Jedd
    wrote on last edited by
    #1

    I'm having an issue with Xcode 8 and Qt 5.7

    ./configure -no-opengl -no-fontconfig -release -fontconfig -qt-libpng -qt-zlib -qt-freetype -static -prefix /home/jeff/Qt/5.7/static -confirm-license -opensource -nomake examples -no-xcb-xlib -qt-xcb -no-dbus -nomake tests -skip qtquick1 -skip declarative -qt-xkbcommon

    gives me:

    Xcode not set up properly. You may need to confirm the license
    agreement by running /usr/bin/xcodebuild without arguments.

    I have edited qtbase/mkspecs/features/mac/default_pre.prf to apply the patch:

    isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))

    No joy, the error persists. I don't recall this error when I compiled 5.6 :(

    Thanks for any help!

    jsulmJ CharlieGC 2 Replies Last reply
    0
    • J Jedd

      I'm having an issue with Xcode 8 and Qt 5.7

      ./configure -no-opengl -no-fontconfig -release -fontconfig -qt-libpng -qt-zlib -qt-freetype -static -prefix /home/jeff/Qt/5.7/static -confirm-license -opensource -nomake examples -no-xcb-xlib -qt-xcb -no-dbus -nomake tests -skip qtquick1 -skip declarative -qt-xkbcommon

      gives me:

      Xcode not set up properly. You may need to confirm the license
      agreement by running /usr/bin/xcodebuild without arguments.

      I have edited qtbase/mkspecs/features/mac/default_pre.prf to apply the patch:

      isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))

      No joy, the error persists. I don't recall this error when I compiled 5.6 :(

      Thanks for any help!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Jedd Did you try to do what the error message suggests? Execute:

      /usr/bin/xcodebuild
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • J Jedd

        I'm having an issue with Xcode 8 and Qt 5.7

        ./configure -no-opengl -no-fontconfig -release -fontconfig -qt-libpng -qt-zlib -qt-freetype -static -prefix /home/jeff/Qt/5.7/static -confirm-license -opensource -nomake examples -no-xcb-xlib -qt-xcb -no-dbus -nomake tests -skip qtquick1 -skip declarative -qt-xkbcommon

        gives me:

        Xcode not set up properly. You may need to confirm the license
        agreement by running /usr/bin/xcodebuild without arguments.

        I have edited qtbase/mkspecs/features/mac/default_pre.prf to apply the patch:

        isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))

        No joy, the error persists. I don't recall this error when I compiled 5.6 :(

        Thanks for any help!

        CharlieGC Offline
        CharlieGC Offline
        CharlieG
        wrote on last edited by
        #3

        @Jedd
        Hi,

        You must change the qtbase/configure file.
        Search : agreement by running /usr/bin/xcodebuild without arguments.and change in the If condition :
        if ! /usr/bin/xcrun -find xcrun >/dev/null 2>&1; then
        by :
        if ! /usr/bin/xcrun -find xcodebuild >/dev/null 2>&1; then

        Bye.

        Charlie

        J 1 Reply Last reply
        1
        • CharlieGC CharlieG

          @Jedd
          Hi,

          You must change the qtbase/configure file.
          Search : agreement by running /usr/bin/xcodebuild without arguments.and change in the If condition :
          if ! /usr/bin/xcrun -find xcrun >/dev/null 2>&1; then
          by :
          if ! /usr/bin/xcrun -find xcodebuild >/dev/null 2>&1; then

          Bye.

          Charlie

          J Offline
          J Offline
          Jedd
          wrote on last edited by
          #4

          @CharlieG Thanks, that did the trick.

          1 Reply Last reply
          1

          • Login

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