Apache OpenOffice (AOO) Bugzilla – Issue 124556
Broken SDK environment
Last modified: 2014-04-02 15:12:32 UTC
- Install AOO 4.1.0 Beta and the respective SDK - Download the same boost used in AOO build and apply the same patches - Install XCode, but do not install the command line tools - set the SDK environment pointing to the patched boost - try to build the complex toolbar controls C++ example: In file included from MyProtocolHandler.cxx:24: In file included from ./ListenerHelper.h:22: In file included from /Users/black/OpenOffice_SDK_Beta/include/stl/vector:31: In file included from /Users/black/boost_1_55_0/boost/tr1/tr1/vector:16: /Users/black/boost_1_55_0/boost/tr1/detail/config_all.hpp:43:10: fatal error: 'cstddef' file not found #include <cstddef> ^ 1 error generated. make: *** [/Users/black/OpenOffice_SDK_Beta/MACOSXexample.out/slo/complextoolbarcontrols/MyProtocolHandler.o] Error 1 This is solved by adding the -isysroot switch to the CC_FLAGS (the -isysroot $(gb_SDKDIR) in gbuild's macosx.mk). Looking at the generated command, there seem to be some leftovers after the switch to clang: -DUNX -DGCC -DMACOSX -DCPPU_ENV=s5abi -DGXX_INCLUDE_PATH= -DHAVE_GCC_VISIBILITY_FEATURE at least: * empty GXX_INCLUDE_PATH, but is it needed for clang? It seems to be set in gbuild's macosx.mk * -DGCC seems wrong, it should be the expansion of -D$(COM) and COM is not gcc any more
no showstopper, easy work around available, will be fixed on trunk asap