[oi-dev] Request for volunteers: Building LibreOffice

ken mays maybird1776 at yahoo.com
Fri Sep 23 14:54:08 UTC 2011


Hi Gary,

Here is my help....

1. Now you have to get java components configured correctly like JAVA_HOME=/usr/jdk/latest and ANT_HOME=/usr in which these builds sit in /usr/jdk, and /usr/share/lib/ant (ant libs). You may have to install the 'zip' package as well. 


Now here is my quick and dirty run of libreoffice-bootstrap-3.4.3.2 on OpenIndiana's oi_151a using GCC 3.4.3:

-------> Ken's libreoffice-bootstrap-3.4.3.2 output:
$ ./configure --with-jdk-home=/usr/jdk/latest --with-junit=/usr/share/lib/java/junit.jar

********************************************************************
*
*   Running LibreOffice build configuration.
*
********************************************************************

checking for grep that handles long lines and -e... /usr/gnu/bin/grep
checking for egrep... /usr/gnu/bin/grep -E
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for sed... /usr/gnu/bin/sed
checking for bash... /usr/bin/bash
checking for GNU or BSD tar... gtar
checking for solenv environment... default
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gtar... /usr/bin/gtar
checking the Solaris operating system release... ok (11)
checking the processor type... ok (i386)
checking whether to enable crashdump feature... no
checking whether to turn warnings to errors... no
checking whether to do a debug build... no
checking whether to build with additional debug utilities... no, full product build
checking whether to include symbols... no
checking whether to strip the solver or not.... yes
checking whether to enable native cups support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for cupsPrintFiles in -lcups... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking whether to enable fontconfig support... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FONTCONFIG... yes
checking whether to enable filters for legacy binary file formats (StarOffice 5.
2)... no
checking whether to use RPATH in shared libraries... yes
checking whether to include MySpell dictionaries... yes
checking whether to use dicts from external paths... no
checking gcc home... /usr
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc... /usr/bin/gcc
checking the GNU gcc compiler version... checked (gcc 3.4.3)
checking for -Bsymbolic-functions linker support ... not found
checking whether to enable pch feature... no
checking for GNU make... make
checking the GNU make version... make 3.81
checking for --hash-style gcc linker support ... no
checking for perl... /usr/bin/perl
checking the Perl version... checked (perl 5)
checking for required Perl modules... all modules found
checking for ANSI C header files... (cached) yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking size of long... 4
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking the GNU C++ compiler version... checked (g++ 3.4.3)
checking whether g++ has the enum bug... no
checking for g++ include path... /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../.
./../../include/c++/3.4.3
./configure: line 12559: showrev: not found
checking Whether building STLPort library makes sense... yes
checking Whether STLPort library will be actually built... yes
checking whether gcc supports -fvisibility=hidden... no
checking whether gcc supports -std=c++0x without Language Defect 757... no
checking whether we are able to use --ccache-skip... only used on Mac currently,
 skipping
checking which memory allocator to use... internal
checking whether to add custom build version... no

checking whether to build with Java support... yes
checking the installed JDK... checked (JDK 1.6.0_26)
checking for target java bytecode version... 1.6
configure: JAVA_HOME=/usr/jdk/latest
checking for jawt lib name... -ljawt
checking for dmake... no
dmake will be built on ./bootstrap

checking whether to enable EPM for packing... no
checking for gperf... /usr/bin/gperf
checking gperf version... OK
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build the stax... yes
checking whether to build the ODK... yes
checking whether to provide libstdc++/libgcc_s in the installset... yes
checking which zlib to use... external
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking which jpeg to use... internal
checking which expat to use... internal
checking which libwpd to use... internal
checking which cppunit to use... internal
checking whether freetype is available... checking for FREETYPE... yes
checking which libwps to use... internal
checking which libwpg to use... internal
checking for FT_GlyphSlot_Embolden in -lfreetype... yes
checking which libxslt to use... internal
checking which libxml to use... internal
checking whether to enable Python 2.x UNO API... yes
checking which python to use... external
checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... sunos5
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/s
ite-packages
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking which translate-toolkit to use... internal
checking which db to use... internal
checking which lucene to use... internal
checking whether to build the MySQL Connector extension... no
checking which hsqldb to use... internal
checking which beanshell to use... internal
checking which saxon to use... internal
checking which curl to use... internal
checking which boost to use... internal
checking which mdds to use... internal
checking which hash container mdds shall use... boost::unordered_map
checking which vigra to use... internal
checking which odbc headers to use... internal
checking whether to enable build of Mozilla/Mozilla NSS-using components... yes
checking whether to build Mozilla addressbook connectivity... yes
checking whether to build XML Security support... yes
checking whether to build LDAP configuration backend... yes
checking which LDAP SDK to use... Netscape/Mozilla
configure: creating ./config.status
config.status: creating ooo.lst
checking which mozilla to use... internal
checking for toolkit mozilla should use... gtk2
checking whether to build Mozilla/SeaMonkey... yes
checking whether to build provided NSS module... yes
checking for mozilla sources... checking for a169ab152209200a7bad29a275cb0333-se
amonkey-1.1.14.source.tar.gz... will be fetched
checking for MOZLIBREQ... yes
checking for MOZLIBREQ... yes
checking which sane header to use... internal
checking which icu to use... internal
checking whether to enable graphite support... no
checking for X... libraries , headers
checking for gethostbyname... no
checking for gethostbyname in -lnsl... yes
checking for connect... no
checking for connect in -lsocket... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XOpenDisplay in -lX11... yes
checking for XauDisposeAuth in -lXau... yes
checking whether to use Xaw... yes
checking for X11/Xaw/Label.h... yes
checking for main in -lXaw... yes
checking whether to link to Xrender... no, dynamically open it
checking which Xrender headers to use... internal
checking whether to enable RandR support... yes
checking for XRANDR... yes
checking whether to use neon... yes
checking which neon to use... internal
checking which libssl to use... internal
checking which redland library to use... internal
checking which libhunspell to use... internal
checking which altlinuxhyph to use... internal
checking which mythes to use... internal
checking which lpsolve to use... internal
checking which libtextcat to use... internal
checking which libtextcat data directory to use... internal
checking for getopt... yes
checking for readdir_r... yes
checking for bison... /usr/bin/bison
checking the bison version... checked (/usr/bin/bison 2.3)
checking for flex... /usr/bin/flex
checking for patch... /usr/gnu/bin/patch
checking whether /usr/gnu/bin/patch is GNU patch... yes
checking for gnucp... no
checking for cp... /usr/gnu/bin/cp
checking whether /usr/gnu/bin/cp is GNU cp from coreutils with preserve= support ... yes
checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking which VCLplugs shall be built... gtk
checking whether to enable GConf support... yes
checking for GCONF... yes
checking whether to enable GNOME VFS support... yes
checking for GNOMEVFS... yes
checking for GTK... yes
checking for GTK210... yes
checking whether to enable DBUS support... no
checking whether to enable GIO support... no
checking for LIBPNG... yes
checking whether to enable libpng linking in quickstarter... yes
checking whether to enable BrOffice branding... no
checking whether to use cairo... yes
checking which cairo to use... internal
checking whether to enable the GStreamer avmedia backend... yes
checking for GSTREAMER... yes
checking whether to build the OpenGL Transitions component... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking which Mesa headers to use... internal
checking whether to build the Presentation Minimizer extension... no
checking whether to build the Presenter Console extension... no
checking whether to build the PDF Import extension... no
checking whether to build the Wiki Publisher extension... no
checking whether to build the Report Builder extension... no
checking whether to build extension for support of scripts in BeanShell... no
checking whether to build extension for support of scripts in JavaScript... no
checking whether to build extension for support of scripts in Python... no
checking whether to enable the lockdown pieces... yes
checking whether to enable evolution 2 support... no
checking whether to enable KDE address book support... no
checking whether to include MathMLDTD... yes
checking which themes to include...  default crystal hicontrast oxygen tango
checking for helppack integration... integration
checking for extensions integration... no integration
checking for Lightproof extensions integration (only supported languages display
ed)... no integration
checking for Watch Window extension integration... no
checking for Diagram extension integration... no
checking for Validator extension integration... no
checking for Barcode extension integration... no
checking for ConvertTextToNumber extension integration... no
checking for Numbertext extension integration... no
checking for Hungarian Cross-reference Toolbar extension integration... no
checking for Typography Toolbar extension integration... no
checking for Google Docs extension integration... no
checking for NLPSolver extension integration... no
checking for LanguageTool extension integration... no
checking for oooblogger extension integration... no
checking for Sun Professional Template Pack integration (only supported language
s displayed)... no integration
checking whether to include third-party fonts... yes
checking whether to include Agfa Monotype fonts... no
checking whether to include PPDs... yes
checking whether to include AFMs... yes
checking whether to include extra galleries... no
checking whether to include extra templates... no
checking whether to include extra samples... no
checking whether to include extra fonts... no
checking whether to build global menu support... no
checking whether to enable online update... no
checking whether and how to use Xinerama... no
checking whether to use specific JVM search path at runtime... no
checking for jakarta-ant... no
checking for ant... /usr/bin/ant
checking if /usr/bin/ant works... Ant works
checking Ant lib directory... Ant lib directory found.
checking whether ant is >= 1.6.0... yes, 1.7.1
checking for JUnit 4... /usr/share/lib/java/junit.jar
checking for product version... 3.4
checking which languages to be built... en-US
checking for another 'intro' bitmap... none
checking for another 'about' bitmap... none
checking for vendor... not set
checking for UNIX wrapper name... not set
checking whether to install the compat oo* wrappers... no
checking for product name... LibreOffice
checking for install dirname... libreoffice
checking for prefix... /usr/local
checking for libdir... /usr/local/lib
checking for data dir... /usr/local/share
checking for man dir... /usr/local/share/man
checking for doc dir... /usr/local/share/doc/libreoffice
checking for install dir... /usr/local/lib/libreoffice
checking whether to statically link to Gtk... no
checking whether to use layout dialogs... no
checking build verbosity... not set
checking whether to use zenity during build... yes
checking for zenity... no
checking whether to enable dependency tracking... yes
checking for number of processors to use... grep: /proc/cpuinfo: No such file or
 directory
1
checking for maximum of jobs per processor... 1
setting up the build environment variables...
checking solver path... default
setting up the post_download check script
configure: creating ./config.status
config.status: creating ooo.lst
config.status: creating set_soenv
config.status: creating Makefile
config.status: creating bin/repo-list
Setting up the environment for building LibreOffice
Setting Solaris specific values... done

****************************************************************************
*
* LibreOffice configuration finished.
*
****************************************************************************
To build, issue:
make

To install when the build is finished, issue:
make install

If you want to develop LibreOffice, you might prefer:
make dev-install

If you want to run the smoketest, issue:
make check

.......

--> Now Build it!
dmake builds successfully!

--> downloads packages to src (needs other libre* packages)
src/0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
src/47e1edaa44269bc537ae8cabebb0f638-JLanguageTool-1.0.0.tar.bz2
src/5ba6a61a2f66dfd5fee8cdd4cd262a37-libwpg-0.2.0.tar.bz2
src/83d4029aebf290c0a9a8fee9c99638d3-libwps-0.2.1.tar.bz2
src/8d265a592619166f29c4672ea54812b7-libwpd-0.9.2.tar.bz2
src/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2
src/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2
src/e81c2f0953aa60f8062c05a4673f2be0-Python-2.6.1.tar.bz2
src/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
...
--> Note: get the other libreoffice packages.

********************************************************************
*
*   Running the post download checks.
*
********************************************************************

---------------------->
Just work your way through the quagmire from here....

You do the build which pulls in packages and such. A lot of the packages exist within your core distro and OI-IPS (dev). 


About the 30%/70% commentary:
------------------------------------

Now this a bit different if you want to pull in the monster monolithic 600MB tarball from LibreOffice git,
but we'll get to that on some other day since I was reviewing patches and code for that. 


Check your setup as something is wrong if your configure does not detect Python.h correctly. Usually, it is your searches for LIBS (-L/-R)/INCLUDES (-I) in the *FLAGS.

Also, OI-SFE project officially uses GCC 4.6.1. I added libreoffice.spec there for anyone to work from or build their own revisions. Someone from Oracle was working on porting LibreOffice as well...


Good luck,


~ Ken Mays











________________________________
From: Gary <gdriggs at gmail.com>
To: OpenIndiana Developer mailing list <oi-dev at openindiana.org>
Sent: Friday, September 23, 2011 3:50 AM
Subject: Re: [oi-dev] Request for volunteers: Building LibreOffice


On Thu, Sep 22, 2011 at 1:38 PM, Alex Viskovatoff wrote:

Also, that spec uses gcc 4.6.1, not gcc
>3.4.3. Can you share your work, so that people can pick 
up where you left off ...

I still can't get through the configuration with Solaris Studio, gcc 3 or gcc 4... same output as earlier re the missing Python.h. This is the latest variant of what I've tried for libreoffice-bootstrap-3.4.3.2:

PYTHON_CFLAGS="-I/usr/include/python2.6" ./configure --disable-mozilla --disable-odk --enable-binfilter --disable-cups --disable-Xaw --disable-randr

_______________________________________________
oi-dev mailing list
oi-dev at openindiana.org
http://openindiana.org/mailman/listinfo/oi-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20110923/44d69b67/attachment-0005.html>


More information about the oi-dev mailing list