Mentioning to delete .qmake.cache and .qmake.stash when encountering errors. authored by Karel Slaný's avatar Karel Slaný
......@@ -70,6 +70,8 @@ Currently we use:
You need Xcode with Command Line Tools in order to compile and build the package. Xcode usually supports two adjacent SDKs (e.g. 10.9 and 10.10). You need to obtain an older Xcode package to achieve older SDKs. Store the SDKs into the directory `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs`.
> If you get any suspicious error when configuring/compiling/linking the application try deleting `.qmake.cache` and `.qmake.stash` first. These may cause problems especially when switching between QT versions and various Xcode SDKs. `rm $(find ./ | grep '\.qmake\.cache') $(find ./ | grep '\.qmake\.stash')`
> If you get an error similar to `clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk` then go to the directory `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk` and execute `sudo ln -s MacOSX.sdk MacOSX10.12.sdk` - this will usually help.
> If you get errors similar to `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found` then:
......
......