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.

  1. i reinstalled xcode , command line, no success (link forum)

  2. 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)

  3. i've fixed errors got transition qt4 qt5

thanks help!


Comments

Popular posts from this blog

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

javascript - Create websocket without connecting -

android - Linear layout children not scrolling -