Difference between revisions of "OpenSolaris Build Instructions"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Prerequisites)
m (Special switches)
Line 33: Line 33:
  
 
As it requires more work you may want to disable specific features on OpenSolaris. The following configure switches make life easier:
 
As it requires more work you may want to disable specific features on OpenSolaris. The following configure switches make life easier:
   ./configure --disable-cups --disable-mozilla --disable-Xaw --disable-randr
+
   ./configure --disable-cups --disable-mozilla --disable-Xaw --disable-randr --with-gnu-patch=/usr/bin/gpatch
  
Please note that these switches may disable common features of OOo, but currently there is no practical way to enable them (if you know one, please edit this document).
+
Please note that some of these switches may disable common features of OOo, but currently there is no practical way to enable them (if you know one, please edit this document).
  
  

Revision as of 15:49, 30 October 2008

The page should be filled with useful information about how to build a recent version of OOo on the OpenSolaris platform. Some mailing list postings showed that this may not be an easy task.

Prerequisites

If you have a freshly installed OpenSolaris you may need the following packages to build OpenOffice.org. A package can be installed with:

 pfexec pkg install <packagename>
  • IPSpkgconfig (from blastwave.network.com)
  • SUNWbison
  • SUNWflexlex
  • SUNWgcc (if you build with gcc, not with Sun Studio. Note: this gcc package is linked against Sun ld and currently won't work for OOo)
  • SUNWgnu-gperf
  • SUNWsunstudioexpress
  • SUNWsvn (if you like to checkout sources via Subversion)

You will need the Archive::Zip.pm Perl module which does not ship with OpenSolaris per default. You can manually install it (and its prerequisites) using CPAN with invoking the following commands:

 # export PATH=$PATH:/opt/SunStudioExpress/bin
 # /usr/perl5/bin/perl -MCPAN -e 'shell'
 cpan> install Archive::Zip
 cpan> exit

As on all other platforms you need the unowinreg.dll from http://tools.openoffice.org/unowinreg_prebuild/680/ .

Environment variables

CC=/opt/SunStudioExpress/bin/cc
PKG_CONFIG=/opt/csw/bin/pkg-config
PKG_CONFIG_PATH=/usr/lib/pkgconfig

Special switches

As it requires more work you may want to disable specific features on OpenSolaris. The following configure switches make life easier:

 ./configure --disable-cups --disable-mozilla --disable-Xaw --disable-randr --with-gnu-patch=/usr/bin/gpatch

Please note that some of these switches may disable common features of OOo, but currently there is no practical way to enable them (if you know one, please edit this document).

Personal tools