2009/2/13 tora - Takamichi Akiyama <[email protected]>:
>>> Nguyen Vu Hung wrote:
>>>>
>>>> I've rm -rf my $HOME/lib/{libcairo*,libpango*},
>>>> $HOME/include/{cairo*,pango*}
>>>> and the build is running again.
>>>>
>>>> I have a lot of libraries installed to my $HOME so I think in the next
>>>> try,
>>>> I will create a new user and build OOO m40 with that user.
>>>
>>> The libraries 'cairo' and 'pango' seems to be part of Gnome system. It
>>> implies
>>> that you would not need to manually install them if you install Gnome
>>> desktop
>>> in your machine.
>>
>> Mozilla depends on it. I've tried to disable Mozilla.
>
> Visual Class Library (vcl)'s gtk plugin also depends on cairo and pango.
> You would face another error upon building vcl module sooner or later,
> however you disable Mozilla at the very beginning of build process.
>
> If you are not quite familiar with such libraries, cairo, pango, ...
> what I can help you is to stop install libraries under your $HOME directory
> and look for pre-compiled RPM packages delivered by the distribution vendor
> and install them in order to put them in the default directory such as
> /usr/lib.
>
>  # yum search cairo
>  # yum install cairo-devel
On CentOS 5.2:
$ rpm -qa | grep cairo
pycairo-devel-1.2.0-1.1
cairo-1.2.4-5.el5
cairo-devel-1.2.4-5.el5
pycairo-1.2.0-1.1

As you can see, they are too old, and some libraries (gtk specific in
this case),
are linked to them. OOo 3.x requires a newer version of cairo and pango, so I
have to install it *somewhere*, and $HOME is a place I thought of.

Because I don't have another machine so the next time, I will create another
account in my Linux box, and only use it for building OOo. In this
way, I will not
mess up with libraries, headers, bin, etc... in my $HOME.

> I cannot look into individual errors that you currently see because your
> build environment is somewhat strange. Most errors that you get come from
> the settings of your build environment, not OpenOffice.org's source code.

I've built m40 successfully and I attach the build script at the end
of this email.
http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/vh-config.8.sh [1]

And RPMS
http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/instsetoo_native/unxlngi6.pro/OpenOffice/rpm/install/

The next time I will try to enable the followings options:

--disable-mozilla
--disable-qadevooo
--disable-build-mozilla
--disable-gtk

>
> Additionally, try set up your build environment again following the
> information
> given by the release engineering team.
> http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers
>
> For example, use Java 1.5 to build OpenOffice.org 3.x, instead of the latest
> version Java 1.6.
>
>  JDK 5.0 Update 6
>  http://java.sun.com/products/archive/j2se/5.0_06/index.html
It doesn't seem that JDK matter so much.

Thanks for your nice help, Tora.

[1] http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/vh-config.8.sh
#!/bin/bash
cd external/unowinreg
if [ -f unowinreg.dll ]
then
echo unowinred.dll is there
else
wget http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll
fi
cd -

cd external/gpc
if [ -f gpc.h ]
then
echo gpc.h is there
else
wget ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc232-release.zip
unzip gpc232-release.zip
fi
cd -

cd moz/download
if [ -f  mozilla-source-1.7.5.tar.bz2 ]
then
echo Mozilla source code is there
else
wget 
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.bz2
tar xvjf mozilla-source-1.7.5.tar.bz2
fi
cd -

export PATH="/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin"
export SRC_ROOT=/var/www/home/ooo.src/DEV300_m41
#export JAVA_HOME=$HOME/opt/j2sdk1.4.2_18
export JAVA_HOME=$HOME/opt/jdk1.5.0_17
export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=$CLASSPATH:/usr/local/junit4.5/junit-4.5.jar

export ANT_HOME=/usr/local/ant
export ANT_LIB=$ANT_HOME/lib
export PATH=$PATH:$ANT_HOME/bin

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/

export CCACHE_DIR="/tmp/DEV300_m40.ccache"
ccache -M 6G -F 100000
export CC="ccache gcc"
export CXX="ccache g++"
#export CC="gcc"
#export CXX="g++"

date; echo "Starting configure..."; echo; echo
./configure --prefix=$HOME \
                --with-jdk-home=$JAVA_HOME \
                --with-use-shell=bash \
                --with-ant-home=$ANT_HOME \
                --with-system-stdlibs \
                --with-perl-home=/opt/perl \
                --disable-mozilla \
                --disable-qadevooo \
                --disable-build-mozilla \
                --disable-gtk \
                --with-lang="en vi"

echo Setting LinuxX86Env.Set.sh .......
source LinuxX86Env.Set.sh

sleep 6
echo Running bootstrap..............
./bootstrap
sleep 6

echo Running dmake clean............
dmake clean
echo Running dmake.........
dmake 2>&1 | tee make_`date +%Y%m%d_%H%M`.log
echo "Finished dmake"; echo; echo;
date



-- 
Best Regards,
Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng )
vuhung16plus{[email protected] , YIM: vuhung16 , Skype: vuhung16dg
A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html

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

Reply via email to