Hi,
I am building my new CM9 rom for Shakira but on linux mint 14 I have a big problem with this error :
http://pastebin.com/kpprcWcA
I used MiniCM surouces
pastebin not open :S
frameworks/base/media/libstagefright/OMXCodec.cpp:2546: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nEvent(OMX_EVENTTYPE, OMX_U32, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3333: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nCmdComplete(OMX_COMMANDTYPE, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3513: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'bool android:MXCodec::flushPortAsync(OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3828: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec::drainInputBuffers()':
frameworks/base/media/libstagefright/OMXCodec.cpp:3963: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In function 'const char* android::colorFormatString(OMX_COLOR_FORMATTYPE)':
frameworks/base/media/libstagefright/OMXCodec.cpp:5427: warning: comparison between 'enum OMX_COLOR_FORMATTYPE' and 'enum OMX_QCOM_COLOR_FORMATTYPE'
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/cm9 $
This is error code
I had a similar problem except that I did not want to load at all
"frameworks / base / media / libstagefright / OMXCodec.cpp: In member function 'bool android :: eek: MXCodec :: flushPortAsync (OMX_U32)'"
and stopped and also used to use Linux, so we tried it on ubuntu and there was no problem with you more, but this is different ...
can do it on ubuntu like me
I do not want to install a new system ...
Everything can be solved without re installation - I know this from experience!
Does anyone else have any other ideas?
Have a look here Soniakos
Try using make -j1
Ubuntu rullez i know it
Yeah Thanks !
I build CM9
surouces for my CM9 is posted on my team github
github.com/MimiTeam
Hey cool,
What solved the error?
Not working yet !
I thinked working but I see this error now :/
Soniakos said:
frameworks/base/media/libstagefright/OMXCodec.cpp:2546: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nEvent(OMX_EVENTTYPE, OMX_U32, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3333: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nCmdComplete(OMX_COMMANDTYPE, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3513: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'bool android:MXCodec::flushPortAsync(OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3828: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec::drainInputBuffers()':
frameworks/base/media/libstagefright/OMXCodec.cpp:3963: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In function 'const char* android::colorFormatString(OMX_COLOR_FORMATTYPE)':
frameworks/base/media/libstagefright/OMXCodec.cpp:5427: warning: comparison between 'enum OMX_COLOR_FORMATTYPE' and 'enum OMX_QCOM_COLOR_FORMATTYPE'
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/cm9 $
This is error code
Click to expand...
Click to collapse
No this is not error... This is only warning....
The real error here:
Code:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/SurfaceMediaSource.cpp
frameworks/base/media/libstagefright/OMXCodec.cpp:2351:2: error: #endif without #if
and here:
Code:
frameworks/base/media/libstagefright/OMXCodec.cpp:2340: error: 'kRequiresStoreMetaDataBeforeIdle' was not declared in this scope
I hope how this help If not, I will see your repos, but first try to fix you..
Ok but now I installed Ubuntu 10.04 (On this I created my first rom Ice Elite CM9) on this Ubuntu I haven't errors...
And now I have some next problems but now with libusbx :/
I installed Ubuntu and I want to install flashtool... but I have a error with libusb, but I installed in termianl is :
[email protected]:/home/zodex/ft# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Libusb not found. Minimum libusb version is 1.0.14
It can be downloaded on http://www.libusbx.org
Can you help me now ?
Soniakos said:
Ok but now I installed Ubuntu 10.04 (On this I created my first rom Ice Elite CM9) on this Ubuntu I haven't errors...
And now I have some next problems but now with libusbx :/
I installed Ubuntu and I want to install flashtool... but I have a error with libusb, but I installed in termianl is :
[email protected]:/home/zodex/ft# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Libusb not found. Minimum libusb version is 1.0.14
It can be downloaded on http://www.libusbx.org
Can you help me now ?
Click to expand...
Click to collapse
http://www.libusbx.org
Visit the site, download the source, then build lubusbx
install it then restart pc...
I installed this :/
But error is :/
And I have next error :
[email protected]:~/cm9$ repo init -u git://github.com/zodex/android.git -b ics
fatal: git 1.7.2 or later required
OMG ! Why errors ?
Soniakos said:
I installed this :/
But error is :/
And I have next error :
[email protected]:~/cm9$ repo init -u git://github.com/zodex/android.git -b ics
fatal: git 1.7.2 or later required
OMG ! Why errors ?
Click to expand...
Click to collapse
needed newer version of git...
sudo apt-get install git-core
if says how the latest version installed:
https://launchpad.net/~git-core/+archive/candidate
install 1.8 from here
I have error !
Bro help me please...
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
This is not like me ...
Can u help me ?
In frameworks/base/media/libstagefright/OMXCodec.cpp find this: (Line 2337-2351)
Code:
#if !defined(QCOM_LEGACY_OMX) && !defined(STE_HARDWARE)
if ((mFlags & kStoreMetaDataInVideoBuffers)
#else
if (!(mQuirks & kRequiresStoreMetaDataBeforeIdle)
&& (mFlags & kStoreMetaDataInVideoBuffers)
#endif
&& portIndex == kPortIndexInput) {
LOGW("Trying to enable metadata mode on encoder");
err = mOMX->storeMetaDataInBuffers(mNode, kPortIndexInput, OMX_TRUE);
if (err != OK) {
LOGE("Storing meta data in video buffers is not supported");
return err;
}
}
#endif
Then replace with this:
Code:
#ifndef QCOM_LEGACY_OMX if ((mFlags & kStoreMetaDataInVideoBuffers)
&& portIndex == kPortIndexInput) {
LOGW("Trying to enable metadata mode on encoder");
err = mOMX->storeMetaDataInBuffers(mNode, kPortIndexInput, OMX_TRUE);
if (err != OK) {
LOGE("Storing meta data in video buffers is not supported");
return err;
}
}
#endif
Very Thanks bro !
Sorry bro's but I have new problem :/
in console :
running: java -Xmx512m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpNRP2MT out/target/product/shakira/cm_shakira-ota-eng.zodex.zip
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2798)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:111)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:135)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:289)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)
ERROR: signapk.jar failed: return code 1
make: *** [out/target/product/shakira/cm_shakira-ota-eng.zodex.zip] Error 1
I know... This is java problem but I can't fix it :/
Can you help me ?
You can get OOM errors if you don't have a big enough swap partition when compiling.
Use 6GB swap on a build machine..
Your error may be from something else, i'm just pointing out another possible cause..
Hi all,
I recently acquired a Samsung Galaxy S5 and immediatelly proceeded to install CM13 on it.
Problem is, I ran into an issue where my gallery app (QuickPic) wasn't creating all thumbnails, it just stopped at some point and refused to go through all my media.
Others such as Leafpic, CM13's stock gallery, etc.. all had the same issue.
I found the error in my logcat:
Code:
11-04 16:44:45.220 305 4796 I FFMPEGSoftCodec: Thumbnail mode enabled.
11-04 16:44:45.220 305 4796 E OMXNodeInstance: getParameter(47:qcom.decoder.vp8, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
11-04 16:44:45.220 305 4796 E OMXNodeInstance: getParameter(47:qcom.decoder.vp8, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
11-04 16:44:45.276 305 4796 E OMXNodeInstance: getParameter(47:qcom.decoder.vp8, ParamVideoAndroidVp8Encoder(0x6f600007)) ERROR: UnsupportedIndex(0x8000101a)
11-04 16:44:45.288 305 4796 E OMXNodeInstance: getParameter(47:qcom.decoder.vp8, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
11-04 16:44:45.355 305 4796 E OMXNodeInstance: getParameter(47:qcom.decoder.vp8, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
11-04 16:44:45.377 305 4796 E ACodec : [OMX.qcom.video.decoder.vp8] ERROR(0x80001009)
11-04 16:44:45.377 305 4796 E ACodec : signalError(omxError 0x80001009, internalError -2147483648)
11-04 16:44:45.377 305 4795 E MediaCodec: Codec reported err 0x80001009, actionCode 0, while in state 9
After some debugging, I found the issue to be related to the "OMX" library:
Code:
libOmxVdec.so
in:
Code:
/system/lib/
So I downloaded a stock rom for KLTE (SG-G900W8) and extracted the file from it using simg2img and after replacing this file with the stock SO from Samsung, all is well.
So I'm linking the file in hopes that some other poor soul who has the same issue knows how to fix it.
DOWNLOAD HERE
Cheers gents!
I tried building the magisk binary from source and it fails with many messages like:
Code:
jni/utils/misc.c:143:18: error: use of undeclared identifier 'R_OK'
if (access(buf, R_OK) == -1 || (fd = xopen(buf, O_RDONLY)) == -1)
I have a feeling that it has something todo with the removal of deprecated headers in ndk r16 and the introduction of unified headers.
Are you aware of that issue?
darkshines87 said:
I tried building the magisk binary from source and it fails with many messages like:
Code:
jni/utils/misc.c:143:18: error: use of undeclared identifier 'R_OK'
if (access(buf, R_OK) == -1 || (fd = xopen(buf, O_RDONLY)) == -1)
I have a feeling that it has something todo with the removal of deprecated headers in ndk r16 and the introduction of unified headers.
Are you aware of that issue?
Click to expand...
Click to collapse
Okay, nevermind. Two includes were missing, which I fixed locally. I'll prepare a Pull Request.
Hey Guys,
i managed to root, unlock the bootloader and install the twrp recovery.
Now i have the problem that i can't install any custom rom.
This is the code:
E3004: This package is for "D5803,D5833,z3c,aries" devices
this is a "z3"
E: unknown command [log]
Installing zip file....
Updater process ended with ERROR: 7
Error installing zip file '/sdcard/carbon-cr5.1.zip'
I also deleted the assert commando line in the updater-script file of the carbon rom.
Still doesn't work.
How can i install a custom rom?
Am i missing something?
TWRP-Version: 3.0.2.0
Android-Version: 6.0.1 Build-Number: 23.5.A.1.291
Thank you for your help
Now i erased the getprob lines in the update-script.
These are the lines i deleted:
(getprop("ro.product.device") == "D5803" || getprop("ro.build.product") == "D5803" ||
getprop("ro.product.device") == "D5833" || getprop("ro.build.product") == "D5833" ||
getprop("ro.product.device") == "z3c" || getprop("ro.build.product") == "z3c" ||
getprop("ro.product.device") == "aries" || getprop("ro.build.product") == "aries") || abort("E3004: This package is for "D5803,D5833,z3c,aries" devices
this is a "" + getprop("ro.product.device") + "".");
Now i get this error:
Could not find 'META-INF/com/google/android/update-binary' in the zip file.
Error installing zip file.
I have the same problem. Not sure what to do?
Edit: Updating TWRP solved my issue. (Went from 3.0.2 to This one)
Btw, if you are on Linux and fastboot is giving you an error, check "fastboot --version" to see which you are on. I was on 29.0.2 and had to do a system update to get 29.0.4 before I could install this ROM.
I'm trying to build AOSP Extended for Sanders but I'm facing problem during compiling stuff. I used:
Device repo: https://github.com/AospExtended-Devices/android_device_motorola_sanders
Kernel source: https://github.com/Jorg3Lucas/android_kernel_motorola_msm8953
Vendor repo: https://github.com/AospExtended-Devices/android_vendor_motorola_sanders
Problem:
Code:
[ 36% 29755/82171] build /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/qkiz/android/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/qkiz/android/out/host/linux-x86/bin/sepolicy-analyze /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: permissive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/motorola/sanders/sepolicy/vendor/file.te:36:ERROR 'Duplicate declaration of type' at token ';' on line 78529:
# sysfs
type sysfs_adsp, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration
36% 29757/82171] build /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: policy configuration loaded /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp [ 36% 29758/82171] //frameworks/base/libs/services:libservices clang++ aidl/frameworks/base/core/java/com/android/internal/os/IDropBoxManagerService.cpp [ 36% 29759/82171] //frameworks/base/libs/services:libservices clang++ src/os/StatsLogEventWrapper.cpp [ 36% 29760/82171] //frameworks/base/libs/services:libservices clang++ src/os/StatsDimensionsValue.cpp [ 36% 29761/82171] //frameworks/base/libs/services:libservices clang++ src/os/DropBoxManager.cpp [ 36% 29762/82171] //frameworks/native/services/utils:libserviceutils clang++ PriorityDumper.cpp ninja: build stopped: subcommand failed. build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed [0;31m#### failed to build some targets (44:39 (mm:ss)) ####[00m
Anyone facing similar problem. Or maybe I used wrong repos to build image.
I fixed three errors and successfully build AOSP Extended with April security patch.
Sent from my Motorola Moto G (5S) Plus using XDA Labs
QkiZMR said:
I fixed three errors and successfully build AOSP Extended with April security patch.
Sent from my Motorola Moto G (5S) Plus using XDA Labs
Click to expand...
Click to collapse
How did you fixed it?
What did you do?
I commented out mentioned in error lines in policy file.