Per la versione 2.2.0 e' stato reso disponibile anche O3-build,
http://wiki.services.openoffice.org/wiki/O3-build
un'immagine ISO che contiene tutto il necessario (strumenti e
dipendenze) per compilare OpenOffice.org senza sorprese e nel modo piu'
compatibile possibile.

Nato per sistemi GNU/Linux, e' ora utilizzabile anche sotto Windows e, a
quando pare (dato interessante perche' ho gia' ricevuto varie richieste
in proposito), funziona anche con compilatori gratuiti.

Se qualcuno vuole fare qualche prova sotto Windows sono curioso di
sapere i risultati: vi anticipo che, per questioni di licenze, chi vuole
compilare sotto Windows dovra' installare a mano molti strumenti. Per
facilitarvi, metto sotto al messaggio la parte del README (preso
dall'immagine ISO che e' oltre 1 GByte) che contiene i requisiti sotto
Windows.
Ciao,
  Andrea.

Build requirements for Windows

System requirement 
For a build on Windows you need at least a Windows NT, Windows 2000,
Windows XP with latest Service Packs installed. For Windows Vista this
needs to be tested.
Usally English versions of the System and Tools are used and tested, you
might run into problems if you use localized version. It should work but
be prepared for surprises !

Compiler and Tools

Visual C++ .Net
A Microsoft Visual C++ .Net Compiler. The Microsoft Visual C++ .Net 2003
is the compiler used for the official builds, but the free Microsoft
Visual C++ 2005 Express edition also works. Using the GNU mingw gcc
Compiler is still work in progress and will be potentially available
with OpenOffice.org 2.3 release.
The Microsoft Visual .Net C++ 2005 Express release ( search for Visual
Express on msdn.com or try
http://msdn.microsoft.com/vstudio/express/visualc, but this URL may
change). This will get you to an online installer vcsetup.exe (~3MB), 

Microsoft Macro Assembler
Search on http://www.microsoft.com/downloads for macro assembler, this
should lead you to the Microsoft Macro Assembler 8.0 (MASM) Package for
x86. The Version from 6/7/2006 might hang after installation, you might
to kill the msiexec process in the Task-Manager of Windows.

Windows SDK (aka Platform SDK)
The Windows Server 2003 R2 SDK (March 2006), formerly know as the
Windows Platform SDK. Searching on msdn.com for „Windows SDK“ should
lead to the latest version. Attention: The download of the installer
needs validation of your Windows system !
The SDK includes a library named “libcp.lib” in the Lib directory, this
files needs to be renamed or removed.

* Patch in the header "Microsoft Platform SDK/include/atl/atlwin.h"
(Line 1753):
- for(i = 0; i < m_aChainEntry.GetSize(); i++)
+ for(int i = 0; i < m_aChainEntry.GetSize(); i++)

DirectX 9.0 SDK 
The latest SDK can be found on msdn.microsoft.com/directx/sdk . The
current version is “DirectX February 2007 SDK”. Sun builds are done with
the DirectX SDK (Summer 2004) which is not available any more.

Cygwin Toolkit
At least version 1.5.10 of the cygwin toolkit is required. The
installation is available from http://www.cygwin.com. The official
information about using setup.exe and installing Cygwin are available
at: http://cygwin.com/cygwin-ug-net/setup-net.html. More help and
information on the Cygwin tools can be found at
http://website.openoffice.org/support/en/howtos/1.html.

When installing Cygwin make sure you set the "Default Text File Type" to
"Unix". This is the default setting.

Not all Cygwin packages are needed to build OpenOffice.org, but make
sure that at least all the packages from the base category and the
following packages are installed.
      * Bison
      * flex
      * make
      * patch
      * perl

And also:
      * gcc
      * rxvt
      * tcsh
      * unzip
      * zip

Important Note: Within the Cygwin Toolkit, three executables might be
realised as symlinks, namely awk.exe, gunzip.exe and tar.exe. This might
lead to a break of the build later, and the symlinks should be replaced
with copies of the command they link to. Check, in a cygwin shell, with
ls -l /bin/awk.exe whether awk.exe is a symlink. For instance, awk.exe
could be a link to gawk.exe, in which case you should copy gawk.exe to
awk.exe: cd /bin; rm awk.exe; cp gawk.exe awk.exe. Take similar action
for unzip.exe and tar.exe.

Attention: After the update of your cygwin toolkit, the step of breaking
the links may be repeated.

Important Note: If you are using cygwin-1.5.18, you may have to download
a development snapshot of the cygwin1.dll from
http://cygwin.com/snapshots/, please see issue i#51560# for more
details. If you do not do this, your build will hang while building
'instsetoo_native'.


Perl Module requirements
As you might need to install additional perl modules to build OOo 2.0 or
to use the tinderbox script this document describes briefly how to
access and use CPAN.

What is CPAN?
CPAN is the Comprehensive Perl Archive Network, a large collection of
Perl software and documentation. You can begin exploring from either
http://www.cpan.org/, http://www.perl.com/CPAN/ or any of the mirrors
listed at http://www.cpan.org/SITES.html and http://mirror.cpan.org/.

Note that CPAN is also the name of a Perl module, CPAN.pm, which is used
to download and install Perl software from the CPAN archive.

This page tells you only enough to use this Perl module to install
additional perl modules. You may find the documentation for it by using
perldoc CPAN via the command line or on the web at
http://search.cpan.org/author/JHI/perl-5.8.0/lib/CPAN.pm.

Install a module with CPAN.

If you are behind a firewall set FTP_PASSIVE to 1.

$ export FTP_PASSIVE="1"

Start the CPAN module.

$ perl -MCPAN -e shell

If this is your first time you use this module you have to answer some
questions of this module. Just follow the directions on your screen.

For example, if you want to install the Mail::Sender module do it like:

cpan> install Mail::Sender

Typing help gets you some online help.

cpan> help

And typing quit quits the module.

cpan> quit

This is everything you need to know to use the CPAN module.

[edit]

Detailed installation instructions

Especially on win32 there are some issues with Crypt::SSLeay. CPAN
designates modules that can be installed using CPAN directly, MANUAL
indicate modules that must be installed manually (really!). The
installation order is also important. Phase 1 must be installed before
Phase 2 (and the internal order is significant)

Phase 1: Everyone

1. CPAN: perl -MCPAN -e 'install Archive::Zip'

2. CPAN: perl -MCPAN -e 'install XML::Parser' 

Phase 2: For committers

1. MANUAL: Crypt::SSLeay. The CPAN installation is broken.

1. Download and unpack the installation tarball:
http://www.perl.com/CPAN/modules/by-module/Crypt/Crypt-SSLeay-0.51.tar.gz

2. Apply this patch: ssleay.patch (the rationale for the patch can be
found here)

3. perl Makefile.PL

4. make; make test; make install 

2. CPAN: perl -MCPAN -e 'install LWP::UserAgent'

3. CPAN: perl -MCPAN -e 'install SOAP::Lite' 

[edit]

Java Development Kit
A Java 2 SDK is required. The Sun JDK 1.4.2 is used by default to ensure
backward compatibility. : Java 5.0 (JDK 1.5.0) is supported starting
from m158 (OOo 2.0.3), see issue 59368.

GPC Polygon Library
The gpc general polygon clipper library release 2.31, located at
http://www.cs.man.ac.uk/aig/staff/alan/software/. Download and unpack
the tarball. You should have the files gpc.c and gpc.h in
$SRC_ROOT/external/gpc.

Ant
Ant Is required. This is a Java make utility. 

Nullsoft Scriptable Install System (NSIS)
This is optional, if available a self contained Windows installer is
created in addition to the MSI installer files. 

Mozilla Libraries
* Some Mozilla libraries are needed. Choose one of the following three
options.

o Build the libraries

Get the source from here, copy it into $SRC_ROOT/moz/download and
configure will detect the source archive.

o Use prebuild libraries

Place WNTMSCI{inc,lib,runtile}.zip into $SRC_ROOT/moz/zipped. You have
to configure with --disable-build-mozilla to enable the use of the
prebuild libraries. The files can be found here or can be reused if the
packages were build following the instructions of the previous point. In
the latter case they can be found in $SRC_ROOT/moz/wntmsci10.pro of a
successfull build.

o Don't use the libraries

By using the --disable-mozilla switch for configure you waive the extra
functionality.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Rispondere a