[Interest] Error building Qt 5.8 with Xcode 8

Alexandru Croitor alexandru.croitor at qt.io
Fri May 19 18:34:52 CEST 2017


Maybe try executing


sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer

or


$ DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer/"
$ export DEVELOPER_DIR

and then the xcrun command.

It might be also that you need to install the command line tools via App store (I think you can do it through XCode preferences as well).


On 19 May 2017, at 18:31, Calogero Mauceri <mauceri at actgate.com<mailto:mauceri at actgate.com>> wrote:

Hi Alexandru,

executing

/usr/bin/xcrun -find xcodebuild

I get the following error

xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

Note that xcodebuild is in /usr/bin and that path in is PATH

I installed XCode via App Store

Calogero



On Fri, May 19, 2017 at 6:17 PM, Alexandru Croitor <alexandru.croitor at qt.io<mailto:alexandru.croitor at qt.io>> wrote:
Hi,

If you grep for the message, you can find that it's printed in qtbase/mkspecs/features/mac/default_pre.prf

It checks for xcode by running "/usr/bin/xcrun -find xcodebuild 2>/dev/null"

Try to run that from your terminal and check what's the output.

One possible cause might be when you installed Xcode through different means: via app store or via regular download.

Alex.

On 19 May 2017, at 18:08, Calogero Mauceri <mauceri at actgate.com<mailto:mauceri at actgate.com>> wrote:

Hi all,

Trying to build Qt 5.8 on Mac OS 10.12.5, I get get the following error

./configure

+ cd qtbase
+ /Users/myuser/qt-everywhere-opensource-src-5.8.0/qtbase/configure -top-level

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


XCode 8.3.2 is properly installed and configured on that machine.

Any suggestions on how to fix this issue?

Thanks,
Calogero

--
Calogero Mauceri
Software Engineer

Applied Coherent Technology Corporation (ACT)
www.actgate.com<http://www.actgate.com/>
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest




--
Calogero Mauceri
Software Engineer

Applied Coherent Technology Corporation (ACT)
www.actgate.com<http://www.actgate.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170519/c9222952/attachment.html>


More information about the Interest mailing list