LibreOffice 4 and Python on Yosemite

Piet van Oostrum piet at vanoostrum.org
Sun Mar 8 13:49:59 PDT 2015


Hello,

When compiling LibreOffice 4 (both 4.4.1.2 from the source tarball and the HEAD from Git) I have trouble including Python.

Before this I had compiled LO 4.3.5.2 on Mac OS X 10.6.8 (Snow Leopard) and everything went without problems. Just ./autogen.sh (without any options) and make.

However I wanted to switch to LO 4 and therefore I had to go to a newer version of Mac OS X. I installed Yosemite (10.10.2), and now it couldn't find Python anymore.

I have included part of the logfile below. The linker complains about not being able to find the library -lpython2.7, as there is no corresponding -L option. Also I don't know why it wants python 2.7 as I thought LO 4 wants Python 3.3. Maybe it is because the standard python invocation on my system is 2.7, and 3.3 must be invoked as python3.

I also tried to include  --enable-python=internal but then it couldn't find it. So I wonder how the LO build gets its internal Python: does it compile it from source or does it make a copy of a Python on your system?

So I ended up with --enable-python=no, which I don't like.

Is there a way to get it to find the proper Python on my machine?

PS. The reason I want to compile LO myself is that I have some bug  fixes that I want to submit to gerrit, but I want to test them first on the newest version.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pythonproblem
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150308/75e3e9bd/attachment.ksh>
-------------- next part --------------

-- 
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]


More information about the LibreOffice mailing list