Build LibreOffice on Mac OS X

foss at psi-si.com foss at psi-si.com
Tue Apr 23 15:06:34 PDT 2013


Hi,

New report about building LibreOffice on a clean Mac OS X 10.7/XCode 4.5.

10.6 SDK is from Xcode 4.3.2 dmg.

I switch to Libro 4 from git://gerrit.libreoffice.org/core

Here the present compilers :

 Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
 /usr/bin/clang

 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
 /usr/bin/i686-apple-darwin11-llvm-gcc-4.2

 gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
 /usr/local/bin/gcc-4.2
 Get from https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg

Note : Clang is the default compiler

Builds failed with each of their compilers.

My last autogen.sh configuration :
./autogen.sh  --without-doxygen --disable-python --without-help \
--without-helppack-integration --without-myspell-dicts  --with-macosx-sdk=10.6 \
CC="/usr/bin/clang -m32" \
CXX="/usr/bin/clang++ -m32" \
OBJCFLAGS=" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk" \
OBJCXXFLAGS=" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"

OBJCFLAGS and OBJCXXFLAGS are to force to not search includes in /Developper

I force compiler with CC and CCXX, preprocessor with CXXCPP="/usr/bin/i686-apple-darwin11-g++-4.2.1 -E"
Maybe I should try different linkers.

I get a different error for each combination, like this one :

[build LNK] Library/updatefeed.uno.dylib
Undefined symbols for architecture i386:
  "[build LNK] Library/libupdchk.dylib
com::sun::star::uno::Reference<com::sun::star::uno::XInterface>::operator com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&() const", referenced from:
      non-virtual thunk to pq_sdbc_driver::BaseResultSet::getStatement()in pq_baseresultset.o


May you post your complete toolchain ?

Best regards,
   Raphaël


More information about the LibreOffice mailing list