Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when building in AOSP #106

Closed
inhies opened this issue Mar 7, 2013 · 22 comments
Closed

Fails when building in AOSP #106

inhies opened this issue Mar 7, 2013 · 22 comments
Labels

Comments

@inhies
Copy link

inhies commented Mar 7, 2013

I'm trying to include the in my rom at compile time but it's failing...

I'm not much of a java dev, so hopefully you can make sense of this:

target R.java/Manifest.java: afwall (out/target/common/obj/APPS/afwall_intermediates/src/R.stamp)
W/ResourceType(11574): Bad XML block: header size 21892 or total size 164856416 is larger than data size 0
aapt: warning: string 'notify_pref_summary' has no default translation in packages/apps/AFWall/res; found: es nl ru
aapt: warning: string 'toast_pref_title' has no default translation in packages/apps/AFWall/res; found: es nl ru
packages/apps/AFWall/res/layout/dialog_color_picker.xml:34: error: Error: This attribute must be localized. (at 'text' with value 'Press on Color to apply').
packages/apps/AFWall/res/layout/dialog_color_picker.xml:59: error: Error: This attribute must be localized. (at 'text' with value '→').
packages/apps/AFWall/res/layout/rules.xml:9: error: Error: No resource found that matches the given name (at 'paddingTop' with value '?actionBarSize').
packages/apps/AFWall/res/xml/unified_preferences_headers.xml:4: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall' 
packages/apps/AFWall/res/xml/unified_preferences_headers.xml:8: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/AFWall/res/xml/unified_preferences_headers.xml:12: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/AFWall/res/xml/unified_preferences_headers.xml:17: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/AFWall/res/menu/menu_bar.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/abs__ic_search').
packages/apps/AFWall/res/menu/menu_bar.xml:8: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/abs__ic_menu_moreoverflow_normal_holo_dark').
make: *** [out/target/common/obj/APPS/afwall_intermediates/src/R.stamp] Error 1
make: Leaving directory `/home/n4/build
@ukanth
Copy link
Owner

ukanth commented Mar 7, 2013

Translations are imcomplete as of now. Kindly remove the values-* from the res/ folder and try building it.Also make sure that you have ActionBarSherlock library setup

@inhies
Copy link
Author

inhies commented Mar 7, 2013

Didn't work, still the same errors with all the res/values-* folders
removed.

On Thu, Mar 7, 2013 at 10:00 PM, Umakanthan Chandran <
notifications@github.com> wrote:

Translations are imcomplete as of now. Kindly remove the values-* from the
res/ folder and try building it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-14574356
.

@ukanth
Copy link
Owner

ukanth commented Mar 7, 2013

packages/apps/AFWall/res/menu/menu_bar.xml:8: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/abs__ic_menu_moreoverflow_normal_holo_dark').

This line indicates that you don't have ActionBarSherlock project linked to AFWall+. That library is required for this. Do you have that ?

@inhies
Copy link
Author

inhies commented Mar 7, 2013

I do not, I merely cloned the github repo and tried to build with the
Android.mk file that came with it. I'm not sure how I would add
ActionBarSherlock
to it in order to make this work.

On Thu, Mar 7, 2013 at 10:14 PM, Umakanthan Chandran <
notifications@github.com> wrote:

packages/apps/AFWall/res/menu/menu_bar.xml:8: error: Error: No resource
found that matches the given name (at 'icon' with value
'@drawable/abs__ic_menu_moreoverflow_normal_holo_dark').

This line indicates that you don't have ActionBarSherlock project linked
to AFWall+. That library is required for this. Do you have that ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-14575163
.

@ukanth
Copy link
Owner

ukanth commented Mar 7, 2013

OK, you can use
android update project -p pathto/ActionBarSherlock

and then continue your build.I'll add the clear instructions later.

@inhies
Copy link
Author

inhies commented Mar 7, 2013

When compiling AOSP from source, the standard SDK/NDK isnt available.
ActionBarSherlock needs to be specified in the Android.mk file somehow, but
I'm not having any luck thus far.

On Thu, Mar 7, 2013 at 10:24 PM, Umakanthan Chandran <
notifications@github.com> wrote:

OK, you can use
android update project -p /ActionBarSherlock

and then continue your build.I'll add the clear instructions later.


Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-14575751
.

@ukanth
Copy link
Owner

ukanth commented Mar 8, 2013

Sure.I'll add the reference to ActionBarSherlock and add them to github.

@inhies
Copy link
Author

inhies commented Mar 8, 2013

Thank you! I think android-lockpattern needs to be added too.

On Fri, Mar 8, 2013 at 8:15 AM, Umakanthan Chandran <
notifications@github.com> wrote:

Sure.I'll add the reference to ActionBarSherlock and add them to github.


Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-14601327
.

@ukanth
Copy link
Owner

ukanth commented Mar 8, 2013

Yes. Thanks for reminding me. I'll add that too.

@t0mm13b
Copy link

t0mm13b commented Jul 12, 2013

To be honest, I would not go down that route in building AFWall as part of the AOSP build, for reasons:

  • Key signed on AFWall as part of AOSP build will be different to the general distribution of AFWall via Playstore, FDroid etc so will be forced to uninstall the AFWall on existing installation
  • Increases the build time
  • More awkward to use Android.mk considering the dependencies on ABS as well, it can certainly be done but...

A much easier method would be to just copy the latest apk, in that way it will update itself automatically without additional prompting.

@ukanth
Copy link
Owner

ukanth commented Jul 13, 2013

You could use the F-droid source build structure to build using androd.mk

https://f-droid.org/repository/browse/?fdfilter=AFWall+&fdid=dev.ukanth.ufirewall

@ukanth
Copy link
Owner

ukanth commented Nov 23, 2013

Updated build instructions. It should be easy to build using ant.

@ukanth ukanth closed this as completed Nov 23, 2013
@chr4
Copy link

chr4 commented Dec 20, 2013

I still cannot manage to build afwall inside an AOSP tree. I opened a pull request to address this (not finished yet though): #237

@inhies @ukanth: If you have any ideas howto further address this, please let me know.

@ukanth
Copy link
Owner

ukanth commented Dec 21, 2013

@chr4 , I'll look into it once I come back from vacation.

@ghost
Copy link

ghost commented May 10, 2014

any news?

I am having trouble to compile afwall during Cyanogenmod build (using "master" branch; beta fails with R.stamp segmentation fault):

target R.java/Manifest.java: afwall (/srv/android/android/cm-11/out/target/common/obj/APPS/afwall_intermediates/src/R.stamp)
target thumb C: dhcpcd <= external/dhcpcd/arp.c
target thumb C: dhcpcd <= external/dhcpcd/bind.c
target thumb C: dhcpcd <= external/dhcpcd/common.c
target thumb C: dhcpcd <= external/dhcpcd/control.c
target thumb C: dhcpcd <= external/dhcpcd/dhcp.c
target thumb C: dhcpcd <= external/dhcpcd/dhcpcd.c
target thumb C: dhcpcd <= external/dhcpcd/duid.c
target thumb C: dhcpcd <= external/dhcpcd/eloop.c
target thumb C: dhcpcd <= external/dhcpcd/if-options.c
target thumb C: dhcpcd <= external/dhcpcd/if-pref.c
W/ResourceType(25323): CREATING STRING CACHE OF 80 bytes
W/ResourceType(25323): CREATING STRING CACHE OF 28608 bytes
aapt: warning: string 'widget_label_status' has no default translation in packages/apps/afwall/res; found: af el hu it ja nl pl pt ru sr sv th tr vi zh zh_CN zh_TW
packages/apps/afwall/res/values/strings.xml:125: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values/strings.xml:124: Originally defined here.
packages/apps/afwall/res/values-cs/strings.xml:109: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-cs/strings.xml:108: Originally defined here.
packages/apps/afwall/res/values-de/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-de/strings.xml:107: Originally defined here.
packages/apps/afwall/res/values-es/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-es/strings.xml:107: Originally defined here.
packages/apps/afwall/res/values-fr/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-fr/strings.xml:107: Originally defined here.
packages/apps/afwall/res/values-in/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-in/strings.xml:107: Originally defined here.
packages/apps/afwall/res/values-ro/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-ro/strings.xml:107: Originally defined here.
packages/apps/afwall/res/values-sl/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-sl/strings.xml:107: Originally defined here.
packages/apps/afwall/res/values-uk/strings.xml:108: error: Resource entry enable_firewall_log_service is already defined.
packages/apps/afwall/res/values-uk/strings.xml:107: Originally defined here.
packages/apps/afwall/res/layout/app_detail.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@color/abs__background_holo_dark').
packages/apps/afwall/res/layout/dialog_color_picker.xml:34: error: Error: This attribute must be localized. (at 'text' with value 'Press on Color to apply').
packages/apps/afwall/res/layout/dialog_color_picker.xml:59: error: Error: This attribute must be localized. (at 'text' with value '→').
packages/apps/afwall/res/layout/help_about_content.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@color/abs__background_holo_dark').
packages/apps/afwall/res/layout/help_about_content.xml:14: error: Error: This attribute must be localized. (at 'text' with value '').
packages/apps/afwall/res/layout/rules.xml:6: error: Error: No resource found that matches the given name (at 'paddingTop' with value '?actionBarSize').
packages/apps/afwall/res/xml/unified_preferences_headers.xml:4: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/afwall/res/xml/unified_preferences_headers.xml:8: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/afwall/res/xml/unified_preferences_headers.xml:12: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/afwall/res/xml/unified_preferences_headers.xml:17: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/afwall/res/xml/unified_preferences_headers.xml:22: error: No resource identifier found for attribute 'title' in package 'dev.ukanth.ufirewall'
packages/apps/afwall/res/menu/menu_bar.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/abs__ic_search').
packages/apps/afwall/res/menu/menu_bar.xml:8: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/abs__ic_menu_moreoverflow_normal_holo_dark').
make: *** [/srv/android/android/cm-11/out/target/common/obj/APPS/afwall_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
GEN /srv/android/android/cm-11/out/target/product/mako/obj/KERNEL_OBJ/Makefile

configuration written to .config

make[1]: Leaving directory `/srv/android/android/cm-11/kernel/google/msm'
BUILD FAILED! Exiting Buildscript.

@ukanth
Copy link
Owner

ukanth commented May 12, 2014

I'll make these changes this week and let you know. My box is not enough to build android aosp's. May be If I get a decent one I'll try it.

@chr4
Copy link

chr4 commented Aug 1, 2014

I can confirm the segfault in the beta branch:

make: *** [cyanogen/out/target/common/obj/APPS/afwall_intermediates/src/R.stamp] Segmentation fault (core dumped)

@chr4
Copy link

chr4 commented Aug 1, 2014

And also on master :(

@ukanth
Copy link
Owner

ukanth commented Aug 1, 2014

Is it possible to get some more logs ?

@chr4
Copy link

chr4 commented Aug 1, 2014

I'd love to provide more! Is there anything that I can run to get more verbose logs? This was everything related to afwall on first sight...

@timoschwarzer
Copy link

Same as @inhies I can't include ActionBarSherlock when AFWall+ is located in an AOSP/CM build tree.
Tried with master and beta branch.
(the two alpha branches don't work, too, but they don't use ActionBarSherlock)

@ukanth
Copy link
Owner

ukanth commented Dec 25, 2014

@timo-schwarzer, could you post the logs ? alpha_lollipop is the latest code base which is based on gradle/android studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants