How to build AOO on MacOSX 10.8

From Apache OpenOffice Wiki
Jump to: navigation, search

I'm trying to make AOO buildable on the latest MacOSX 10.8 - Mountain Lion. As what we did on MacOSX 10.7, we have to install Xcode 3.2 with SDK 10.4u. There are still some build breaks for AOO, which need to solve one by one.

To install Xcode 3.2 on MacOSX 10.8

Please refer to [1]. You need to change "10.7" to "10.9". The machine will reboot and the system will meet "kernel panics" after install Xcode 3.2. You need to enter the "Safe Mode" and delete some files.

Press "shift" during startup to enter the "Safe Mode". Go to the dir "/System/Library/Extentions/". Delete the following files, which belong to Xcode 3.2 on MacOSX 10.6

    (1) AppleProfileFamily.kext
    (2) CHUDKernLib.kext
    (3) CHUDProf.kext
    (4) CHUDUtils.kext

Reboot the machine normally. Please refer to [2]

To install JVM

Go to dir "/Applications/Utilities/", launch "Java Preferences.app" to start to download JVM

To install command support package with Xcode 4.4

There is no commands like "make", "svn" in "/usr/bin" on MacOSX 10.8 with Xcode 3.2. You need to download Xcode 4.4, launch it, click on memu "Xcode / Preferences..." to popup a dialog, select "Downloads / Components", click to install "Command Line Tools"

To build AOO's source code

Open a terminal, run cmds as below

    svn co https://svn.apache.org/repos/asf/incubator/ooo/trunk/ code
    cd code/main
    autoconf
    ./configure --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2" --with-epm-url="http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" --disable-build-mozilla --enable-category-b --enable-minimizer --enable-presenter-console --enable-wiki-publisher
    ./bootstrap
    source MacOSXX86Env.Set.sh
    cd instsetoo_native
    build --all -P4
  

To solve build break #1

Module : accessibility

The original error message /Users/hchao/Apache/build/r1386978/main/solenv/bin/checkdll.sh -L../unxmacxi.pro/lib -L/Users/hchao/Apache/build/r1386978/main/solver/350/unxmacxi.pro/lib ../unxmacxi.pro/lib/libacc.dylib Checking DLL ../unxmacxi.pro/lib/libacc.dylib ...: ERROR: dlopen(../unxmacxi.pro/lib/libacc.dylib, 2): Symbol not found: _objc_exception_extract Referenced from: /Users/hchao/Apache/build/r1386978/main/solver/350/unxmacxi.pro/lib/libvcl.dylib Expected in: /Users/hchao/Apache/build/r1386978/main/solver/350/unxmacxi.pro/lib/libvcl.dylib

dmake: Error code 1, while making '../unxmacxi.pro/lib/libacc.dylib' dmake: '../unxmacxi.pro/lib/libacc.dylib' removed. Running processes: 0 ERROR: error 65280 occurred while making /Users/hchao/Apache/build/r1386978/main/accessibility/util

Root cause : There is no symbol for "_obj_exception_extract"

Solution : TBD

Reference

Personal tools