How to build AOO on MacOSX 10.8

From Apache OpenOffice Wiki
Revision as of 08:56, 7 August 2012 by EricHuang (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I'm trying to make AOO buildable on the latest MacOSX 10.8 - Montain 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" 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 code
    cd code/main
    ./configure --with-dmake-url="" --with-epm-url="" --disable-build-mozilla --enable-category-b --enable-minimizer --enable-presenter-console --enable-wiki-publisher
    cd instsetoo_native
    build --all -P4

To solve build break #1

Module : pyuno The original error message

 /Users/hchao/Apache/build/aoo.20120802/code/main/pyuno/source/module/pyuno_runtime.cxx:68: error: ‘PyVarObject_HEAD_INIT’ was not declared in this scope

Root cause : There is no "PyVarObject_HEAD_INIT" for Python 2.7 on MacOSX 10.8. The related revision is 1367858 "pyuno: Replace PyObject_HEAD_INIT with PyVarObject_HEAD_INIT and add some initial Python3 safeguards."

Solution : To revert the revision from 1367858 to 1366479 for module pyuno

 cd pyuno
 rm -rf
 svn up -r 1366479

To solve build break #2

Module : avmedia The original error message

 Checking DLL ../ ...: ERROR: dlopen(../, 2): Symbol not found: ___CFConstantStringClassReference
 Referenced from: /Users/hchao/Apache/build/aoo.20120802/code/main/solver/350/
 Expected in: /Users/hchao/Apache/build/aoo.20120802/code/main/solver/350/

Root cause : can not link to "___CFConstStringClassReference"

Solution : ?

 cd avmedia
 rm -rf


[1] [2]

Personal tools