compile firefox-3.0 source code

Dao Duy Thanh thanhdd at tsdv.com.vn
Mon Nov 17 07:13:01 UTC 2008


Hi everyone!
Now, I using ubuntu 8.04 and I want to compile Firefox source code.
But when I compile have error of other packages dependency. I will 
describe below
     1. downloaded Firefox-3.0 source code: firefox-3.0.3-source.tar.bz2
     2. tar firefox-3.0.3-source.tar.bz2
     3. cd mozilla
     4. create .mozconfig file with content :

           . $topsrcdir/browser/config/mozconfig
        mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build

        ac_add_options --prefix=/usr

        ac_add_options --with-system-zlib
        ac_add_options --with-system-png
        ac_add_options --with-system-jpeg
        ac_add_options --enable-system-cairo

        ac_add_options --enable-official-branding

        ac_add_options --enable-canvas

        ac_add_options --enable-strip

        ac_add_options --disable-tests

        ac_add_options --disable-installer

        ac_add_options --disable-accessibility

        ac_add_options --enable-xinerama

        ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-3.0
    5. make -f client.mk build
        " ...
        checking for png_get_valid in -lpng... yes
        checking for png_get_acTL in -lpng... no
        configure: error: --with-system-png won't work because the 
system's libpng doesn't have APNG support
        *** Fix above errors and then restart with               "make 
-f client.mk build"
          ... "
  I installed libpng1.2.15, and I think it's old version and doesn't 
have APNG support so I download libpng1.2.27 source code.
  However when compile libpng1.2.27 it have error and I don't know how 
to fix error
     1. downloaded 
ftp://ftp.tu-chemnitz.de/.SAN0/pub/linux/sunsite.unc-mirror/distributions/zenwalk/i486/zenwalk-5.2/source/l/libpng/libpng-1.2.27.tar.bz2
     2. tar  libpng-1.2.27.tar.bz2
     3. cd libpng-1.2.27
     3. ./configure # --> it' OK!
     4. make check
       /bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H 
-I.  -DPNG_CONFIGURE_LIBPNG    -g -O2 -MT           libpng12_la-png.lo 
-MD -MP -MF .deps/libpng12_la-png.Tpo -c -o libpng12_la-png.lo `test -f 
'png.c' || echo './'`png.c
        ./libtool: line 839: X--tag=CC: command not found
        ./libtool: line 872: libtool: ignoring unknown tag : command not 
found
        ./libtool: line 839: X--mode=compile: command not found
        ./libtool: line 1005: *** Warning: inferring the mode of 
operation is deprecated.: command not found
        ./libtool: line 1006: *** Future versions of Libtool will 
require --mode=MODE be specified.: command not found
        ./libtool: line 1149: Xgcc: command not found
        ./libtool: line 1149: X-DHAVE_CONFIG_H: command not found
        ./libtool: line 1149: X-I.: command not found
        ./libtool: line 1149: X-DPNG_CONFIGURE_LIBPNG: command not found
        ./libtool: line 1149: X-g: command not found
        ./libtool: line 1149: X-O2: command not found
        ./libtool: line 1149: X-MT: command not found
        ./libtool: line 1149: Xlibpng12_la-png.lo: command not found
        ./libtool: line 1149: X-MD: command not found
        ./libtool: line 1149: X-MP: command not found
        ./libtool: line 1149: X-MF: command not found
        ./libtool: line 1149: X.deps/libpng12_la-png.Tpo: No such file 
or directory
        ./libtool: line 1149: X-c: command not found
        ./libtool: line 1200: Xlibpng12_la-png.lo: command not found
        ./libtool: line 1205: libtool: compile: cannot determine name of 
library object from `': command not found
        make: *** [libpng12_la-png.lo] Error 1


    Please help me to fix error, and tell me if you have a good tutorial 
about compile source code on linux

Thanks very much!
ThanhDD

-- 
=====================================================
Dao Duy Thanh
Toshiba Software Development Vietnam (TSDV) Co., Ltd.
-----------------------------------------------------
Addr: Floor 16, VIT Building
     519 Kim ma street, Hanoi, Viet Nam
E-mail: thanhdd at tsdv.com.vn
Tel: 	+84-4-220-8801 ext.160
Mobile: +84-09-79-048-168
====================================================


--------------------------------------
This mail was scanned by BitDefender





More information about the ubuntu-users mailing list