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

XULRunner --enable-static build error

18 views
Skip to first unread message

sangh...@gmail.com

unread,
Apr 2, 2009, 1:43:22 AM4/2/09
to
Hello

I am build XULRunner using mozilla-central trunk.
I want to build it with --enable-static option.

Here is my mozconfig.
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_CO_PROJECT=xulrunner
mk_add_options MOZ_OBJDIR=@topsrcdir@/xulrunner-dbg
ac_add_options --enable-application=xulrunner
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --enable-static --disable-libxul
ac_add_options --disable-tests
ac_add_options --disable-javaxpcom

but i got the following make error.
The Makefile of \xulrunner\app\ have the following EXTRA_DSO_LIBS.

ifndef MOZ_ENABLE_LIBXUL
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
LIBS += $(DIST)/bin/XUL
else
EXTRA_DSO_LIBS += xul
endif

i don't know which module make this xul.lib .
Can you help me ?


make[5]: *** No rule to make target `../../dist/lib/xul.lib', needed
by `xulrunner.exe'. Stop.
make[5]: Leaving directory `/xulrunner-dbg/xulrunner/app'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/xulrunner-dbg/xulrunner'
make[3]: *** [libs_tier_app] Error 2
make[3]: Leaving directory `/xulrunner-dbg'
make[2]: *** [tier_app] Error 2
make[2]: Leaving directory `/xulrunner-dbg'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/xulrunner-dbg'
make: *** [build] Error 2

Ted Mielczarek

unread,
Apr 2, 2009, 10:09:48 AM4/2/09
to
On Apr 2, 1:43 am, sangheo...@gmail.com wrote:
> Hello
>
> I am build XULRunner using mozilla-central trunk.
> I want to build it with --enable-static option.

This is not a supported build configuration, we apparently just forgot
to make it error out in configure. --enable-static does not mean what
you probably think it means. It is used to build the application as
(mostly) a single large binary. The default (libxul) configuration of
xulrunner is similar, but instead links most of gecko into a single
large DSO, libxul. Neither of these configurations imply anything
about linking to external libraries, although by default we build most
of our dependencies in-tree, so there aren't very many external
dependencies.

-Ted

Ted Mielczarek

unread,
Apr 2, 2009, 10:19:21 AM4/2/09
to
Also, I just checked in a change on mozilla-central to make --enable-
static xulrunner builds error in configure, to let you know that
they're explicitly unsupported right at the start of the build.

-Ted

0 new messages