Restructuring AOO Build Guide

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Restructuring AOO Build Guide

Keith N. McKenna
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




signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Carl Marcum


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,

Thanks for volunteering to help with this.

I have  a few thoughts on the step-by-step pages.
1. Break it by AOO version and then OS.  I think there are many sections
that are probably obsolete now and it's hard to tell, especially for
someone new.
2. Maybe a section or a new page on configuration options and uses-cases
on when to use which ones for different platforms. This has always been
a point of confusion for me.

Like I mentioned in another thread where I'm trying to build latest on
CentOS 8.  I have some VM's setup to test build instructions and I think
I'll add a few more Linux's like Ubuntu or Debian.

Since I have one ready and I'm stuck building CentOS 8 I'll start on
CentOS 7.

So I guess I'm doing some volunteering too ;)
I'll let you know what I find.

Best regards,
Carl

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Keith N. McKenna
On 2/17/2020 6:45 PM, Carl Marcum wrote:

>
>
> 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,
>
> Thanks for volunteering to help with this.
>
> I have  a few thoughts on the step-by-step pages.
> 1. Break it by AOO version and then OS.  I think there are many sections
> that are probably obsolete now and it's hard to tell, especially for
> someone new.
> 2. Maybe a section or a new page on configuration options and uses-cases
> on when to use which ones for different platforms. This has always been
> a point of confusion for me.
>
> Like I mentioned in another thread where I'm trying to build latest on
> CentOS 8.  I have some VM's setup to test build instructions and I think
> I'll add a few more Linux's like Ubuntu or Debian.
>
> Since I have one ready and I'm stuck building CentOS 8 I'll start on
> CentOS 7.
>
> So I guess I'm doing some volunteering too ;)
> I'll let you know what I find.
>
> Best regards,
> Carl
Thanks Carl I look forward to it.

Keith


signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Patricia Shanahan
In reply to this post by Carl Marcum


On 2/17/2020 3:45 PM, Carl Marcum wrote:
...
> I have  a few thoughts on the step-by-step pages.
> 1. Break it by AOO version and then OS.  I think there are many sections
> that are probably obsolete now and it's hard to tell, especially for
> someone new.

I think the Step-by-Step guide should be split by OS, and be the main
guide. Whether it should also be split by AOO version depends on how
much is different between versions.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Yury
In reply to this post by Keith N. McKenna
Can't login now (and won't be able to for a while), so putting some comments
here:

I think there definitely should be examples, 1-2 for every place where
variants are supposed to occur. If that's a 'one size fits all' guide (both
experienced guys and building newbies), than '<something>' convention might
be somewhat confusing. I seem to remember MS internal help uses another kind
of braces for such stuff.

Do not remove the mention(s) of SVN repository completely - external sources
might exist still pointing to it. Just move it to a subpoint, with a
suitable comment(s). (Is it going to be phased out? Is it synchronised? Is
it read-only? What stuff does it hold?)

Mention unowinreg.dll.

Is the 'clean' procedure described in the 'Incompatible Build' actually
tested and 'official' way to do 'make clean'? I can't check right now, but
like 2-3 weeks ago I had problems.

The Scons materiel in earlier topics posted by Damjan Jovanovic might be
mentioned, too.



--
Sent from: http://openoffice.2283327.n4.nabble.com/Development-f2916443.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Carl Marcum
In reply to this post by Keith N. McKenna


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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Carl Marcum
In reply to this post by Keith N. McKenna
Hi Keith,

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


Here are my notes on building AOO 4.2 on Ubuntu 18 LTS 64-bit VM
Started with a minimal desktop install.

Again, If anyone spots unneeded dependencies please let us know.

**** Begin ****

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

# make sure there are no spaces after the backslash if you copy/paste.
# I tried to put these in a better order :)
# I also used the system ant instead of downloading it like I did with
CentOS 7.

install dependencies:

sudo apt-get install \
ant \
autoconf \
bison \
ccache \
g++ \
gcc \
git \
gperf \
fakeroot \
flex \
junit4 \
libarchive-zip-perl \
libcups2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libgconf2-dev \
libghc-gio-dev \
libgtk2.0-dev \
libgstreamer1.0-0 \
libidl-dev \
liborbit2-dev \
libpam0g-dev \
libssl-dev \
libwww-perl \
libxaw7-dev \
libxml-parser-perl \
libxrandr-dev \
openjdk-8-jdk \
patch


# 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

get unowinreg.dll
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

from main
$ ./bootstrap

$ source LinuxX86-64Env.Set.sh

# I used time because I wanted to see how long the build took.
# I also use 2 cores this time but that's also all this VM has configured.
# so it may be why it didn't make much difference.

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

***********************************************************
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 Mon Feb 24 08:13:56 2020

Multiprocessing build is finished
Maximal number of processes run: 2

real    842m45.535s
user    1069m43.491s
sys    142m18.526s

# At 14 hours 2 processes didn't do me that much better.

**** End ****

Other notes:
When I start the office I keep getting this error.
If I select No=ignore things seem to keep working.

Error: assertion failed!
 From File <path-to>/aoo/main/vcl/unx/gtk/a11y/atkwrapper.cxx at Line 874
Abort ? (Yes=abort / No=ignore / Cancel=core dump)

Please let me know if you have any questions.

Carl


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Andrea Pescetti-2
Carl Marcum wrote:
> Here are my notes on building AOO 4.2 on Ubuntu 18 LTS 64-bit VM

Thanks for the efforts (both for CentOS 7 and Ubuntu LTS). Some of the
notes below apply to both.

> Started with a minimal desktop install.

Especially as we are in a VM, it would make sense to double-check with a
minimal install without even the desktop environment (since one can
connect externally). But I guess the dependencies listed below would
probably do the right thing in either case.

> download dmake, unpack, and change into directory

I don't see a need for downloading dmake and/or EPM. This is part of the
build process. Of course nobody forbids your approach, but for a minimal
set of instruction one would just pass the download URLs and everything
would be built automatically.

> $ wget https://github.com/jimjag/dmake/archive/dmake-4.12.3.tar.gz
> $ wget https://github.com/jimjag/epm/archive/epm-4.4.2.tar.gz
> $ wget -O external/unowinreg/unowinreg.dll
> https://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll

I would replace these three (holds for CentOS 7 too) with files from
OOoExtras. I mean, we should rely on the assumption that in order to
build OpenOffice we must have online:
- The code repository
- OOoExtras for all dependencies (thus I would also store unowinreg.dll
there and change our default download URL for it)
- Extensions if one needs to download/bundle a dictionary

We shouldn't depend on packages hosted on Github or on files from
tools.openoffice.org.

> --with-package-format="installed" \

In this case you won't need EPM probably. Or do you still need it?

> $ time build --all -P2 -- -P2
> # At 14 hours 2 processes didn't do me that much better.

Both timings you reported are really strange, maybe there is some bad
virtualization performance. Even for a build without ccache the time
should be closer to 1 hour than to 14 hours. I'd like to investigate
this or at least to double-check on my hardware.

> When I start the office I keep getting this error.
> If I select No=ignore things seem to keep working.
> Error: assertion failed!
>  From File <path-to>/aoo/main/vcl/unx/gtk/a11y/atkwrapper.cxx at Line 874
> Abort ? (Yes=abort / No=ignore / Cancel=core dump)

Never seen, but for sure this must be fixed.

Regards,
   Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Carl Marcum

On 2/25/20 12:10 PM, Andrea Pescetti wrote:

> Carl Marcum wrote:
>> Here are my notes on building AOO 4.2 on Ubuntu 18 LTS 64-bit VM
>
> Thanks for the efforts (both for CentOS 7 and Ubuntu LTS). Some of the
> notes below apply to both.
>
>> Started with a minimal desktop install.
>
> Especially as we are in a VM, it would make sense to double-check with
> a minimal install without even the desktop environment (since one can
> connect externally). But I guess the dependencies listed below would
> probably do the right thing in either case.
>
>> download dmake, unpack, and change into directory
>
> I don't see a need for downloading dmake and/or EPM. This is part of
> the build process. Of course nobody forbids your approach, but for a
> minimal set of instruction one would just pass the download URLs and
> everything would be built automatically.
>
>> $ wget https://github.com/jimjag/dmake/archive/dmake-4.12.3.tar.gz
>> $ wget https://github.com/jimjag/epm/archive/epm-4.4.2.tar.gz
>> $ wget -O external/unowinreg/unowinreg.dll
>> https://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll
>
> I would replace these three (holds for CentOS 7 too) with files from
> OOoExtras. I mean, we should rely on the assumption that in order to
> build OpenOffice we must have online:
> - The code repository
> - OOoExtras for all dependencies (thus I would also store
> unowinreg.dll there and change our default download URL for it)
> - Extensions if one needs to download/bundle a dictionary
>
> We shouldn't depend on packages hosted on Github or on files from
> tools.openoffice.org.
>
>> --with-package-format="installed" \
>
> In this case you won't need EPM probably. Or do you still need it?
>
>> $ time build --all -P2 -- -P2
>> # At 14 hours 2 processes didn't do me that much better.
>
> Both timings you reported are really strange, maybe there is some bad
> virtualization performance. Even for a build without ccache the time
> should be closer to 1 hour than to 14 hours. I'd like to investigate
> this or at least to double-check on my hardware.
>
>> When I start the office I keep getting this error.
>> If I select No=ignore things seem to keep working.
>> Error: assertion failed!
>>  From File <path-to>/aoo/main/vcl/unx/gtk/a11y/atkwrapper.cxx at Line
>> 874
>> Abort ? (Yes=abort / No=ignore / Cancel=core dump)
>
> Never seen, but for sure this must be fixed.
>
> Regards,
>   Andrea.

Hi Andrea,
Thank you very much for your review.

I'll modify my notes and give them another run through.
I can also setup a minimal install a give it a try like you suggested.

I don't think epm would be needed if I'm not packaging.
We could note that somewhere in the instructions.

It's quite possible I could have some settings that need changed on my
VirtualBox guests to improve performance.
I'll look into it.

Best regards,
Carl


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Peter Kovacs-3
In reply to this post by Carl Marcum
Hi Carl,

--enable-dbgutil

Will activate assertion errors. We have a lot of them.

The one you have found i started to analyses at

https://bz.apache.org/ooo/show_bug.cgi?id=128272

I know now there is some IDL to look at, but did not pick up the investigation again.
If anyone knows something then just write it up will help.

There is another Issue where I posted a lot of other assertion errors. So if you start using OO with debug option enabled it will always pop some assertion error up without crashing.

Am 25.02.20 um 01:06 schrieb Carl Marcum:

> Hi Keith,
>
> 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
>
>
> Here are my notes on building AOO 4.2 on Ubuntu 18 LTS 64-bit VM
> Started with a minimal desktop install.
>
> Again, If anyone spots unneeded dependencies please let us know.
>
> **** Begin ****
>
> # comments for background info that don't need to be included.
>
> # make sure there are no spaces after the backslash if you copy/paste.
> # I tried to put these in a better order :)
> # I also used the system ant instead of downloading it like I did with
> CentOS 7.
>
> install dependencies:
>
> sudo apt-get install \
> ant \
> autoconf \
> bison \
> ccache \
> g++ \
> gcc \
> git \
> gperf \
> fakeroot \
> flex \
> junit4 \
> libarchive-zip-perl \
> libcups2-dev \
> libfontconfig1-dev \
> libfreetype6-dev \
> libgconf2-dev \
> libghc-gio-dev \
> libgtk2.0-dev \
> libgstreamer1.0-0 \
> libidl-dev \
> liborbit2-dev \
> libpam0g-dev \
> libssl-dev \
> libwww-perl \
> libxaw7-dev \
> libxml-parser-perl \
> libxrandr-dev \
> openjdk-8-jdk \
> patch
>
>
> # 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
>
> get unowinreg.dll
> 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
>
> from main
> $ ./bootstrap
>
> $ source LinuxX86-64Env.Set.sh
>
> # I used time because I wanted to see how long the build took.
> # I also use 2 cores this time but that's also all this VM has
> configured.
> # so it may be why it didn't make much difference.
>
> this is the big moment!! time to build the office...
> change into the install set directory.
> $ cd instsetoo_native
> $ time build --all -P2 -- -P2
>
> ***********************************************************
> 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 Mon Feb 24 08:13:56 2020
>
> Multiprocessing build is finished
> Maximal number of processes run: 2
>
> real    842m45.535s
> user    1069m43.491s
> sys    142m18.526s
>
> # At 14 hours 2 processes didn't do me that much better.
>
> **** End ****
>
> Other notes:
> When I start the office I keep getting this error.
> If I select No=ignore things seem to keep working.
>
> Error: assertion failed!
> From File <path-to>/aoo/main/vcl/unx/gtk/a11y/atkwrapper.cxx at Line 874
> Abort ? (Yes=abort / No=ignore / Cancel=core dump)
>
> Please let me know if you have any questions.
>
> Carl
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Mechtilde Stehmann-2
In reply to this post by Andrea Pescetti-2
Hello,


Am 25.02.20 um 18:10 schrieb Andrea Pescetti:
> Carl Marcum wrote:
>> Here are my notes on building AOO 4.2 on Ubuntu 18 LTS 64-bit VM
>

> In this case you won't need EPM probably. Or do you still need it?
We need epm to build deb und rpm.
>
>> $ time build --all -P2 -- -P2
>> # At 14 hours 2 processes didn't do me that much better.
>
> Both timings you reported are really strange, maybe there is some bad
> virtualization performance. Even for a build without ccache the time
> should be closer to 1 hour than to 14 hours. I'd like to investigate
> this or at least to double-check on my hardware.

in my VM  with build --all -P2 -- -P2 I need more than 12 h too.

At the sponsored maschine with build --all -P2 -- -P8 it takes a little
bit more than 1 h.

Kind regards

--
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Mechtilde Stehmann-2
In reply to this post by Peter Kovacs-3
Hello Peter,

Am 26.02.20 um 04:25 schrieb Peter Kovacs:
> Hi Carl,
>

> There is another Issue where I posted a lot of other assertion errors.
> So if you start using OO with debug option enabled it will always pop
> some assertion error up without crashing.

Is there needed a special build?

How can I start the debug mode?

Kind regards

--
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Carl Marcum
In reply to this post by Mechtilde Stehmann-2


On 2/26/20 1:26 AM, Mechtilde wrote:

> Hello,
>
>
> Am 25.02.20 um 18:10 schrieb Andrea Pescetti:
>> Carl Marcum wrote:
>>> Here are my notes on building AOO 4.2 on Ubuntu 18 LTS 64-bit VM
>> In this case you won't need EPM probably. Or do you still need it?
> We need epm to build deb und rpm.
>>> $ time build --all -P2 -- -P2
>>> # At 14 hours 2 processes didn't do me that much better.
>> Both timings you reported are really strange, maybe there is some bad
>> virtualization performance. Even for a build without ccache the time
>> should be closer to 1 hour than to 14 hours. I'd like to investigate
>> this or at least to double-check on my hardware.
> in my VM  with build --all -P2 -- -P2 I need more than 12 h too.
>
> At the sponsored maschine with build --all -P2 -- -P8 it takes a little
> bit more than 1 h.
>
> Kind regards
>
Hi Mechtilde,

Thanks for confirming the time.

Best regards,
Carl


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Restructuring AOO Build Guide

Carl Marcum
In reply to this post by Peter Kovacs-3


On 2/25/20 10:25 PM, Peter Kovacs wrote:

> Hi Carl,
>
> --enable-dbgutil
>
> Will activate assertion errors. We have a lot of them.
>
> The one you have found i started to analyses at
>
> https://bz.apache.org/ooo/show_bug.cgi?id=128272
>
> I know now there is some IDL to look at, but did not pick up the
> investigation again.
> If anyone knows something then just write it up will help.
>
> There is another Issue where I posted a lot of other assertion errors.
> So if you start using OO with debug option enabled it will always pop
> some assertion error up without crashing.
>
Hi Peter,

Thanks for the feedback.

So maybe we should leave that one out of the basic instructions and
include it in a configure options section.

On the step by step page there are a lot of flags used in different
platform examples.
May these have changed over the years as well.

I see these used in some examples but I don't know what they do.

--disable-odk

--disable-binfilter

|--disable-gconf

|Is there a page that describes all the configure options?

Thanks,
Carl


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]