Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

qt 5.7 + Xcode 8.1 + os x El Capitan - could not resolve SDK Path for 'macosx'

Tags:

c++

xcode

macos

qt

I'm new to Qt and have just installed it on my mac running OS X El Capitan. But unfortunately I'm getting could not resolve SDK Path for 'macosx' when trying to run any example app.

I spent some time trying to find solution, but nothing works. I tried changing qdevice.pri according to the SDK version that I found in Xcode (MacOSX.sdk and MacOSX10.12.sdk link) but it didn't help.

My gcc settings are:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

I'm running OS X El Capitan, Xcode 8.1, Qt 5.7.

like image 319
pandomic Avatar asked Dec 06 '22 15:12

pandomic


1 Answers

Seems like I found the reason of getting errors. In my Xcode's -> Preferences -> Locations -> Command Line Tools there was no SDK selected. I have selected Xcode 8.1 and it seems to work ok now. Hope it won't be other problems.

like image 171
pandomic Avatar answered Feb 16 '23 02:02

pandomic