Build LO for Android on Mac OS 10.8

James Chen 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
--- a/configure.in
+++ b/configure.in
@@ -2472,7 +2472,7 @@ dnl Check / find MacOSX SDK and compiler, version
checks
 dnl ===================================================================
 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
                 with_macosx_sdk=10.8
             fi
         fi
-        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])
         fi
     Fi


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-num-cpus="$with_num_cpus" \
         --with-max-jobs="$with_max_jobs" \
         --without-doxygen \
+        --with-macosx-sdk="$with_macosx_sdk" \
         $sub_conf_opts \
         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).

James




More information about the LibreOffice mailing list