On 2/17/20 5:01 PM, Keith N. McKenna wrote:
In a previous thread
(https://lists.apache.org/thread.html/r4bf950b61077b8fb320de7c257d6ffacbcbf42cd2bdf643c3be7b617%40%3Cdev.openoffice.apache.org%3E)
it was mentioned that a restructuring of the AOO build Guides would be a
good idea.

I am starting this thread as a place where people can discuss ideas of
what this my look like. For reference the current Build Guide is here:
https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO.

This should be a wide ranging discussion that leads to clearer
instructions to be able to build AOO; especially for new volunteers.

Regards
Keith N. McKenna

Hi Keith,

These are my notes from building on a fresh VM with CentOS 7 and a basic Gnome Desktop with no additional packages for software development installed.

*** If anyone spots any unneeded dependencies or changes to my configure flags let us know. ***

Building on CentOS 7 64bit VMwith 4G ram allocated.

**** begin ****

# comments for background info that don't need to be included.

Need EPEL repo (check with "yum repolist")
$ sudo yum install epel-release
$ sudo yum update -y

# my system came OTB with OpenJDK 7 and 8 packages installed.
# java 8 was the system current version so I went with that.
#
# I'm told by Damjan that gstreamer (v0.1) is not needed so I removed it from the list but I already the packages installed.
#
# hamcrest is installed with junit but configure doesn't find it.
# it installed into:
# /usr/share/java/hamcrest/
# without hamcrest or version in the jar names
# all.jar
# core.jar
# generator.jar
# integration.jar
# library.jar
# so I used the hamcrest flag in the configure command

Install dependencies:

$ sudo yum install \
java-1.8.0-openjdk-devel \
gcc \
expat-devel \
openssl-devel \
autoconf \
gcc-c++ \
cups-devel \
pam-devel \
rpm-build \
dpkg \
fakeroot \
gperf \
freetype-devel \
libX11-devel \
libXt-devel \
fontconfig-devel \
libXrandr-devel \
bison \
flex \
GConf2-devel \
ghc-gio \
gtk2-devel \
gstreamer1-devel \
gstreamer1-plugins-base-devel \
mesa-libGLU-devel \
wget \
git \
ccache \
glib2-devel \
dbus-glib-devel \
perl \
ORBit2-devel \
junit

# since you may just now have git I'll put in getting the source here.
get the source if you haven't already.

# I use my own fork of OpenOffice on github.
from a directory you want to download source to.
installs to a directory aoo.
$ git clone https://github.com/<github-user>/openoffice.git aoo

# from here on I'll refer to /<path-to>/aoo

# my ccache max_size was already default to 5G
ccache max_size should be 2G or more. check with "ccache -p"
To set a value:
$ ccache -M 2G

# section on ant
# used 1.9.14
# 1.10.6 was available there but possible breaking changes are listed so I stayed with 1.9

# I use a directory /home/<user>/apps to store user applications
# update as needed
from /home/<user>/apps
download ant, unpack, and change into directory
$ wget http://mirrors.nxnethosting.com/apache/ant/binaries/apache-ant-1.9.14-bin.tar.bz2
$ tar xvf apache-ant-1.9.14-bin.tar.bz2
$ cd apache-ant-1.9.14
$ pwd
/home/<user>/apps/apache-ant-1.9.14

# I still had issues with configure finding ant so I used flags for it in configure.
create symbolic link from ~/apps/apache-ant-1.9.14 to ~/ant
$ ln -s apache-ant-1.9.14 ~/ant

Install the perl stuff
$ sudo yum install \
       perl-CPAN \
       perl-libwww-perl \
       perl-Archive-Zip \
       perl-Digest-SHA \
       perl-XML-Parser \
       perl-Crypt-SSLeay \
       perl-Env \
       perl-LWP-Protocol-https

# I use a directory /home/<user>/sources to store source I download.
# update as needed
cd ~/sources
download dmake, unpack, and change into directory
$ wget https://github.com/jimjag/dmake/archive/dmake-4.12.3.tar.gz
$ tar xvf dmake-4.12.3.tar.gz
$ cd dmake-dmake-4.12.3/
$ pwd
/home/<user>/sources/dmake-dmake-4.12.3

# I needed to use sudo for the make install so I split these up.
build and install dmake
$ ./configure --prefix=/usr/local;
$ sudo make install

change back to ~/sources
cd ..
download epm, unpack, and change into directory
$ wget https://github.com/jimjag/epm/archive/epm-4.4.2.tar.gz
$ tar xvf epm-4.4.2.tar.gz
$ cd epm-epm-4.4.2

build and install epm
$ ./configure --prefix=/usr/local --enable-aoo;
$ sudo make install


from <path-to>/aoo/main
$ wget -O external/unowinreg/unowinreg.dll https://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll

configure the build
$ autoconf

$ ./configure \
--enable-category-b \
--enable-bundled-dictionaries \
--enable-dbgutil \
--with-package-format="installed" \
--with-rat-scan \
--enable-gio \
--disable-gnome-vfs \
--with-ant-home=/home/carl/apps/apache-ant-1.9.14 \
--with-hamcrest-core=/usr/share/java/hamcrest/core.jar

from main
$ ./bootstrap

$ source LinuxX86-64Env.Set.sh

# I used time because I wanted to see how long the build took.

this is the big moment!! time to build the office...
change into the install set directory.
cd instsetoo_native
$ time build --all

***********************************************************
Successful packaging process!
***********************************************************
    copying log file to /<path-to>/aoo/main/instsetoo_native/unxlngx6/Apache_OpenOffice_SDK/installed/install/log/log_AOO450_en-US.log
stopping log at Sat Feb 22 02:01:07 2020

real    885m54.489s
user    754m20.609s
sys    108m43.954s

# almost 15 hours on a VM with 4G ram

# your path may vary by lanquages built
OpenOffice installed files are in:
/<path-to>/aoo/main/instsetoo_native/unxlngx6/Apache_OpenOffice/installed/install/<language>/openoffice4

$ cd unxlngx6/Apache_OpenOffice/installed/install/<language>/openoffice4

run with:
$ ./program/soffice

**** end ****

It would probably be good to have a separate section for broken builds and partial and full cleaning but I need help with that too ;)

Please let me know if you have any questions.

Now I'm going to setup a Debian VM and work on that one.

Thanks,
Carl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to