Solved OSX Qt 5.7 static compile
-
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!
-
@Jedd Did you try to do what the error message suggests? Execute:
/usr/bin/xcodebuild
-
@Jedd
Hi,You must change the qtbase/configure file.
Search :agreement by running /usr/bin/xcodebuild without arguments.
and change in theIf
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
-
@CharlieG Thanks, that did the trick.