building on Mac OS 10.12 "Sierra"

René J.V. Bertin rjvbertin at gmail.com
Sat Oct 22 20:26:52 UTC 2016


Hi,

Has anyone already tried to build KDevelop on Mac OS 10.12? Apparently KDevelop 5.0.2 fails to build one of the Mac-specific files, but I fail to understand why (the compiler should accept the syntax used in the header files from system SDKs...)
I don't know yet if the system clang accepts this syntax, but a stock clang 3.9.0 gives the same error as clang 3.8.1 .

What do we miss when we just skip exclude fileutils_mac.mm ? AFAICT it provides additional functionality, nothing that seems crucial.

cd /opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/build/languages/qmljs/libs && /opt/local/bin/clang++-mp-3.8   -DQML_BUILD_STATIC_LIB=1 -DQT_CORE_LIB -DQT_CREATOR -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050400 -DQT_GUI_LIB -DQT_MAC_USE_COCOA -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_WIDGETS_LIB -DQT_XML_LIB -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE -I/opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/build/languages/qmljs/libs -I/opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/kdevelop-5.0.2/languages/qmljs/libs -I/opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/kdevelop-5.0.2 -I/opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/build -I/opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/kdevelop-5.0.2/languages/plugins -iframework /opt/local/libexec/qt5/Library/Frameworks -isystem /opt/local/libexec/qt5/Library/Frameworks/QtCore.framework/Headers -isystem /opt/local/share/qt5/mkspecs/macx-clang -isystem /opt/local/libexec/qt5/Library/Frameworks/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/local/libexec/qt5/Library/Frameworks/QtWidgets.framework/Headers -isystem /opt/local/libexec/qt5/Library/Frameworks/QtNetwork.framework/Headers -isystem /opt/local/libexec/qt5/Library/Frameworks/QtXml.framework/Headers  -pipe -Os -DNDEBUG -DQT_USE_EXTSTANDARDPATHS -DQT_EXTSTANDARDPATHS_ALT_DEFAULT=true -stdlib=libc++  -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wno-missing-field-initializers -Werror=undefined-bool-conversion -Werror=tautological-undefined-compare -arch x86_64 -mmacosx-version-min=10.12 -fvisibility=hidden -fvisibility-inlines-hidden   -DLANGUAGEUTILS_BUILD_DIR -DQTCREATOR_UTILS_LIB -fPIC -o CMakeFiles/kdevqtc-qmlsupport.dir/utils/fileutils_mac.mm.o -c /opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/kdevelop-5.0.2/languages/qmljs/libs/utils/fileutils_mac.mm
:info:build In file included from /opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/kdevelop-5.0.2/languages/qmljs/libs/utils/fileutils_mac.mm:33:
:info:build In file included from /opt/local/var/macports/build/_Users_marko_WC_GIT_macstrop_kf5_kdevelop5/kf5-kdevelop/work/kdevelop-5.0.2/languages/qmljs/libs/utils/autoreleasepool.h:35:
:info:build In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:5:
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44:12: error: unknown property attribute 'class'
:info:build @property (class, readonly) BOOL supportsSecureCoding;
:info:build            ^


Thanks,
R.


More information about the KDevelop-devel mailing list