OS X 10.10,Xcode 6.3.2,Qt 5.4.2 clang 64bit
在转移到Yosemite和QT 5后,我无法在Mac上构建我的C ++项目。 我在 clean,qmake和rebuild之后得到了下一个错误:
proxy
还有一些几乎完全相同的错误...
如果我只是构建文件.pro ,我会:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/unistd.h:185: error: expected a platform name, e.g., 'macosx'
int getattrlistbulk(int, void *, void *, size_t, uint64_t) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/unistd.h:203: error: expected a platform name, e.g., 'macosx'
int faccessat(int, const char *, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/gethostuuid.h:39: error: expected a platform name, e.g., 'macosx'
int gethostuuid(uuid_t, const struct timespec *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/string.h:145: error: expected a platform name, e.g., 'macosx'
errno_t memset_s(void *, rsize_t, int, rsize_t) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
^
我已经尝试过针对类似问题找到的所有解决方案。
我重新安装了Xcode和命令行,但没有成功(Link to forum)
我在.bash_profile和qdevice.pri文件中指定了SDK 10.10(macosx10.10)的路径,并在我的* .pro(Link to forum)中添加了:-1: error: No rule to make target 'build/eTarApp.o'. Stop.
我修复了从qt4过渡到qt5所带来的所有错误
感谢您的帮助!