Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

build Firefox-DirectFB on Debian base system

99 views
Skip to first unread message

Dao Duy Thanh

unread,
Dec 3, 2008, 10:17:29 PM12/3/08
to dev-b...@lists.mozilla.org
Hi everyone!
I trying build Firefox on directFB following
https://wiki.mozilla.org/Mobile/DFBPorting
+ I builded GTK-DFB and can run some tests of gtk but when I
checkout mozilla-dfb source code :
- /hg clone
http://hg.mozilla.org/users/pavlov_mozilla.com/mozilla-dfb
mozilla-dfb-src ==> OK
- //cd mozilla-dfb-src
- //python client.py --skip-tamarin checkout ==> ERROR it can
not check out some file: nsprpub, dbm, security/dbm, security/nss,
security/coreconf. _Any one can help me check out some file above!
_ + /So I tryed check out mozilla-source from
http://hg.mozilla.org/mozilla-central/, it's have missed file above.
However when I build it from Debian4.o (on VMWARE and base system) with
.mozconfig is: . $topsrcdir/browser/config/mozconfig

mk_add_options
MOZ_OBJDIR=@TOPSRCDIR@/obj-dfb

ac_add_options --disable-plugins

ac_add_options
--enable-default-toolkit=cairo-gtk2-dfb

ac_add_options --disable-libxul

ac_add_options --enable-debug

ac_add_options --enable-optimize

ac_add_options --disable-shared

ac_add_options --disable-tests

ac_add_options --disable-crashreporter

ac_add_options --disable-installer

ac_add_options --disable-javaxpcom

ac_add_options --enable-system-cairo

ac_add_options --disable-pedantic

ac_add_options --disable-gtktest

ac_add_options --enable-pango

ac_add_options --disable-xft

ac_add_options
--enable-extensions=default

ac_add_options --disable-xinerama

ac_add_options --without-system-nspr

ac_add_options --disable-mailnews

ac_add_options --disable-composer

ac_add_options --disable-ldap
while building it occurs some error:
+ /usr/bin/ld: can not found -lXrender : I think Xrender is
lib of X window so I remove line 421 (remove -lXrender ) of Makefile.in
in /mozilla-dfb-src/layout/build directory ==> it's passed and build
successed.
+ But when I run ./firefox : some environment variable:
DISPLAY="localhost:0.0" & LD_LIBRARY_PATH=/usr/local/dfb/lib
it displays only mouse and background a moment and cash.
/ Please help me!
thank you very much!
/

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


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

hdrhg...@gmail.com

unread,
Jan 7, 2009, 3:15:21 AM1/7/09
to
I can build mozilla-central successfully with this .mozconfig:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-dfb
ac_add_options --disable-plugins
ac_add_options --enable-default-toolkit=cairo-gtk2-dfb

#ac_add_options --disable-libxul
ac_add_options --enable-debug
ac_add_options --enable-optimize
#ac_add_options --enable-static


ac_add_options --disable-shared
ac_add_options --disable-tests
ac_add_options --disable-crashreporter
ac_add_options --disable-installer
ac_add_options --disable-javaxpcom
ac_add_options --enable-system-cairo
ac_add_options --disable-pedantic
ac_add_options --disable-gtktest
ac_add_options --enable-pango
ac_add_options --disable-xft

#ac_add_options --enable-extensions=default


ac_add_options --disable-xinerama
ac_add_options --without-system-nspr
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --disable-ldap

ac_add_options --disable-xprint
ac_add_options --disable-dbus

ac_add_options --disable-jemalloc
ac_add_options --disable-extensions
ac_add_options --disable-jsloader
ac_add_options --enable-directfb
ac_add_options --without-x

#ac_add_options --disable-ogg
ac_add_options --enable-libxul

But firefox crashes immediately when I run it on my X86 PC. Still
investigating..

Bengt-Erik Soderstrom

unread,
Jan 8, 2009, 7:00:42 AM1/8/09
to
I think your .mozconfig is way too complex. Try this shorter one:

# if you want the build ID displayed
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1

# .mozconfig options below: this makes Firefox
mk_add_options MOZ_CO_PROJECT=browser

# Will make object directory 'myfirefox'
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/myfirefox
ac_add_options --enable-application=browser

# Makes shorter, quicker code
ac_add_options --disable-debug
ac_add_options --disable-tests

# this works fine for Fedora
ac_add_options --enable-jemalloc

If the build is successful and it crashes upon start, most probably
there is some old code left conflicting in your object directory:
My advice is then to totally remove the object directory and start over.

than...@gmail.com

unread,
Jan 22, 2009, 2:59:44 AM1/22/09
to
On Jan 8, 7:00 pm, Bengt-Erik Soderstrom <bes....@telia.com> wrote:
> I think your .mozconfig is way too complex. Try this shorter one:
>
> # if you want the build ID displayed
> export MOZILLA_OFFICIAL=1
> export BUILD_OFFICIAL=1
>
> # .mozconfig options below: this makes Firefox
> mk_add_options MOZ_CO_PROJECT=browser
>
> # Will make object directory 'myfirefox'
> mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/myfirefox
> ac_add_options --enable-application=browser
>
> # Makes shorter, quicker code
> ac_add_options --disable-debug
> ac_add_options --disable-tests
>
> # this works fine for Fedora
> ac_add_options --enable-jemalloc
>
> If the build is successful and it crashes upon start, most probably
> there is some old code left conflicting in your object directory:
> My advice is then to totally remove the object directory and start over.
>

Yes, that true.
and now I fixed this error.
- gedit obj-dfb/dist/bin/application.ini and modify
EnableProfileMigrator=0 after run firefox.
- Firefox may be crashes when first time, you should try 2,3 times.

ThanhDD

0 new messages