Menu

Fx2 compile error - cannot open 'MNG_CFLAGS@'

Developers
2006-08-08
2012-08-15
  • Jonathan Stanley

    Am trying to compile the current MOZILLA_1_8_BRANCH and have tried to give the latest MNG glue patch a whirl by the way of:

    mozilla-1.8-mng-glue-060807.diff.bz2

    ... by first applying the add-MNG patch:

    mozilla-add-libmng-060411.diff.bz2

    ... and as I'm compiling with VC8 Express, also the manifest embed patch:

    https://bugzilla.mozilla.org/show_bug.cgi?id=249782

    I'm using the Windows Server 2003 R2 SDK, and my mozconfig files are as follow:

    ~/mozconfig-common

    export MOZILLA_OFFCIAL=1
    export BUILD_OFFICIAL=1
    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
    mk_add_options MOZ_CO_PROJECT=browser

    add other common options here, such as making a static release build and

    disabling tests

    ac_add_options --disable-debug
    ac_add_options --disable-tests
    ac_add_options --target=i686-pc-msvc
    ac_add_options --with-windows-version=500
    ac_add_options --enable-optimize="-O2 -Ot -GA -GL -arch:SSE2"

    ~/mozconfig-firefoxmng

    include the common mozconfig

    . ~/mozconfig-common

    Build Firefox

    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-static
    ac_add_options --enable-application=browser
    ac_add_options --enable-static
    ac_add_options --disable-shared
    ac_add_options --enable-svg
    ac_add_options --enable-canvas
    ac_add_options --disable-activex
    ac_add_options --disable-activex-scripting
    ac_add_options --disable-xpconnect-idispatch
    ac_add_options --disable-accessibility
    ac_add_options --enable-image-decoders=default,mng,-png
    ac_add_options --enable-mng-type=MNG_BUILD_FULL_MNG

    Unfortunately, the build process dies with:

    creating pr/src/threads/combined/Makefile
    configure: warning: Recreating autoconf.mk with updated nspr-config output
    make[1]: Leaving directory /cygdrive/c/Firefox/mozilla-1.8/mozilla' make -C /cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-static cat: ./config/build_number: No such file or directory make[1]: Entering directory/cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-sta
    tic'
    make[1]: Leaving directory /cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-stat ic' cat: ./config/build_number: No such file or directory make[1]: Entering directory/cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-sta
    tic'
    rm -f -rf ./dist/sdk
    rm -f -rf ./dist/include
    /usr/bin/make -C config export
    cat: ../config/build_number: No such file or directory
    make[2]: Entering directory /cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-sta tic/config' cat: ../../config/build_number: No such file or directory make[3]: Entering directory/cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-sta
    tic/config/mkdepend'
    cppsetup.c
    /cygdrive/c/Firefox/mozilla-1.8/mozilla/build/cygwin-wrapper /cygdrive/c/Firefox
    /mozilla-1.8/mozilla/build/cygwin-wrapper cl -Fohost_cppsetup.obj -c -TC -nologo
    -Fdhost_cppsetup.pdb -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -DNO_X11 -O2 -Ot -GA
    -GL -arch:SSE2 -MD -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".obj\"
    -I../../dist/include/mkdepend -I../../dist/include -I../../dist/include/nspr
    @MNG_CFLAGS@ -I../../dist/sdk/include -I../../dist/include/nspr /cygdrive/c/Fi
    refox/mozilla-1.8/mozilla/config/mkdepend/cppsetup.c
    cl : Command line error D8022 : cannot open 'MNG_CFLAGS@'
    make[3]: [host_cppsetup.obj] Error 2
    make[3]: Leaving directory /cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-stat ic/config/mkdepend' make[2]: *** [export] Error 2 make[2]: Leaving directory/cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-stat
    ic/config'
    make[1]:
    [default] Error 2
    make[1]: Leaving directory `/cygdrive/c/Firefox/mozilla-1.8/mozilla/firefox-stat
    ic'
    make: *** [build] Error 2

    ... have tried to grep from any typos, though haven't spotted anything obvious.

     
    • Glenn Randers-Pehrson

      Perhaps you forgot to run autoconf.

       

Log in to post a comment.