Error compiling Omni-ROM - Omni Q&A

Got the following error while compiling:
target Java: KeyChain (/ubhome/theo/android/omnirom/out/target/common/obj/APPS/KeyChain_intermediates/classes)
target Java: LiveWallpapers (/ubhome/theo/android/omnirom/out/target/common/obj/APPS/LiveWallpapers_intermediates/classes)
packages/apps/CertInstaller/src/com/android/certinstaller/CertInstallerMain.java:88: cannot find symbol
symbol : variable EXTRA_SHOW_ADVANCED
location: class android.provider.DocumentsContract
openIntent.putExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, true);
^
Note: packages/apps/CertInstaller/src/com/android/certinstaller/CertInstaller.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Any ideas where the problem is ?
Greetz

Open /frameworks/base/core/java/android/provider/DocumentsContract.java, go to line #86 and check if it is like this:
Code:
public static final String EXTRA_SHOW_ADVANCED = "android.content.extra.SHOW_ADVANCED";
If not, you have either data corruption due to forced system reboob, power outage or similar, or you have a bad cherry pick.
If you have tried to cherry pick the popular Multi-widow™, you are out of luck: it breaks the build today and will continue to do so
until someone does a rebase..
In either case, rm -rf your /frameworks and /.repo/projects/frameworks, then resync, check again DocumentsContract.java's line 86
and get the build rolling if everything's OK.

chasmodo said:
If you have tried to cherry pick the popular Multi-widow™, you are out of luck: it breaks the build today and will continue to do so
until someone does a rebase..
Click to expand...
Click to collapse
Not anymore
https://gerrit.omnirom.org/#/c/1510/

chasmodo said:
Open /frameworks/base/core/java/android/provider/DocumentsContract.java, go to line #86 and check if it is like this:
Code:
public static final String EXTRA_SHOW_ADVANCED = "android.content.extra.SHOW_ADVANCED";
If not, you have either data corruption due to forced system reboob, power outage or similar, or you have a bad cherry pick.
If you have tried to cherry pick the popular Multi-widow™, you are out of luck: it breaks the build today and will continue to do so
until someone does a rebase..
In either case, rm -rf your /frameworks and /.repo/projects/frameworks, then resync, check again DocumentsContract.java's line 86
and get the build rolling if everything's OK.
Click to expand...
Click to collapse
Yap, you're right...
Seems that for some reason have data corruption. Will completely refetch sources and try again...
Thanx...

And the next one after refetch of sources....
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DOMUtilitiesPrivate.cpp
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DatabaseObserver.cpp
frameworks/base/core/java/com/android/internal/view/CheckableLinearLayout.java:48: cannot find symbol
symbol : variable check
location: class com.android.internal.R.id
mCheckBox = (CheckBox) findViewById(R.id.check);
^
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DateTimeChooserImpl.cpp
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DeviceOrientationClientProxy.cpp
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Greetz
Temporary commented out to see if it is the only problem. Now continue compiling...
EDIT2:
after a lot of frustrating compilation errors, i finally found the problem. Beside making sure that all 'java' components point to JDK6, this is also necessary for 'config.jar'. So check this with:
$ sudo update-alternatives --config jar
and select the jar tool provided by JDK6 instead of other jar tools like fastjar or openjdk jar.

Related

Help with ubuntu vm for cm7

I have jdk installed. Working on sdk. When I run android from tools I get command not found. I think the problem is I have to add platforms dir to path. Can somebody please tell me how, or if u think the problem is something else then what? Thanks everyone.
main problem is 32-bit adb playing nice in 64-bit linux install. general issue discussed here: https://help.ubuntu.com/community/32bit_and_64bit
i would try using getlibs to install required 32-bit library files and dependencies, follow instructions here, except you use "getlibs adb" in the "platform-tools" directory, should get something like this:
Code:
The following extra packages will be installed:
lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5
lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386
Suggested packages:
lib32asound2-plugins
The following NEW packages will be installed:
ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5
lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386
otherwise set your path environment variables like here, and set up udev for nook color per instructions here.
it's a real PITA, worse comes to worse use whatever adb you have working to get the propietary files and move it into your linux install and move on with the build.
hth
MedLine said:
main problem is 32-bit adb playing nice in 64-bit linux install. general issue discussed here: https://help.ubuntu.com/community/32bit_and_64bit
i would try using getlibs to install required 32-bit library files and dependencies, follow instructions here, except you use "getlibs adb" in the "platform-tools" directory, should get something like this:
Code:
The following extra packages will be installed:
lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5
lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386
Suggested packages:
lib32asound2-plugins
The following NEW packages will be installed:
ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5
lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386
otherwise set your path environment variables like here, and set up udev for nook color per instructions here.
it's a real PITA, worse comes to worse use whatever adb you have working to get the propietary files and move it into your linux install and move on with the build.
hth
Click to expand...
Click to collapse
I don't have a platforms-tools directory. I skipped the install of eclipse because it said it was optional. I'm trying to install it now. When i tyoe getlibs aapt.from the tools directory like the articles says, all I get r the syntax command options.
newellj79 said:
I don't have a platforms-tools directory. I skipped the install of eclipse because it said it was optional. I'm trying to install it now. When i tyoe getlibs aapt.from the tools directory like the articles says, all I get r the syntax command options.
Click to expand...
Click to collapse
When you install adb, you should see ~/android-sdk-linux_x86/platform-tools/. I added the following line to ~/.profile to place it (and ~/bin) in my $PATH:
PATH=$HOME/android-sdk-linux_x86/platform-tools:$HOME/bin:$PATH
bigbob23 said:
When you install adb, you should see ~/android-sdk-linux_x86/platform-tools/. I added the following line to ~/.profile to place it (and ~/bin) in my $PATH:
PATH=$HOME/android-sdk-linux_x86/platform-tools:$HOME/bin:$PATH
Click to expand...
Click to collapse
Ok. Ill try to press on and figure how to get adb installed. Hopefully after I get that installed I can run getlibs which my understanding is will allow me to then run android from /tools.
Edit.. back to original problem. I can't install adb because I can't run sdk. When i type android
in /tools I get command not found. I can't run getlibs on the platforms-tools directory becuz it doesn't exist, and getlibs aapt in /tools as suggested in the referenced link does nothing but show getlibs help. Grrr. What am I missing!!!
newellj79 said:
Ok. Ill try to press on and figure how to get adb installed. Hopefully after I get that installed I can run getlibs which my understanding is will allow me to then run android from /tools.
Click to expand...
Click to collapse
Where the instructions http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK say to install ADB, you are really installing the SDK. This includes ~/android-sdk-linux_x86/tools.
bigbob23 said:
Where the instructions http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK say to install ADB, you are really installing the SDK. This includes ~/android-sdk-linux_x86/tools.
Click to expand...
Click to collapse
****. Thank you! I was typing android not ./android. My apologies! Please disregard all above posted problems
edit... my mistake
Ok, hopefully this is the last bit of help I need. I successfully made it to the configue build and compile. I get /bin/bash: bison: command not found, a bunch of times, i get 64-bit build environment is needed beyond froyo and I'm in 32, then i get a whole lot of no file or directory. I'm going to try and paste the output here, this is after all the "including"s. thanks
/bin/bash: bison: command not found
/bin/bash: bison: command not found
/bin/bash: bison: command not found
/bin/bash: bison: command not found
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_encore
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
/bin/bash: bison: command not found
The program 'schedtool' is currently not installed. You can install it by typing:
sudo apt-get install schedtool
[email protected]:~/android/system$ sudo apt-get install schedtool
[sudo] password for newellj79:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.38-8 linux-headers-2.6.38-8-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
schedtool
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.7 kB of archives.
After this operation, 86.0 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ natty/universe schedtool i386 1.3.0-1 [24.7 kB]
Fetched 24.7 kB in 0s (36.4 kB/s)
Selecting previously deselected package schedtool.
(Reading database ... 161913 files and directories currently installed.)
Unpacking schedtool (from .../schedtool_1.3.0-1_i386.deb) ...
Processing triggers for man-db ...
Setting up schedtool (1.3.0-1) ...
[email protected]:~/android/system$ . build/envsetup.sh && brunch encore
including device/advent/vega/vendorsetup.sh
including device/bn/encore/vendorsetup.sh
including device/geeksphone/one/vendorsetup.sh
including device/htc/ace/vendorsetup.sh
including device/htc/bravoc/vendorsetup.sh
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/click/vendorsetup.sh
including device/htc/desirec/vendorsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including device/htc/espresso/vendorsetup.sh
including device/htc/glacier/vendorsetup.sh
including device/htc/heroc/vendorsetup.sh
including device/htc/hero/vendorsetup.sh
including device/htc/inc/vendorsetup.sh
including device/htc/legend/vendorsetup.sh
including device/htc/leo/vendorsetup.sh
including device/htc/liberty/vendorsetup.sh
including device/htc/mecha/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/htc/speedy/vendorsetup.sh
including device/htc/supersonic/vendorsetup.sh
including device/htc/vision/vendorsetup.sh
including device/htc/vivo/vendorsetup.sh
including device/htc/vivow/vendorsetup.sh
including device/huawei/u8220/vendorsetup.sh
including device/lge/p999/vendorsetup.sh
including device/lge/thunderg/vendorsetup.sh
including device/malata/smb_a1002/vendorsetup.sh
including device/malata/smb_b9701/vendorsetup.sh
including device/motorola/droid2/vendorsetup.sh
including device/motorola/jordan/vendorsetup.sh
including device/motorola/morrison/vendorsetup.sh
including device/motorola/shadow/vendorsetup.sh
including device/motorola/sholes/vendorsetup.sh
including device/motorola/zeppelin/vendorsetup.sh
including device/samsung/captivatemtd/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/fascinatemtd/vendorsetup.sh
including device/samsung/galaxys2/vendorsetup.sh
including device/samsung/galaxysmtd/vendorsetup.sh
including device/samsung/sidekick4g/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/zte/blade/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
/bin/bash: bison: command not found
/bin/bash: bison: command not found
/bin/bash: bison: command not found
/bin/bash: bison: command not found
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_encore
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
/bin/bash: bison: command not found
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_encore
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
/bin/bash: bison: command not found
Checking build tools versions...
build/core/main.mk:76: ************************************************************
build/core/main.mk:77: You are attempting to build on a 32-bit system.
build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.
build/core/main.mk:79: ************************************************************
diff: out/target/product/encore/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/etc/wifi/tiwlan.ini'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/etc/wifi/tiwlan.ini'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/hw/overlay.omap3.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/hw/overlay.omap3.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libLCML.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libLCML.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libbridge.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libbridge.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libOMX.TI.Video.Decoder.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libOMX.TI.Video.Decoder.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libOMX.TI.AAC.encode.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libOMX.TI.AAC.encode.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libOMX.TI.Video.encoder.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libOMX.TI.Video.encoder.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libOMX_Core.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libOMX_Core.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libOMX.TI.WBAMR.encode.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libOMX.TI.WBAMR.encode.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/libOMX.TI.AMR.encode.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/libOMX.TI.AMR.encode.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/encore/system/lib/egl/libGLES_android.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/encore/system/lib/egl/libGLES_android.so'
No private recovery resources for TARGET_DEVICE encore
Header: out/host/linux-x86/obj/include/libexpat/expat.h
Header: out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: out/target/product/encore/obj/include/libexpat/expat.h
Header: out/target/product/encore/obj/include/libexpat/expat_external.h
Header: out/host/linux-x86/obj/include/libpng/png.h
Header: out/host/linux-x86/obj/include/libpng/pngconf.h
Header: out/host/linux-x86/obj/include/libpng/pngusr.h
Header: out/target/product/encore/obj/include/libpng/png.h
Header: out/target/product/encore/obj/include/libpng/pngconf.h
Header: out/target/product/encore/obj/include/libpng/pngusr.h
Header: out/target/product/encore/obj/include/libsonivox/eas.h
Header: out/target/product/encore/obj/include/libsonivox/eas_types.h
Header: out/target/product/encore/obj/include/libsonivox/eas_reverb.h
Header: out/target/product/encore/obj/include/libsonivox/jet.h
Header: out/target/product/encore/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: out/target/product/encore/obj/include/libwpa_client/wpa_ctrl.h
host C: mkimage <= system/extras/mkimage/mkimage.c
host C: mkimage <= system/extras/mkimage/crc32.c
system/extras/mkimage/crc32.c:11:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkimage_intermediates/crc32.o] Error 1
[email protected]:~/android/system$
newellj79 said:
Ok, hopefully this is the last bit of help I need. I successfully made it to the configue build and compile. I get /bin/bash: bison: command not found, a bunch of times, i get 64-bit build environment is needed beyond froyo and I'm in 32, then i get a whole lot of no file or directory. I'm going to try and paste the output here, this is after all the "including"s. thanks
/bin/bash: bison: command not found
system/extras/mkimage/crc32.c:11:18: fatal error: zlib.h: No such file or directory
Click to expand...
Click to collapse
Try 'sudo apt-get install bison zlib1g-dev'
brahahahahaha
you need 64-bit UBuntu: http://groups.google.com/group/android-building/browse_thread/thread/852d63ab6124c87e?pli=1
actually it's not funny because i did the same thing. cloned the entire cm7 gingerbread branch and the whole shebang in Ubuntu 32-bit only to find in the end that Ubuntu 64-bit required.
basically you have to start over. after installing Ubuntu 64-bit, you may run into trouble setting up adb, do yourself a favor and zip up the propietary files you already pulled, just in case, otherwise you're basically there.
good luck.
MedLine said:
brahahahahaha
you need 64-bit UBuntu: http://groups.google.com/group/android-building/browse_thread/thread/852d63ab6124c87e?pli=1
actually it's not funny because i did the same thing. cloned the entire cm7 gingerbread branch and the whole shebang in Ubuntu 32-bit only to find in the end that Ubuntu 64-bit required.
basically you have to start over. after installing Ubuntu 64-bit, you may run into trouble setting up adb, do yourself a favor and zip up the propietary files you already pulled, just in case, otherwise you're basically there.
good luck.
Click to expand...
Click to collapse
Golly. Thank you all kind sirs. I had such problems getting adb to work right I hope I can getit going again. Downloading now.
Any ideas here. Im using vmware which says it supports 32 and 64bit installs. I downloaded Ubuntu 64bit. When I try to make a new vm it says my system does not support 64bit. Please help. (All under 64bit windows 7)
got me on that one. my set up as well, Ubuntu 11.04 (64-bit) in VMWare Workstation 7 on a Windows 7 SP1 (64-bit). downloaded "ubuntu-11.04-desktop-amd64.iso" and VMWare went straight to "Easy Install" and did everything by itself.
sounds like you got pretty far with the build. except for setting up adb, should be smooth sailing once you get the VMWare issue sorted out. to build you really only need adb to run extract-files.sh. if you did this you already have the proprietary files in "/system/vendor/bn/encore/proprietary". for time being you can always zip that up and copy to Ubuntu 64-bit install, if adb proves impossible.
MedLine said:
got me on that one. my set up as well, Ubuntu 11.04 (64-bit) in VMWare Workstation 7 on a Windows 7 SP1 (64-bit). downloaded "ubuntu-11.04-desktop-amd64.iso" and VMWare went straight to "Easy Install" and did everything by itself.
sounds like you got pretty far with the build. except for setting up adb, should be smooth sailing once you get the VMWare issue sorted out. to build you really only need adb to run extract-files.sh. if you did this you already have the proprietary files in "/system/vendor/bn/encore/proprietary". for time being you can always zip that up and copy to Ubuntu 64-bit install, if adb proves impossible.
Click to expand...
Click to collapse
Ill see what I can do tommorrow after work. I've heard of maybe of maybe using wubi too. But I really liked the vmware setup.
I got Ubuntu 64 bit installed using wubi. I think something went wrong with jdk install. When I run. /android it says Java not found. I am suppose to use the ...64 jdk right? N e ways can someone please tell me how to uninstall jdk so I can reinstall it? When I just try to install again it says something to the effect of directory already exists. Thanks again!!
Edit... a Google search shows i just need to delete the directory. So ill do that and try reinstalling it later tonight.
if ./android didn't run script you probably don't have jdk installed.
easiest way to install jdk in Ubuntu 11.04 is use Synaptic Package Manager:
1. System > Administration > Synaptic Package Manager
2. Settings > Repositories > Other Software
3. Check "Canonical Partners" > Close > Reload
4. Quick Filter > type "sun-java6-jdk"
5. Right click sun-java6-jdk > Mark for Installation
6. Apply
MedLine said:
if ./android didn't run script you probably don't have jdk installed.
easiest way to install jdk in Ubuntu 11.04 is use Synaptic Package Manager:
1. System > Administration > Synaptic Package Manager
2. Settings > Repositories > Other Software
3. Check "Canonical Partners" > Close > Reload
4. Quick Filter > type "sun-java6-jdk"
5. Right click sun-java6-jdk > Mark for Installation
6. Apply
Click to expand...
Click to collapse
Awesome. Will try. Family reunion this weekend so I wont get much done untilled Sunday night or Monday. But please stick around.
Back from vaca and need help. I got 64 bit ubuntu setup. ADB and sdk running. When i get to repo init in the cm7 compile guide i get the following error. Please help...
[email protected]:~$ cd ~/android/system/
[email protected]:~/android/system$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Traceback (most recent call last):
File "/home/newellj79/bin/repo", line 603, in <module>
main(sys.argv[1:])
File "/home/newellj79/bin/repo", line 570, in main
_Init(args)
File "/home/newellj79/bin/repo", line 184, in _Init
_CheckGitVersion()
File "/home/newellj79/bin/repo", line 213, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[email protected]:~/android/system$
edit... figured it out. i had to use synapatic to install the listed libraries. duh... i could not find sun-java6-jdk though. I did add the partner repository line as stated. anyways i'm running repo sync right now. will see what happens..
one of the packages didn't get installed, just redo it:
Code:
sudo apt-get installgit-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
cm7 repo should then initialize properly

[Q] CM9 Build failure on Mac OS X 10.8 (when building kernel)

I am currently trying to build CM9 for my A500 on my Mac (which is running OS X 10.8). It is failing while building the kernel, with the error:
Code:
Undefined symbols for architecture i386:
"android::renderscript::rsi_Allocation1DElementData(android::renderscript::Context*, void*, unsigned int, unsigned int, void const*, unsigned long, unsigned int)", referenced from:
...
android::renderscript::rsp_Allocation2DElementData(android::renderscript::Context*, void const*, unsigned long)in libRS.a(rsgApiReplay.o)
I'll describe the steps I followed to get to that point below, but first: It doesn't look like I'm the only one having this problem, but it doesn't look common - I found the same error in three pastebins: 1, 2, 3. The interesting thing is that 1 and 2 there are both on OS X (both contain 'out/host/darwin-x86/'), and they are for different devices.
Anyway, to get to that point I did the following:
(Following the CyanogenMod Wiki template for Mac OS X building)
1. Trashed my entire MacPorts tree using the commands provided in the CyanogenMod wiki.
2. Reinstalled all the ports I already had installed, along with those indicated in the CyanogenMod wiki. I used the supplied command, but then after the described error appeared the first time, I installed all the ports with the +universal directive as well.
3. Checked out the code for CM9 using:
Code:
repo init -u http:github.com/CyanogenMod/android.git -b ics --reference=/Volumes/Backup/AndroidDevelopment/cm9/mirror/CyanogenMod/
repo sync
4. Following the post by waydownsouth, ran:
Code:
. build/envsetup.sh
lunch cm_a500-userdebug
This synced the a500 bits from the repository
5. Plugged in the tablet, and entered the commands:
Code:
cd device/acer/a500
./extract-files.sh
A bunch of files downloaded, and all was well.
6. I returned to the root of my working directory, and ran:
Code:
brunch cm_a500-userdebug
and received the error:
Code:
It bombed with:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/a500/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....
7. Got the prebuilts using the commands:
Code:
cd vendor/cm
./get-prebuilts
8. Returned to the root of the working directory again, and ran:
Code:
brunch cm_a500-userdebug
It looked like it was working until I received the error:
Code:
Result was:
target thumb C++: libwebcore <= external/webkit/Source/WebCore/xml/XPathP****r.cpp
out/target/product/a500/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/XPathGrammar.hpp: In member function 'WebCore::XPath::Expression* WebCore::XPath::P****r::p****Statement(const WTF::String&, WTF::PassRefPtr<WebCore::XPathNSResolver>, WebCore::ExceptionCode&)':
out/target/product/a500/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/XPathGrammar.hpp:106: error: too many arguments to function 'int WebCore::XPath::xpathyyp****()'
external/webkit/Source/WebCore/xml/XPathP****r.cpp:480: error: at this point in file
make: *** [out/target/product/a500/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/xml/XPathP****r.o] Error 1
9. I found that the above error was due to Bison 2.6, and I shopped around, and found a patch which appeared to address this issue. It didn't apply quite correctly (on file Source/WebCore/xml/XPathP****r.cpp), but I manually merged that file.
10. I shut down and restarted (because I was going from one place to another, and stuff in on an external drive) so I got my environment variables set etc. again by running:
Code:
9. At this point, I shut down. When I recommenced, I ran
. build/envsetup.sh
lunch cm_a500-userdebug
brunch cm_a500-userdebug
Webkit built correctly this time, but then I hit the error:
Code:
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c:4:17: error: elf.h: No such file or directory
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c: In function ‘main’:
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c:9: error: ‘EI_NIDENT’ undeclared (first use in this function)
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c:9: error: (Each undeclared identifier is reported only once
...
make[4]: *** [scripts/mod/mk_elfconfig] Error 1
11. I looked around and found one thread which suggested I copy the elf.h file to /external/elfutils/libelf but that didn't appear to fix the problem, so deleted the elf.h file from that directory again.
Then I found another thread which suggested the way to solve the problem was to build the kernel separately, and in advance using the command:
Code:
make -j`sysctl -an hw.logicalcpu` ARCH=arm CROSS_COMPILE=./prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- HOSTCFLAGS="-I./external/elfutils/libelf"
(Note that I changed the paths here to match my system).
To save from having to recompile everything every time, I ran:
export USE_CCACHE=1 && ./prebuilt/darwin-x86/ccache/ccache -M 20G
Then I used the command identified above (i.e. make -j`sysctl -an hw.logicalcpu` ...).
It failed after quite some time with the error:
Code:
Build failed with:
Undefined symbols for architecture i386:
"android::renderscript::rsi_Allocation1DElementData(android::renderscript::Context*, void*, unsigned int, unsigned int, void const*, unsigned long, unsigned int)", referenced from:
android::renderscript::rspr_Allocation1DElementData(android::renderscript::Context*, android::renderscript::Fifo*, unsigned char*, unsigned long)in libRS.a(rsgApiReplay.o)
android::renderscript::rsp_Allocation1DElementData(android::renderscript::Context*, void const*, unsigned long)in libRS.a(rsgApiReplay.o)
"android::renderscript::rsi_Allocation2DElementData(android::renderscript::Context*, void*, unsigned int, unsigned int, unsigned int, RsAllocationCubemapFace, void const*, unsigned long, unsigned int)", referenced from:
android::renderscript::rspr_Allocation2DElementData(android::renderscript::Context*, android::renderscript::Fifo*, unsigned char*, unsigned long)in libRS.a(rsgApiReplay.o)
android::renderscript::rsp_Allocation2DElementData(android::renderscript::Context*, void const*, unsigned long)in libRS.a(rsgApiReplay.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
As I noted above, it seems like one or two other people have had this error also. At this point, I'm basically stumped. I've never really done much C/C++ dev, so I'm fairly unfamiliar with reading the output of the linker. Looking over it, I wouldn't have expected it to need i386 symbols for libRS.a (if that is indeed what it is looking for symbols of) because it is building for ARM, but I could just be completely misunderstanding the output.
Anyway, if anyone has suggestions as to what might be causing the problem or how to address it (or even wants to briefly explain what that linker error actually means in a clearer way) that would be great. I've fought with CM7 builds in the past (for the Moto Defy) and basically given up because I couldn't get them to build. I'd rather not just do that again.
Have you solved this issue? Any update?
Any update?
FFU5y said:
I am currently trying to build CM9 for my A500 on my Mac (which is running OS X 10.8). It is failing while building the kernel, with the error:
Code:
Undefined symbols for architecture i386:
"android::renderscript::rsi_Allocation1DElementData(android::renderscript::Context*, void*, unsigned int, unsigned int, void const*, unsigned long, unsigned int)", referenced from:
...
android::renderscript::rsp_Allocation2DElementData(android::renderscript::Context*, void const*, unsigned long)in libRS.a(rsgApiReplay.o)
I'll describe the steps I followed to get to that point below, but first: It doesn't look like I'm the only one having this problem, but it doesn't look common - I found the same error in three pastebins: 1, 2, 3. The interesting thing is that 1 and 2 there are both on OS X (both contain 'out/host/darwin-x86/'), and they are for different devices.
Anyway, to get to that point I did the following:
(Following the CyanogenMod Wiki template for Mac OS X building)
1. Trashed my entire MacPorts tree using the commands provided in the CyanogenMod wiki.
2. Reinstalled all the ports I already had installed, along with those indicated in the CyanogenMod wiki. I used the supplied command, but then after the described error appeared the first time, I installed all the ports with the +universal directive as well.
3. Checked out the code for CM9 using:
Code:
repo init -u http:github.com/CyanogenMod/android.git -b ics --reference=/Volumes/Backup/AndroidDevelopment/cm9/mirror/CyanogenMod/
repo sync
4. Following the post by waydownsouth, ran:
Code:
. build/envsetup.sh
lunch cm_a500-userdebug
This synced the a500 bits from the repository
5. Plugged in the tablet, and entered the commands:
Code:
cd device/acer/a500
./extract-files.sh
A bunch of files downloaded, and all was well.
6. I returned to the root of my working directory, and ran:
Code:
brunch cm_a500-userdebug
and received the error:
Code:
It bombed with:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/a500/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....
7. Got the prebuilts using the commands:
Code:
cd vendor/cm
./get-prebuilts
8. Returned to the root of the working directory again, and ran:
Code:
brunch cm_a500-userdebug
It looked like it was working until I received the error:
Code:
Result was:
target thumb C++: libwebcore <= external/webkit/Source/WebCore/xml/XPathP****r.cpp
out/target/product/a500/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/XPathGrammar.hpp: In member function 'WebCore::XPath::Expression* WebCore::XPath::P****r::p****Statement(const WTF::String&, WTF::PassRefPtr<WebCore::XPathNSResolver>, WebCore::ExceptionCode&)':
out/target/product/a500/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/XPathGrammar.hpp:106: error: too many arguments to function 'int WebCore::XPath::xpathyyp****()'
external/webkit/Source/WebCore/xml/XPathP****r.cpp:480: error: at this point in file
make: *** [out/target/product/a500/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/xml/XPathP****r.o] Error 1
9. I found that the above error was due to Bison 2.6, and I shopped around, and found a patch which appeared to address this issue. It didn't apply quite correctly (on file Source/WebCore/xml/XPathP****r.cpp), but I manually merged that file.
10. I shut down and restarted (because I was going from one place to another, and stuff in on an external drive) so I got my environment variables set etc. again by running:
Code:
9. At this point, I shut down. When I recommenced, I ran
. build/envsetup.sh
lunch cm_a500-userdebug
brunch cm_a500-userdebug
Webkit built correctly this time, but then I hit the error:
Code:
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c:4:17: error: elf.h: No such file or directory
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c: In function ‘main’:
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c:9: error: ‘EI_NIDENT’ undeclared (first use in this function)
/Volumes/Backup/AndroidDevelopment/cm9/working_copy_2/kernel/acer/t20-common/scripts/mod/mk_elfconfig.c:9: error: (Each undeclared identifier is reported only once
...
make[4]: *** [scripts/mod/mk_elfconfig] Error 1
11. I looked around and found one thread which suggested I copy the elf.h file to /external/elfutils/libelf but that didn't appear to fix the problem, so deleted the elf.h file from that directory again.
Then I found another thread which suggested the way to solve the problem was to build the kernel separately, and in advance using the command:
Code:
make -j`sysctl -an hw.logicalcpu` ARCH=arm CROSS_COMPILE=./prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- HOSTCFLAGS="-I./external/elfutils/libelf"
(Note that I changed the paths here to match my system).
To save from having to recompile everything every time, I ran:
export USE_CCACHE=1 && ./prebuilt/darwin-x86/ccache/ccache -M 20G
Then I used the command identified above (i.e. make -j`sysctl -an hw.logicalcpu` ...).
It failed after quite some time with the error:
Code:
Build failed with:
Undefined symbols for architecture i386:
"android::renderscript::rsi_Allocation1DElementData(android::renderscript::Context*, void*, unsigned int, unsigned int, void const*, unsigned long, unsigned int)", referenced from:
android::renderscript::rspr_Allocation1DElementData(android::renderscript::Context*, android::renderscript::Fifo*, unsigned char*, unsigned long)in libRS.a(rsgApiReplay.o)
android::renderscript::rsp_Allocation1DElementData(android::renderscript::Context*, void const*, unsigned long)in libRS.a(rsgApiReplay.o)
"android::renderscript::rsi_Allocation2DElementData(android::renderscript::Context*, void*, unsigned int, unsigned int, unsigned int, RsAllocationCubemapFace, void const*, unsigned long, unsigned int)", referenced from:
android::renderscript::rspr_Allocation2DElementData(android::renderscript::Context*, android::renderscript::Fifo*, unsigned char*, unsigned long)in libRS.a(rsgApiReplay.o)
android::renderscript::rsp_Allocation2DElementData(android::renderscript::Context*, void const*, unsigned long)in libRS.a(rsgApiReplay.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
As I noted above, it seems like one or two other people have had this error also. At this point, I'm basically stumped. I've never really done much C/C++ dev, so I'm fairly unfamiliar with reading the output of the linker. Looking over it, I wouldn't have expected it to need i386 symbols for libRS.a (if that is indeed what it is looking for symbols of) because it is building for ARM, but I could just be completely misunderstanding the output.
Anyway, if anyone has suggestions as to what might be causing the problem or how to address it (or even wants to briefly explain what that linker error actually means in a clearer way) that would be great. I've fought with CM7 builds in the past (for the Moto Defy) and basically given up because I couldn't get them to build. I'd rather not just do that again.
Click to expand...
Click to collapse
sean.wang said:
Any update?
Click to expand...
Click to collapse
I actually gave up in the end, and took to running an Ubuntu 12.04 virtual machine for compiling. There just isn't enough people building on OSX to be able to readily work through the problems.
FFU5y said:
I actually gave up in the end, and took to running an Ubuntu 12.04 virtual machine for compiling. There just isn't enough people building on OSX to be able to readily work through the problems.
Click to expand...
Click to collapse
I believe this fixes this particular problem:
Code:
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp
index bbf2dbd..c4def9c 100644
--- a/libs/rs/rsAllocation.cpp
+++ b/libs/rs/rsAllocation.cpp
@@ -429,13 +429,13 @@ void rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t
}
void rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face,
- const void *data, uint32_t sizeBytes, size_t eoff) {
+ const void *data, size_t sizeBytes, uint32_t eoff) {
Allocation *a = static_cast<Allocation *>(va);
a->elementData(rsc, x, y, data, eoff, sizeBytes);
}
void rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod,
- const void *data, uint32_t sizeBytes, size_t eoff) {
+ const void *data, size_t sizeBytes, uint32_t eoff) {
Allocation *a = static_cast<Allocation *>(va);
a->elementData(rsc, x, data, eoff, sizeBytes);
}
The issue has been fixed in another way, as a part of a larger patch, in the upstream AOSP. So, this is most probably only useful if you try to build CM9 / AOSP 4.0.4 under MacOS X 10.7 (Lion) with a suitable version of XCode. My XCode is 4.5 (i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1).

[Q] Anybody know what I'm doing wrong? Need a hand with building.

I can't get it to build properly, I'm not sure if the toolchain version I'm using or what but I'm stalled. Any help would be greatly appreciated.
[email protected]:~$ cd ~/android/kernel/msm
[email protected]:~/android/kernel/msm$ export ARCH=arm
[email protected]:~/android/kernel/msm$ export SUBARCH=arm
[email protected]:~/android/kernel/msm$ export CROSS_COMPILE=arm-linux-androideabi-
[email protected]:~/android/kernel/msm$ make mako_defconfig
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
[email protected]:~/android/kernel/msm$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
CHK include/linux/version.h
HOSTCC scripts/bin2c
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
arm-linux-androideabi-gcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/kernel/msm$
Bump
I would guess that you have not defined the path to the actual toolchain. I recommend a build script - it's much faster than typing everything in and saves you from typing mistakes. Create the file /android/kernel/buildscript.sh, make it executable and add
Code:
cd msm
export PATH=$PATH:~/android/toolchain/arm-linux-androideabi-4.6/bin
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-linux-androideabi-
make clean
make mako_defconfig
make -j6
This assumes that the kernel makefile is located in /android/kernel/msm/makefile The important line is 'export PATH=$PATH:~/android/toolchain/arm-linux-androideabi-4.6/bin' (depending on where your toolchain actually resides). This tells make where to look for the arm-linux-androideabi- binaries. For further info, I recommend this guide.
XDA_Bam said:
I would guess that you have not defined the path to the actual toolchain. I recommend a build script - it's much faster than typing everything in and saves you from typing mistakes. Create the file /android/kernel/buildscript.sh, make it executable and add
Code:
cd msm
export PATH=$PATH:~/android/toolchain/arm-linux-androideabi-4.6/bin
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-linux-androideabi-
make clean
make mako_defconfig
make -j6
This assumes that the kernel makefile is located in /android/kernel/msm/makefile The important line is 'export PATH=$PATH:~/android/toolchain/arm-linux-androideabi-4.6/bin' (depending on where your toolchain actually resides). This tells make where to look for the arm-linux-androideabi- binaries. For further info, I recommend this guide.
Click to expand...
Click to collapse
Same problem here. On Ubuntu and Mac OS. No idea what's causing it, the path seems to be OK and pointing to the right file, if I try to execute it on its own, it will say: cannot execute binary file
You couldn't ask for a clearer error message. The build system wants to call "arm-linux-androideabi-gcc", but this program can't be found (executable isn't in the $PATH directory list).
As someone else told you, you must add this to your path. On my computer I would write:
Code:
PATH="$PATH:/Volumes/android/cm10.1/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/bin"
But I'm not building the same thing you are (or using the same method). You'll need to follow whatever procedure is recommended for that project.
fenstre said:
You couldn't ask for a clearer error message. The build system wants to call "arm-linux-androideabi-gcc", but this program can't be found (executable isn't in the $PATH directory list).
As someone else told you, you must add this to your path. On my computer I would write:
Code:
PATH="$PATH:/Volumes/android/cm10.1/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/bin"
But I'm not building the same thing you are (or using the same method). You'll need to follow whatever procedure is recommended for that project.
Click to expand...
Click to collapse
Like I said before, it's IN the PATH. The problem appears to be that this is a 64-bit only binary, on my Ubuntu test case it was a 32-bit OS, but on the Mac it doesn't make sense at all since it's Mountain Lion --> x86_64.
Same Problem Here
I just compiled yesterday on debian testing reinstalled the same OS for other reasons, pulled git, tried to build and get the same error. I have PATH set correctly and can run arm-eabi-gcc --version no problem from any directory. I have multiarch setup with both x86-64 and i386. The only difference between today and yesterday is I switched from GNOME 3 to window maker and switched from xterm to aterm.
Anybody got a clue whats going wrong here yet?? :crying::crying:
Got It to Work (At lease for me)
On my Debian box I setup by doing apt-get install make git libncurses5 figuring everything else was in google's toolchain. Well today I installed kernel-package which installs build-essentials and installed libncurses-dev now I still get the unmet dependencies error but am able to do make menuconfig and make and build just fine now. If you are on OS X I suggest googling debian package search, search for build-essentials and use MacPorts or Brew (depending on your preference) to install as many of those utilities as you can. :good:

Kernel error while building Omni ROM

So I am building Omni Rom for my device which is not currently supported by Omni. I have declared the kernel, device in the local manifest. I am getting the below error:
No private recovery resources for TARGET_DEVICE d2att
build/core/tasks/kernel.mk:65: ***************************************************************
build/core/tasks/kernel.mk:66: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:67: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED
http://hastebin.com/yapimovido.md
Putting the kernel repo in local_manifest.xml is not enough. You have to add the path to the kernel local source and its target defconfig to your device's BoardConfig.mk.
For example, see n7100 BoardConfig.mk here: https://github.com/omnirom/android_device_samsung_n7100/blob/android-4.4/BoardConfig.mk
Lines 30-32.
chasmodo said:
Putting the kernel repo in local_manifest.xml is not enough. You have to add the path to the kernel local source and its target defconfig to your device's BoardConfig.mk.
For example, see n7100 BoardConfig.mk here: https://github.com/omnirom/android_device_samsung_n7100/blob/android-4.4/BoardConfig.mk
Lines 30-32.
Click to expand...
Click to collapse
I fixed that by changing the reference of the d2 kernel in the d2-common folder.
Now I am getting the following error:
http://hastebin.com/cehadiwika.vhdl
matrixzone said:
I fixed that by changing the reference of the d2 kernel in the d2-common folder.
Now I am getting the following error:
http://hastebin.com/cehadiwika.vhdl
Click to expand...
Click to collapse
Go to device/samsung/d2-common/overlay/frameworks/base/core/res/res/values/config.xml and comment out the three lines containing
config_forceDisableHardwareKeyboard
config_panelAutoBrightnessValue
config_enableTorch
like this
<!-- <bool name="config_forceDisableHardwareKeyboard">true/false/whatever</bool> -->
chasmodo said:
Go to device/samsung/d2-common/overlay/frameworks/base/core/res/res/values/config.xml and comment out the three lines containing
config_forceDisableHardwareKeyboard
config_panelAutoBrightnessValue
config_enableTorch
like this
<!-- <bool name="config_forceDisableHardwareKeyboard">true/false/whatever</bool> -->
Click to expand...
Click to collapse
Thanks for your response but I have deleted the overlay folder. Will that work?
matrixzone said:
Thanks for your response but I have deleted the overlay folder. Will that work?
Click to expand...
Click to collapse
No, it won't. Even if you pull off a build with no errors, many of the device specific settings will be lost.
rm -rf /device folder, resync and solve the overlay error in the proper fashion.
chasmodo said:
No, it won't. Even if you pull off a build with no errors, many of the device specific settings will be lost.
rm -rf /device folder, resync and solve the overlay error in the proper fashion.
Click to expand...
Click to collapse
That fixed the issue. Thanks.
Now new error:
----- Making recovery image ------
error: could not load kernel '/home/kunal/android/omni/kernel/samsung/d2att'
make: *** [/home/kunal/android/omni/out/target/product/d2att/recovery.img] Error 1
I have defined the correct location of the kernel, but still getting the above error
Getting this error:
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:3227:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:3248:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:3260:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:3270:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/home/kunal/android/omni/out/target/product/d2att/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o] Error 1
Manage to nail all error, now stuck in the below:
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:1615:3: error: 'struct venc_entropycfg' has no member named 'longentropysel'

Omni build with Floating Window failing.

Okay, so I was building with the Floating window commit from Gerrit and everything was going good until I came upon this error. I have cherry picked every patch needed for the Floating Window to works and made sure all conflicts were fixed correctly checking them with the code on gerrit but now I'm getting this error.
PHP:
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DOMFilePath.cpp
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp
frameworks/base/core/java/android/app/Activity.java:1638: cannot find symbol
symbol : method refreshAppLayoutSize()
location: class android.app.Activity
refreshAppLayoutSize();
^
frameworks/base/core/java/android/app/Activity.java:5434: cannot find symbol
symbol : method refreshAppLayoutSize()
location: class android.app.Activity
refreshAppLayoutSize();
^
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DOMFileSystemBase.cpp
In file included from external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:27:0:
external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h: In constructor 'WebCore::MediaKeySession::MediaKeySession(WebCore::ScriptExecutionContext*, WebCore::ContentDecryptionModule*, WebCore::MediaKeys*)':
external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h:94:31: warning: 'WebCore::MediaKeySession::m_asyncEventQueue' will be initialized after [-Wreorder]
external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h:92:12: warning: 'WTF::String WebCore::MediaKeySession::m_keySystem' [-Wreorder]
external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp:45:1: warning: when initialized here [-Wreorder]
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DOMFileSystemSync.cpp
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DataTransferItemFileSystem.cpp
target thumb C++: third_party_WebKit_Source_modules_modules_gyp <= external/chromium_org/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
make: *** [/home/hammondfamily/Android/Omnifloating/out/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
real 417m57.651s
user 1463m39.925s
sys 76m9.535s
It's saying it cannot find symbol for line 1638 and 5434 for
PHP:
symbol : method refreshAppLayoutSize()
location: class android.app.Activity
refreshAppLayoutSize();
^
Any help would be greatly appreciated. I really want to try this out.
DREWHAMM974 said:
[/PHP] Any help would be greatly appreciated. I really want to try this out.
Click to expand...
Click to collapse
I would suggest a make clobber, repo sync and then do your cherry-picks in this order:
patch 6561- SystemUI: Fix missing top task in recent panel
patch 6380 - base: Floating window with multi-tasking
patch 6378 - [1/2] Base: implement App circle sidebar
patch 6379 - [2/2] OmniGears: Implement App circle sidebar
patch 6515 - Base: App Circle sidebar (add support floating window)
patch 6627 - Base: App Circle sidebar (add support Samsung multiwindow flags)
Resolve any conflicts that may arise. Also, leave out the multi-window patch or the multi<->floating patch for now, too many conflicts. I used the mentioned patchsets, cherry-picking in that order and finally got a working build for my Asus TF101 tablet. It's worth getting to build right.
I got it to build finally. I was missing the omnigears patch
Sent from my LG-LS980 using XDA Premium 4 mobile app

Categories

Resources