c++ - QT Build Error ' Expected a platform name ' (Xcode 6.3.2 / OS X 10.10 / Qt 5.4.2) -
os x 10.10, xcode 6.3.2, qt 5.4.2 clang 64bit
after moving yosemite , qt 5 can't build c++ project on mac anymore. next errors after clean,qmake , rebuild:
/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.10.sdk/usr/include/sys/unistd.h:185: error: expected 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 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 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 platform name, e.g., 'macosx' errno_t memset_s(void *, rsize_t, int, rsize_t) __osx_available_starting(__mac_10_9, __iphone_7_0); ^
and few more exact same errors...
if build file .pro get:
:-1: error: no rule make target 'build/etarapp.o'. stop.
i've tried solutions find similar issues.
i reinstalled xcode , command line, no success (link forum)
i specified path sdk 10.10 ( macosx10.10) in both .bash_profile , qdevice.pri file, , added
qmake_mac_sdk = macosx10.9
in *.pro (link forum)i've fixed errors got transition qt4 qt5
thanks help!
Comments
Post a Comment