The default mozconfig used in building official firefox 3.x release

25 views
Skip to first unread message

Weidong

unread,
Jun 8, 2009, 3:15:00 PM6/8/09
to Portland Firefox Development
I'd appreciate it if some could let me know the default mozconfig used
in building the official firefox release.

I have tried to build a firefox based on 3.0.7 source code for an
embedded syetm, but specified minimum options in mozconfig. I thought
that most standard firefox features would be turned on by default.
But when I used it on my target device to access multimedia contens
such as those in youtube, I got a message saying something like this:
The browser can't display the content, either javascript is not turned
on, or you do not have a latest adobe flash player installed.

Then I could not find anywhere in the browser where I could turn on
javascript. I looked at the tools pulldown menu, it does not even
contain the usual "options" entry in it.

Does anyone know where it went wrong, or should I put any special
options in mozconfig when building firefox / xulrunner?

Thanks for your help!

Regards,
Weidong

Dietrich Ayala

unread,
Jun 8, 2009, 3:41:49 PM6/8/09
to pdx-fir...@googlegroups.com
Hi Weidong,

Likely the problem is not Javascript, since that is turned on by
default. Have you conducted a test to see if JS is enabled, a simple
HTML page with some script?

More likely is that your build doesn't have the Flash plugin installed.

Also, can you post your .mozconfig?

C

Weidong Li

unread,
Jun 10, 2009, 3:04:42 PM6/10/09
to pdx-fir...@googlegroups.com
Thanks for your response!  You are right.  Javascript is indeep turn on by default, and it works.  I do not have flash plugin installed which is the root cause of the prooblem.
 
my mozconfig is the simplest, as follows:
 
---- file begin ----
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../ffout
mk_add_options MOZ_BUILD_PROJECTS="xulrunner browser"
mk_add_options MOZ_CO_PROJECT="xulrunner browser"
ac_add_app_options browser --enable-application=browser
ac_add_app_options xulrunner --enable-application=xulrunner
ac_add_app_options xulrunner --disable-javaxpcom
ac_add_app_options xulrunner --with-arm-kuser
ac_add_options --disable-tests
ac_add_options --disable-crashreporter
ac_add_options --enable-optimize --disable-debug
ac_add_options --enable-safe-browsing
ac_add_options --enable-plugins
ac_add_app_options browser --with-libxul-sdk=../xulrunner/dist
export LDFLAGS="-Wl,-rpath-link,$PWD/dist/bin/:/usr/lib:/lib"
---- file end ----

By the way, can you give me some instructions on how to build a C program as a firefox plugin, or point me to some doc on firefoix plugin requirements?
 
Regards,
Weidong

Dietrich Ayala

unread,
Jun 10, 2009, 3:08:49 PM6/10/09
to pdx-fir...@googlegroups.com
Great, glad I could help.

Regarding building a Firefox plugin in C - I would recommend not doing
that, unless there is absolutely no other way.

What do you want your plugin to do? I might be able to help you find a
way to do it in JS.

-dietrich

Weidong Li

unread,
Jun 10, 2009, 5:46:22 PM6/10/09
to pdx-fir...@googlegroups.com
Hi, Dietrich,
 
What I want to do is to change/rebuild a flash player, which was written in C/C++ as a standalone unix application that can be launched at command line, to be suitable for putting in firefox as as a plugin, so that firefox will automatically use it to play the media when the format of the media is right.
 
What is the best way to do it?  Thanks a lot!
Regards,
Weidong
Reply all
Reply to author
Forward
0 new messages