Ariel Constenla-Haile <arie...@apache.org> has asked  for
4.1.0_release_blocker:
Issue 124556: Broken SDK environment
https://issues.apache.org/ooo/show_bug.cgi?id=124556


------- Additional Comments from Ariel Constenla-Haile <arie...@apache.org>
- 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to