In this section the following sections describe the requirements and actions that you need to build the office suite:
You can perform a full build, or you can build a project using a prebuild version. You can build in the following ways:
To perform a full build, you need to follow these steps:
Note: At this point, this step is not necessary. You download
the binary files for Linux, Solaris, and Win32 from the CVS Tree.
You can use a prebuild version to build an individual project. A project builds a particular component of the office suite. For example, the Writer project builds the Writer application. To build an individual project, you must follow these steps:
Build each module with the prebuild version of the office suite,
using the dmake tool. For detailed build instructions, see Building
Individual Projects with a Prebuild. You can view an illustration of the full
build process.
StarOffice has been built successfully on the following operating systems:
The following table describes the build requirements for the Linux
operating
system.
Software Requirements | Hardware Requirements |
---|---|
|
A PC with the following specifications:
|
The following table describes the build requirements for the Solaris
operating system.
Software Requirements | Hardware Requirements |
---|---|
|
A SPARC Ultra 1 with the following specifications
|
The following table describes the build requirements for Win32 operating
systems.
Software Requirements | Hardware Requirements |
---|---|
|
A PC with the following specifications:
|
Note: Before you use 4NT, you must ensure that the initialization file 4nt.ini is present in the 4NT application directory. The following code sample shows the content of the 4nt.ini file.
There are also external download requirements for building on Win32, follows:
1.The header files adoctint.h and SqlUcode.h from the Microsoft
Platforms SDK, April 2000 Edition.
Download the the Platform SDK Setup, psdk-86.exe,
from the Custom Installation section. Then run it in your Win32 environment.
This starts an interactive download program. Follow the instructions on
the screen. At the Custom Installation screen, select Build Environment/Data
Acces Services/OLE DB and the Build Environment/Data Acces Services/ODBC
from the Custom Installation tree. This downloads a number of files to
your Win32 environment. You only need to copy the two header files to the
external/download directory under the source tree top-level directory.
2.Go to the PGP
site, and download the following files:
pgp553i-win95nt-src.zip
pgp602i-win-src.zip
pgp651i-win-src.zip
Alternatively, you can download these files
from a mirror site.
Then unzip the three source zip files to the
external/download directory under the source tree top-level directory.
[4NT]
CommandSep = ^ EscapeChar = Ctrl-X ParameterChar = & LocalAliases = Yes
|
Generating the Build Environment for Linux and Solaris
You use the configure script to generate the build environment. The configure script does the following:
% ./configure |
Note: This file is currently in the config_office directory.
There are a number of options that you can use with the configure
script. To display these options, type the following command:
% ./configure --help |
For more information on the options that you can use with the configure script, see Options Available with configure Script.
For each operating system, you can build in one of the following ways:
The following sections describe how to build the entire source for each operating system.
Building a Full Build on Linux Systems
To build the entire source tree on Linux, follow these steps:
% csh
% source LinuxIntelEnv.Set % dmake
|
The following table shows the time required to build on a system with
a particular specification. You can use these details to estimate the time
required to build on your system.
Architecture | Intel |
Processor | Pentium II |
Processor speed | 600 MHz |
RAM | 128 MB |
Hard disk size | 4 GB IDE |
Time |
Building a Full Build on Solaris Systems
To build the entire source tree on Solaris, follow these steps:
% csh
% source SolarisSparcEnv.Set % dmake
|
The following table shows the time required to build on a system with
a particular specification. You can use these details to estimate the time
required to build on your system.
Architecture | SPARC |
Model | Ultra 1 |
RAM | 128 MB |
Hard disk size | 4 GB IDE |
Time |
Building a Full Build of on Win32 Systems
Ideally, in keeping with the principles of open source, you would use an open source shell to build on a computer running a Win32 operating system. However, this is not possible at present. You must use a non-open source shell to build on a computer running a Win32 operating system. This shell is a 4NT command shell.
In the future, it may be possible to build on a Win32 system using the Cygnus bash shell. However, this requires syntax changes to the makefiles that the build uses. This is a future project for OpenOffice.org.
The autoconf tool does not run under the 4NT command shell. Because of this, the 4NT command shell does not run the configure script, which generates the build environment on Linux and Solaris. To build on Win32, you do not need to generate the build environment or create the build tools, as the environment variable file, winenv.bat, and the build tools are supplied when you download the source for Win32.
Alternatively, run the configure script from a Cygnus bash
shell on a Win32 system. On the Cygnus bash command line type bash
configure
To build the entire source tree on a Win32 system, follow these steps:
C:\OpenOffice> winenv.bat
C:\OpenOffice> dmake
|
The following table shows the time required to build on a system with
a particular specification. You can use these details to estimate the time
required to build on your system.
Architecture | Intel |
Processor | Pentium III |
Processor speed | 500 MHz |
RAM | 256 MB |
Time | 18 hours |
Building Individual Projects with a Prebuild
A project builds particular components of the office suite. For example, the Writer project builds the Writer application.
The source contains approximately 75 modules. There are many dependencies between these CVS modules. This means that the modules must build in a particular order.
For more information on modules and on the sequence that they build in, and on the dependencies, see Modules.
Before you build a project, you must check out the project that you want to build from the OpenOffice.org CVS tree. when you check out a project, you check out the modules that the project contains. If your project uses the resources module, res, you must check out this module also.
To build a project, you build each of its modules individually. When you build a module, you use a dmake tool. The dmake tool uses the makefile to iterate through all directories of the module that contain source files, and executes dmake in each of them. The last or second to last directory is usually module-name/util, which is responsible for linking one or more shared libraries.
The following sections describe how to build individual projects with a prebuild version.
Building Projects on Linux Systems
To build an individual project on Linux with a prebuild version, follow these steps:
% tar xzf solverxxx_linuxintel.tgz
|
% cd module-name
% dmake
|
For example, to build the Writer (sw) module, enter the following
commands:
% csh
% cd $SOLARVERSION % tar xzf solverxxx_linuxintel.tgz % cd sw % dmake
|
To build an individual project on Solaris with a prebuild version, follow these steps:
% tar xzf solverxxx_solarissparc.tgz
|
% cd module-name
% dmake
|
For example, to build the Writer (sw) module, enter the following
commands:
% csh
% cd $SOLARVERSION % tar xzf solverxxx_linuxintel.tgz % cd sw % dmake
|
To build an individual project on Win32 with a prebuild version, follow these steps:
C:\OpenOffice> tar xzmf
solverxxx_win32intel.tgz
|
C:\OpenOffice> cd module-name
C:\OpenOffice\module-name> dmake
|
For example, to build the Writer (sw) module, enter the following
commands:
C:\> cd openoffice
C:\OpenOffice> winenv.bat C:\OpenOffice> tar xzmf solverxxx_win32intel.tgz C:\OpenOffice> cd sw C:\OpenOffice\sw> dmake
|
To rebuild a complete project with debug information, remove all object
files by removing the /$INPATH directory. Then run the following
command:
% dmake debug=true
|
To build a single source subdirectory, use the dmake command.
see dmake for further information.
Instructions to Build an Installation Set
When you have completed the build, you need to do the following to install and set up the office suite:
% cd $SRC_ROOT
% dmake install % cd instsetoo % cd $INPATH/normal % ./SETUP
|