I get sources from http://hg.mozilla.org/releases/mozilla-release/ and followed Android Build instructions (https://wiki.mozilla.org/Mobile/Fennec/Android) on MacOs Mountain Lion.
The build is successful if I build without .mozconfig. However, I want to build Firefox for Android, so I created the following .mozconfig:
Code: Select all
ac_add_options --enable-release
MOZ_SZIP_FLAGS="-D auto -f auto"
ANDROID_NDK_VERSION="r8e"
ANDROID_NDK_VERSION_32BIT="r8c"
ANDROID_SDK_VERSION="16"
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-android
ac_add_options --with-android-gnu-compiler-version=4.7
ac_add_options --with-android-version=9
ac_add_options --with-system-zlib
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-stdcxx-compat
ac_add_options --enable-updater
ac_add_options --with-branding=mobile/android/branding/official
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
export MOZ_TELEMETRY_REPORTING=1
mk_add_options MOZ_MAKE_FLAGS="-s -j2"
ac_add_options --with-android-ndk="$HOME/Development/android-ndk-r8e"
ac_add_options --with-android-sdk="$HOME/Development/sdk/platforms/android-17"
mk_add_options AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
(in fact I tried changing different options here with the same result).
Build runs well until ~98th minute. It goes through ProGuard
Code: Select all
96:11.92 Note: Some input files use or override a deprecated API.
96:11.92 Note: Recompile with -Xlint:deprecation for details.
96:12.20 .proguard.deps
96:12.46 Processing annotations...
96:13.27 ProGuard, version 4.7
96:13.27 Reading input...
.................
96:19.97 Note: there were 1 unkept descriptor classes in kept class members.
96:19.97 You should consider explicitly keeping the mentioned classes
96:19.97 (using '-keep').
96:19.97 Note: there were 1 unresolved dynamic references to classes or interfaces.
96:19.98 You should check if you need to specify additional program jars.
96:19.98 Ignoring unused library classes...
96:19.98 Original number of library classes: 3887
96:19.98 Final number of library classes: 1223
96:19.98 Shrinking...
96:21.13 Removing unused program classes and class elements...
96:21.14 Original number of program classes: 2598
96:21.14 Final number of program classes: 2340
96:21.14 Optimizing...
96:38.23 Number of finalized classes: 1345
96:38.23 Number of vertically merged classes: 0 (disabled)
...........
97:34.42 Shrinking...
97:34.74 Removing unused program classes and class elements...
97:34.74 Original number of program classes: 2281
97:34.74 Final number of program classes: 2280
97:35.84 Writing output...
97:35.84 Preparing output directory [/Users/usr/release/obj-arm-linux-android/mobile/android/base/jars-proguarded]
97:35.85 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/gecko-R.jar]
97:36.01 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/gecko-browser.jar]
97:37.22 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/gecko-mozglue.jar]
97:37.39 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/gecko-util.jar]
97:37.43 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/squareup-picasso.jar]
97:37.48 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/sync-thirdparty.jar]
97:37.67 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/websockets.jar]
97:37.67 Copying resources from program jar [/Users/usr/release/obj-arm-linux-android/mobile/android/base/webrtc.jar]
97:37.73 classes.dex
and then fails with a strange message which doesn't make any sense to me:
Code: Select all
97:56.79 /Users/usr/release/mobile/android/components/BrowserCLH.js: WARNING: no preprocessor directives found
97:56.88 /Users/usr/release/mobile/android/components/HelperAppDialog.js: WARNING: no preprocessor directives found
97:57.01 /Users/usr/release/mobile/android/components/Sidebar.js: WARNING: no useful preprocessor directives found
97:57.43 /Users/usr/release/mobile/android/themes/core/aboutPrivateBrowsing.css: WARNING: no preprocessor directives found
97:58.65 make[5]: *** No rule to make target `.project', needed by `/Users/usr/release/obj-arm-linux-android/mobile/android/geckoview_library/.project'. Stop.
97:58.65 make[5]: *** Waiting for unfinished jobs....
97:58.65 make[4]: *** [mobile/android/geckoview_library/libs] Error 2
97:58.65 make[3]: *** [libs] Error 2
97:58.65 make[2]: *** [default] Error 2
97:58.65 make[1]: *** [realbuild] Error 2
97:58.65 make: *** [build] Error 2
97:58.66 814 compiler warnings present.
98:02.81 /usr/local/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
There is no .project file in the geckoview_library directory.
Does anyone have any clue?