Difference between revisions of "Documentation/Building Guide/Building on Solaris"

From Apache OpenOffice Wiki
Jump to: navigation, search
(toc)
(Software Requirements)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Documentation/Building Guide TOC
 +
|ShowNextPage=none
 +
|ShowPrevPage=none
 +
}}
 
{{DISPLAYTITLE:Building on Solaris}}
 
{{DISPLAYTITLE:Building on Solaris}}
__NOTOC__
+
__TOC__
[[Category: Development]]
+
[[Category:Build_System]]
+
{| style="font-size: 11px; float: right; width: 180px; border: 1px solid #9BC0F5;" cellspacing="0"
+
|-
+
| <div id="doc_toctitle" class="docooo_toctitle docsection" style="text-align: center;"><strong class="selflink">Building Guide</strong></div>
+
|-
+
| [[Development/OpenOffice.org_Building_Guide | Introduction]]<br>
+
[[Development/OpenOffice.org_Building_Guide/Getting the source | Getting the source]]<br>
+
[[Development/OpenOffice.org_Building_Guide/Basic Concepts | Basic Concepts]]<br>
+
[[Development/OpenOffice.org_Building_Guide/Build Requirements | Build Requirements]]<br>
+
[[Development/OpenOffice.org_Building_Guide/Building on Windows | Building on Windows]]<br>
+
[[MacOSXBuildInstructions | Building on Mac OS X]]<br>
+
[[Development/OpenOffice.org_Building_Guide/Building on Linux | Building on Linux]]<br>
+
[[Development/OpenOffice.org_Building_Guide/Building on Solaris | Building on Solaris]]<br>
+
|-
+
|}
+
  
 
This document describes building OpenOffice.org on Solaris.
 
This document describes building OpenOffice.org on Solaris.
  
 +
= Requirements =
 
== Hardware Requirements ==
 
== Hardware Requirements ==
  
 
* Solaris/x86: one or more reasonable fast CPUs, x-way CPU's recommended.
 
* Solaris/x86: one or more reasonable fast CPUs, x-way CPU's recommended.
 
 
* Solaris/Sparc: UltraSparc III
 
* Solaris/Sparc: UltraSparc III
 
 
* 2 GB RAM
 
* 2 GB RAM
 
 
* 10 GB free disk space
 
* 10 GB free disk space
 +
* if you don't have a lot of RAM (less than 4GB?) set TMPDIR to a directory that is not on tmpfs
  
 
== Software Requirements ==
 
== Software Requirements ==
  
* Solaris 10, OpenSolaris 2008.5 or higher
+
* Solaris 10, OpenSolaris 2008.5 or higher, Solaris 11 Express
 +
* C/C++ Compiler: SunStudio 8, SunStudio 10 - SunStudio 12, SunStudio Express, newer compilers will likely work but may require a little tweaking (but rumor has it that 12update1 breaks on some boost stuff)
 +
* the new build system currently only supports SunStudio 12, so older versions won't work on current DEV300/OOO340.
 +
 
 +
= Solaris 11 Express =
 +
 
 +
This section describes building on version <code>snv_151a</code>.
 +
Note that only DEV300_m106 or newer contains the necessary fixes in the OOo code.
 +
 
 +
== Prerequisites ==
 +
 
 +
You need to <code>pkg install</code> at least the following additional packages:
 +
* mercurial (to get at the source code)
 +
* system/header
 +
* header-math
 +
* developer/java/jdk
 +
* developer/java/junit
 +
* developer/build/ant
 +
* developer/gperf
 +
* developer/gnome/gettext
 +
* developer/parser/bison
 +
* developer/lexer/flex
 +
 
 +
The only dependencies that are not in the Solaris Express repository are the SunStudio compiler and the Perl module <code>Archive::Zip</code>.
 +
 
 +
To install the Perl module, use CPAN (i'm afraid you need to su to root to do this):
 +
 
 +
  # PATH=/path/to/sunstudio/SUNWspro/bin:$PATH /usr/perl5/bin/perl -MCPAN -e 'shell'
 +
  cpan> install Archive::Zip
 +
  cpan> exit
  
* C/C++ Compiler: SunStudio 8, SunStudio 10 - SunStudio 12, SunStudio Express, newer compilers will likley work with a little tweaking
+
== Building OOo ==
  
== Overview ==
+
It is necessary to put SunStudio on the path, otherwise the build will break in stlport.
 +
Also, set the <code>CC</code> and <code>CXX</code> variables.
  
Commands you have to type on the keyboard follow this syntax throughout this document:
+
  PATH=/path/to/sunstudio/SUNWspro/bin:$PATH
./configure
+
  ./configure CC=/path/to/sunstudio/SUNWspro/bin/cc CXX=/path/to/sunstudio/SUNWspro/bin/CC
  
In this example, the script <CODE>configure</CODE> is executed.
+
Building with <code>--enable-werror</code> should work with SunStudio 12.
  
It is possible to use bash or tcsh as shell. This is enabled with the <CODE>--with-use-shell</CODE> configure switch. These instructions are for tcsh, but you should be able to guess the needed changes for bash. The environment file for bash adds an additional <CODE>.sh</CODE> suffix to the tcsh environment file.
+
If configure runs successfully, the build should work just like on other platforms.
  
<CODE>$SRC_ROOT</CODE> will denote the directory in which the source code of OpenOffice.org is stored.
+
= See Also =
 +
* [[OpenSolaris Build Instructions]]
 +
[[Category:Solaris]]

Latest revision as of 09:35, 15 July 2011

[[{{{PrevPage}}}|< Previous Page

]]

[[{{{NextPage}}}|Next Page
>]]


This document describes building OpenOffice.org on Solaris.

Requirements

Hardware Requirements

  • Solaris/x86: one or more reasonable fast CPUs, x-way CPU's recommended.
  • Solaris/Sparc: UltraSparc III
  • 2 GB RAM
  • 10 GB free disk space
  • if you don't have a lot of RAM (less than 4GB?) set TMPDIR to a directory that is not on tmpfs

Software Requirements

  • Solaris 10, OpenSolaris 2008.5 or higher, Solaris 11 Express
  • C/C++ Compiler: SunStudio 8, SunStudio 10 - SunStudio 12, SunStudio Express, newer compilers will likely work but may require a little tweaking (but rumor has it that 12update1 breaks on some boost stuff)
  • the new build system currently only supports SunStudio 12, so older versions won't work on current DEV300/OOO340.

Solaris 11 Express

This section describes building on version snv_151a. Note that only DEV300_m106 or newer contains the necessary fixes in the OOo code.

Prerequisites

You need to pkg install at least the following additional packages:

  • mercurial (to get at the source code)
  • system/header
  • header-math
  • developer/java/jdk
  • developer/java/junit
  • developer/build/ant
  • developer/gperf
  • developer/gnome/gettext
  • developer/parser/bison
  • developer/lexer/flex

The only dependencies that are not in the Solaris Express repository are the SunStudio compiler and the Perl module Archive::Zip.

To install the Perl module, use CPAN (i'm afraid you need to su to root to do this):

 # PATH=/path/to/sunstudio/SUNWspro/bin:$PATH /usr/perl5/bin/perl -MCPAN -e 'shell'
 cpan> install Archive::Zip
 cpan> exit

Building OOo

It is necessary to put SunStudio on the path, otherwise the build will break in stlport. Also, set the CC and CXX variables.

 PATH=/path/to/sunstudio/SUNWspro/bin:$PATH
 ./configure CC=/path/to/sunstudio/SUNWspro/bin/cc CXX=/path/to/sunstudio/SUNWspro/bin/CC 

Building with --enable-werror should work with SunStudio 12.

If configure runs successfully, the build should work just like on other platforms.

See Also

Personal tools