macosx and qt

Hi to everbody,


when I using qt with the new xcode 9.0 update it's shiped a new macosx-Sdk.

The thing is qt doesn't find the path to the SDK. Shall I fix this with new compiler settings

or in qt and how?


here my qt-error :

:-1: Warnung: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk' [-Wmissing-sysroot]

----------------------------

On my System exist just : '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk'

But I can't fix it with :

macx {

QMAKE_MAC_SDK = macosx10.13

}

Do you have an idea how can I fix this link error?

Thx 😉

That seems to be more a qt question (I don't know this tool),to ask in the appropriate forum for qt, like h ttps://forum.qt.io

Hi Allman, we works with Qt and i had this problem now after update XCode.


The problem occurs because even after running qmake again this line that is in build_xxx folder, Makefile, is not changed:


CFLAGS = -pipe -O2 $(EXPORT_ARCH_ARGS) -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.10 -Wall -W -fPIC $(DEFINES)


Solution:


- Change this line in .pro file (as already done for you)


QMAKE_MAC_SDK = macosx10.13


- Close the project

- Remove the file. your_project.pro.user

- Open the project (you will need to reconfigure)

- Run qmake again

- Build you project.


Note that the Makefile file was created correctly now


Best Regards,

Miguel

have to create symbolic to MacOSX10.13.sdk to MacOSX.sdk to fix problem if you OSX sdk is updated to 10.13

I think the most easest way to fix you delete the ".qmake.stash" in your project directory!

macosx and qt
 
 
Q