Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


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.

[build LNK] Library/libpyuno.dylib
mv /Users/piet/Downloads/LibreOffice/core/workdir/Dep/LinkTarget/Library/libsysshlo.dylib.d.tmp 
/Users/piet/Downloads/LibreOffice/core/workdir/Dep/LinkTarget/Library/libsysshlo.dylib.d
S=/Users/piet/Downloads/LibreOffice/core && I=$S/instdir && W=$S/workdir &&  
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -m64 
 -stdlib=libc++ -mmacosx-version-min=10.8 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk  
 -dynamiclib -single_module -install_name 
'@__________________________________________________OOO/libsysshlo.dylib'  
-L$W/LinkTarget/StaticLibrary -L$W/LinkTarget/Library  -L$I/LibreOfficeDev.app/Contents/Frameworks  
-L$I/LibreOfficeDev.app/Contents/Frameworks   -luno_cppu -luno_cppuhelpergcc3 -luno_sal  
$W/CxxObject/shell/source/unix/exec/shellexec.o 
$W/CxxObject/shell/source/unix/exec/shellexecentry.o         
$W/LinkTarget/StaticLibrary/libshell_xmlparser.a -o 
$I/LibreOfficeDev.app/Contents/Frameworks/libsysshlo.dylib && : &&   /usr/bin/perl 
$S/solenv/bin/macosx-change-install-names.pl shl OOO 
$I/LibreOfficeDev.app/Contents/Frameworks/libsysshlo.dylib &&   otool -l 
$I/LibreOfficeDev.app/Contents/Frameworks/libsysshlo.dylib | grep -A 5 LC_ID_DYLIB > 
$W/LinkTarget/Library/libsysshlo.dylib.exports.tmp && 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -g -P 
$I/LibreOfficeDev.app/Contents/Frameworks/libsysshlo.dylib | cut -d' ' -f1-2 | grep -v U$ >> 
$W/LinkTarget/Library/libsysshlo.dylib.exports.tmp && if cmp -s 
$W/LinkTarget/Library/libsysshlo.dylib.exports.tmp  $W/LinkTarget/Library/libsysshlo.dylib.exports; 
then rm $W/LinkTarget/Library/libsysshlo.dylib.exports.tmp; else mv 
$W/LinkTarget/Library/libsysshlo.dylib.exports.tmp  $W/LinkTarget/Library/libsysshlo.dylib.exports 
&& touch -r $I/LibreOfficeDev.app/Contents/Frameworks/libsysshlo.dylib  
$W/LinkTarget/Library/libsysshlo.dylib.exports; fi && :
TEMPFILE=/var/folders/3x/rvxwk1n88xn6960059bdry_h0000gn/T/gbuild..jxm5x8cr &&  mv ${TEMPFILE} 
/Users/piet/Downloads/LibreOffice/core/workdir/LinkTarget/Library/libcmdmaillo.dylib.objectlist
S=/Users/piet/Downloads/LibreOffice/core && I=$S/instdir && W=$S/workdir &&  mkdir -p 
$W/Dep/LinkTarget/Library/ && 
RESPONSEFILE=/var/folders/3x/rvxwk1n88xn6960059bdry_h0000gn/T/gbuild..aI8yVbF4 && 
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+$DYLD_LIBRARY_PATH:}"$I/LibreOfficeDev.app/Contents/Frameworks:$I/LibreOfficeDev.app/Contents/Frameworks"
   $W/LinkTarget/Executable/concat-deps ${RESPONSEFILE} > 
$W/Dep/LinkTarget/Library/libpyuno.dylib.d.tmp && rm -f ${RESPONSEFILE}
[build MOD] ridljar
mv /Users/piet/Downloads/LibreOffice/core/workdir/Dep/LinkTarget/Library/libpyuno.dylib.d.tmp 
/Users/piet/Downloads/LibreOffice/core/workdir/Dep/LinkTarget/Library/libpyuno.dylib.d
S=/Users/piet/Downloads/LibreOffice/core && I=$S/instdir && W=$S/workdir &&  
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -m64 
 -stdlib=libc++ -mmacosx-version-min=10.8 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk  
 -dynamiclib -single_module -install_name 
'@__________________________________________________OOO/libpyuno.dylib'  
-L$W/LinkTarget/StaticLibrary -L$W/LinkTarget/Library  -L$I/LibreOfficeDev.app/Contents/Frameworks  
-L$I/LibreOfficeDev.app/Contents/Frameworks   -luno_cppu -luno_cppuhelpergcc3 -luno_sal 
-luno_salhelpergcc3  $W/CxxObject/pyuno/source/module/pyuno_runtime.o 
$W/CxxObject/pyuno/source/module/pyuno.o $W/CxxObject/pyuno/source/module/pyuno_callable.o 
$W/CxxObject/pyuno/source/module/pyuno_module.o $W/CxxObject/pyuno/source/module/pyuno_type.o 
$W/CxxObject/pyuno/source/module/pyuno_util.o $W/CxxObject/pyuno/source/module/pyuno_except.o 
$W/CxxObject/pyuno/source/module/pyuno_adapter.o $W/CxxObject/pyuno/source/module/pyuno_gc.o        
 -lpython2.7 -ldl -framework CoreFoundation   -o 
$I/LibreOfficeDev.app/Contents/Frameworks/libpyuno.dylib && : &&   /usr/bin/perl 
$S/solenv/bin/macosx-change-install-names.pl shl OOO 
$I/LibreOfficeDev.app/Contents/Frameworks/libpyuno.dylib &&   otool -l 
$I/LibreOfficeDev.app/Contents/Frameworks/libpyuno.dylib | grep -A 5 LC_ID_DYLIB > 
$W/LinkTarget/Library/libpyuno.dylib.exports.tmp && 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -g -P 
$I/LibreOfficeDev.app/Contents/Frameworks/libpyuno.dylib | cut -d' ' -f1-2 | grep -v U$ >> 
$W/LinkTarget/Library/libpyuno.dylib.exports.tmp && if cmp -s 
$W/LinkTarget/Library/libpyuno.dylib.exports.tmp  $W/LinkTarget/Library/libpyuno.dylib.exports; 
then rm $W/LinkTarget/Library/libpyuno.dylib.exports.tmp; else mv 
$W/LinkTarget/Library/libpyuno.dylib.exports.tmp  $W/LinkTarget/Library/libpyuno.dylib.exports && 
touch -r $I/LibreOfficeDev.app/Contents/Frameworks/libpyuno.dylib  
$W/LinkTarget/Library/libpyuno.dylib.exports; fi && :
TEMPFILE=/var/folders/3x/rvxwk1n88xn6960059bdry_h0000gn/T/gbuild..FhgJNgAZ &&  mv ${TEMPFILE} 
/Users/piet/Downloads/LibreOffice/core/workdir/LinkTarget/Library/libsysshlo.dylib.objectlist
ld: library not found for -lpython2.7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.