Build LO for Android on Mac OS 10.8
jameschen at actions-micro.com
Sun Aug 12 20:54:27 PDT 2012
In my environment, Mac OS 10.8 and Xcode 4.4.1, without specifying Mac OS
X SDK version, it picks 10.6 as Mac OS X SDK.
And then it failed since it can't find gcc-4.2. So I tried to use option
--with-macosx-sdk with 10.8.
It's building now!
During applying --with-macosx-sdk option, I found some typos (maybe?), one
of them leads me to apply wrong option'--with-macox-sdk'.
I list them below just in case you are interested:
diff --git a/configure.in b/configure.in
index e060457..7633ea7 100644
@@ -2472,7 +2472,7 @@ dnl Check / find MacOSX SDK and compiler, version
if test "$_os" = "Darwin"; then
- # If no --with-macox-sdk option is given, first look for the 10.4u
+ # If no --with-macosx-sdk option is given, first look for the 10.4u
# SDK (which is distributed with the obsolete Xcode 3), then the
# 10.6, 10.7 and 10.8 SDKs, in that order. (Don't bother looking
# for the 10.5 SDK, unlikely somebody would have that but not
@@ -2513,7 +2513,7 @@ if test "$_os" = "Darwin"; then
- if test -z "with_$macosx_sdk"; then
+ if test -z "$with_macosx_sdk"; then
AC_MSG_ERROR([Could not figure out the location of a Mac OS X
SDK and its version])
And I also pass the --with-macosx-sdk option through to the "BUILD
platform configuration" to make it work:
@@ -3731,6 +3731,7 @@ if test "$cross_compiling" = "yes"; then
+ --with-macosx-sdk="$with_macosx_sdk" \
2>&1 | sed -e 's/^/ /'
test -f ./config_host.mk 2>/dev/null || exit
Not sure I'm doing it in a appropriate approach though (This is my first
time to get involved with auto-config/autogen stuff).
More information about the LibreOffice