[Q] Firefox os build error at SurfaceTextureClient.cpp - Firefox OS General

I'm trying to port firefox os(B2G) to my device (HTC Desire HD). While building it stops because of error at libgui in SurfaceTextureClient.cpp
last few lines of build log
Code:
target thumb C++: libgui <= frameworks/base/libs/gui/SurfaceTextureClient.cpp
frameworks/base/libs/gui/SurfaceTextureClient.cpp: In member function 'virtual int android::SurfaceTextureClient::setUsage(uint32_t)':
frameworks/base/libs/gui/SurfaceTextureClient.cpp:500: error: 'GRALLOC_USAGE_EXTERNAL_ONLY' was not declared in this scope
frameworks/base/libs/gui/SurfaceTextureClient.cpp:505: error: 'GRALLOC_USAGE_EXTERNAL_BLOCK' was not declared in this scope
make: *** [out/target/product/ace/obj/SHARED_LIBRARIES/libgui_intermediates/SurfaceTextureClient.o] Error 1
and the full build log is here
I think this happens because of the build system doesn't build
Code:
hardware/qcom/display/libgralloc/
before building
Code:
frameworks/base/libs/gui/
How can I tell the B2G build system to do that? Or is there any other way to get around this without breaking(like can't see anything) the build?
Here is my B2G manifest file.
I know this belongs in the developer forum but I still can't post in it

In your device blobs you are telling it to make hardware/com/display or display_legacy or the like correct? One way to at least get past this error and possibly get either further clues or have it compile would be to just add the header to this file or reference it as a dependency in your frameworks/base makefiles. These are just some ideas. Its hard without knowing where you are pulling these from (cm repo, Google, linaro, b2g, or whatever) so I can look at the code and makefiles. But normally this sort of thing will be an adjustment needed to your makefiles. Its just finding which, or if its simply a missing statement like this in your device makefiles TARGET_QCOM_DISPLAY_VARIANT := legacy
Pacman for the 3vo CDMA

Related

[LOLIPOP] Xperia AOSP Project

hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J
Andoroid L (5.0) code, binaries and guides are published
Wow, you are already testing 5.0 on the Z3?
thx @jerpelea wasn't sure if we would be lucky enought to get lollipop at the first instance ?
Fix? Does the code contain any major bugs something not working? Just got soooo excited with this news
tx a lot @jerpelea! Just make bl unlock a bit more straightforward (e.g. easy to go back to stock)!
Inviato dal mio LG-D802 utilizzando Tapatalk
Would unlocking the bootloader and installing this eventual ROM that's based off of Sony's source code not be impacted by this warning from Sony (meaning the DRM security keys would be intact?
http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
Certain pre-loaded content on your device may also be inaccessible due to the removal of DRM security keys. For high-end devices running recent software versions, for instance Xperia Z3, the removal of DRM security keys may affect advanced camera functionality. For example, noise reduction algorithms might be removed, and performance when taking photos in low-light conditions might be affected. The secure user data partition may also become inaccessible, and you will not be able to get any more official software upgrades if you unlock the boot loader.
Click to expand...
Click to collapse
the proprietary software thar uses drm is not part of aosp
more the point re this lollipop source: camera and phone modem are disabled ~ so no daily driver for a while yet.
I will post results of my first build in this thread (give me a few hours).
update: build failed..
(something to do with bluetooth ~ checked remotely so no details yet)
try again later
iBuzman said:
the proprietary software thar uses drm is not part of aosp
more the point re this lollipop source: camera and phone modem are disabled ~ so no daily driver for a while yet.
I will post results of my first build in this thread (give me a few hours).
update: build failed..
(something to do with bluetooth ~ checked remotely so no details yet)
try again later
Click to expand...
Click to collapse
I'll also build but will not be installing until our gurus fix the camera and modem.
rebuilding now, java was still 6 defaulted not java 7, plus a system folder missing.. fingers crossed..
---------- Post added at 12:24 PM ---------- Previous post was at 12:09 PM ----------
@jerpelea
cd external/libnfc-nci/
git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
FYI - throws out a "fatal: bad object" error
thanks
no good for my builds.. bluetooth errors during build stopping build approx 2hrs into "make" process..
I don't know how to fix so will hold off on any more builds until after source updated or somebody else builds without error.
iBuzman said:
no good for my builds.. bluetooth errors during build stopping build approx 2hrs into "make" process..
I don't know how to fix so will hold off on any more builds until after source updated or somebody else builds without error.
Click to expand...
Click to collapse
What kind of errors are you getting? Im compiling now so will see how that goes.
^^ I'll kick off another build, but resetting up first, will capture error details then, it's something along the lines of:
/android/external/bluetooth <- android/external/bluetooth.. something something
make stopped with jobs still to run (something like that)
definitely bluetooth each time and suggests something missing.
deleted all repos/android folder etc and re-syncing now (just in case change from 4.4.4 to 5.0.0 in repos is causing issues. probably a few hours before next attempt.
thanks for your message
guide updated to cherry-pick nfc from google review
br
J
iBuzman said:
rebuilding now, java was still 6 defaulted not java 7, plus a system folder missing.. fingers crossed..
---------- Post added at 12:24 PM ---------- Previous post was at 12:09 PM ----------
@jerpelea
cd external/libnfc-nci/
git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
FYI - throws out a "fatal: bad object" error
thanks
Click to expand...
Click to collapse
jerpelea said:
thanks for your message
guide updated to cherry-pick nfc from google review
br
J
Click to expand...
Click to collapse
Alin. Should we be using AOSP Master or the android-5.0.0_r2 branch?
iBuzman said:
^^ I'll kick off another build, but resetting up first, will capture error details then, it's something along the lines of:
/android/external/bluetooth <- android/external/bluetooth.. something something
make stopped with jobs still to run (something like that)
definitely bluetooth each time and suggests something missing.
deleted all repos/android folder etc and re-syncing now (just in case change from 4.4.4 to 5.0.0 in repos is causing issues. probably a few hours before next attempt.
Click to expand...
Click to collapse
I'm getting the same thing when building for D6503, fair noob here but i'll let you know if I find anything.
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_util.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_ag_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_dm_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_fs_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gattc_co.c
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gatts_co.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
make: *** wait: No child processes. Stop.
#### make failed to build some targets (33:43 (mm:ss)) ####
thats the one @XeKToReX... (and I need a better computer!! takes me 2.04hr to get that error!) @jerpelea maybe can shed some light? (thanks, appreciate all your help)
SSD makes a difference! Seems like others have built it for the Z2, glad its not just me though, I'd have just blown the is away and started again lol
Sent from my D6503 using xda-developers.com, powered by appyet.com
On each command you will have to select the version of java you want to use. This command is helpful if you also do other coding.
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config jar
sudo update-alternatives --config javadoc
I've included the master from jerpelea's branch in case anybody is having issues and needs it quickly
After i get out of class today i'm going to run through android.com and see what i can find out about the new compiling method for Android L. I'm sure there's something we've all missed.
bluetooth patch pushed on github
enjoy
XeKToReX said:
I'm getting the same thing when building for D6503, fair noob here but i'll let you know if I find anything.
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_util.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_ag_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_dm_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_fs_co.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gattc_co.c
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/co/bta_gatts_co.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
make: *** wait: No child processes. Stop.
#### make failed to build some targets (33:43 (mm:ss)) ####
Click to expand...
Click to collapse

[LOLLIPOP] Xperia AOSP Project

hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J
Wohooo! Finally! [emoji106] [emoji2] [emoji3]
Excellent! An AOSP ROM is the only thing I can think is missing from an otherwise perfect device.
GCC here we come..
Andoroid L (5.0) code, binaries and guides are published
No working camera or modem, looks like we've still got awhile guys...
great news,thankss
nice
I'm syncing it now. I'm going to do a blind build (not changing anything just going with what's already there) because I have yet to unlock my bootloader and won't until they can figure out a way so at least the camera and noise cancellation don't get messed up when unlocking (if I go back to a sony stock rom I know it won't matter on AOSP)
graffixnyc said:
I'm syncing it now.
Click to expand...
Click to collapse
Preparing to build as well. Like you, I haven't BL unlocked and won't until the DRM issues are resolved.
jerpelea said:
Andoroid L (5.0) code, binaries and guides are published
Click to expand...
Click to collapse
Your work is really appreciated. FYI, I convinced a friend to buy a Z3C in large part due to your AOSP commitment. [emoji106]
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
illogic6 said:
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
Click to expand...
Click to collapse
no
Reverse Engeneering
In other words - SONY will deliver the required drivers or better all required driver will be there in a while...
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
m0d said:
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
Click to expand...
Click to collapse
just re sync your tree and fix is there
That inform you in: <insert the cpu thread number of your computer> ??? Please
I got a build to finish. I'll post the boot and system img for someone to try.. I'm not going to go through the trouble yet to make a flashable zip until we at least know it boots. I'll upload the images now
Posted the images: http://forum.xda-developers.com/z3-compact/development/img-aosp-5-0-boot-imgs-t2940499
So @NisseGurra flashed the build I made yesterday here is what he found to be broken:
no wifi, no network, some reboots, no usb storage, no external sd, no sound or camera
But its very snappy, looking forward to a functional aosp
Thank you for the guides,
I was able to compile AOSP for D5803 successfully.
A couple of issues,
First,
Has the Cherry-Pick for external/libnfc-nci/ that is provided in the guide been merged?
As I get the following error,
Code:
/external/libnfc-nci $ git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
fatal: bad object 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
(Updated on blog to correspond with Shinano Issue.)
Second,
I get the following error when I try to output zipped package,
Code:
[B]No private recovery resources for TARGET_DEVICE aries
No recovery.fstab for TARGET_DEVICE aries[/B]
make: *** no rule to make target `otapackage'. stop.
Does this have anything to do with: TARGET_BOOTLOADER_BOARD_NAME := D5803
or that it is called aosp_d5803 (aosp_d5803.mk)
UPDATE: otatools seems to work, [" . build/envsetup.sh && time lunch aosp_d5803-userdebug && make otatools "].
But I can not find the output / output directory for package
Oh,
Is there supposed to be a userdata.img too?
Looking around a different sources mention it, however there is no userdata.img when I compiled it.
Thank you for your time

[Project]Lollipop for the Kindle Fire HD's(2012 Models)

LOLLIPOP!
This is a project thread to help out with getting Lollipop on our HDs !
this is the default manifest that you can put into your repo to make things more smooth for you:
https://www.androidfilehost.com/?fid=95784891001611544
Download Repo:
Code:
repo init -u [url]https://android.googlesource.com/platform/manifest.git[/url] -b android-5.0.0_r7
Then Run:
Code:
repo sync -j#
(#=6,8,16,32) depends on how well your pc can handle muliple projects at once
After sources have downloaded Run:
Code:
lunch
then choose device which is tate
then Run:
Code:
make -j8 otapackage
and itll start compiling
Sources have been bumped up to LRX21T 5.0.0_r7
CURRENT ERRORS AND TEMPORARY FIXES
ERROR #1
So it builds and then stops at netlink/genl/genl.h no such file...
to fix this error run:
Code:
cd external
then:
Code:
git clone https://android.googlesource.com/platform/external/libnl-headers
and then:
Code:
make -j8 otapackage
ERROR #2
Code:
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::configureOutputBuffersFromNativeWindow(OMX_U32*, OMX_U32*, OMX_U32*)':
frameworks/av/media/libstagefright/ACodec.cpp:627:11: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
err = native_window_set_buffers_geometry(
^
frameworks/av/media/libstagefright/ACodec.cpp:631:42: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
def.format.video.eColorFormat);
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputBuffersFromNativeWindow()':
frameworks/av/media/libstagefright/ACodec.cpp:779:5: error: 'mNumUndequeuedBuffers' was not declared in this scope
mNumUndequeuedBuffers = minUndequeuedBuffers;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::allocateOutputMetaDataBuffers()':
frameworks/av/media/libstagefright/ACodec.cpp:848:5: error: 'mNumUndequeuedBuffers' was not declared in this scope
mNumUndequeuedBuffers = minUndequeuedBuffers;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'void android::ACodec::waitUntilAllPossibleNativeWindowBuffersAreReturnedToUs()':
frameworks/av/media/libstagefright/ACodec.cpp:2969:48: error: 'mNumUndequeuedBuffers' was not declared in this scope
while (countBuffersOwnedByNativeWindow() > mNumUndequeuedBuffers
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::pushBlankBuffersToNativeWindow()':
frameworks/av/media/libstagefright/ACodec.cpp:3591:11: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
err = native_window_set_buffers_geometry(mNativeWindow.get(), 1, 1,
^
frameworks/av/media/libstagefright/ACodec.cpp:3592:39: warning: 'int native_window_set_buffers_geometry(ANativeWindow*, int, int, int)' is deprecated (declared at system/core/include/system/window.h:734) [-Wdeprecated-declarations]
HAL_PIXEL_FORMAT_RGBX_8888);
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::BaseState::onOMXMessage(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:3813:26: warning: NULL used in arithmetic [-Wpointer-arith]
if (mCodec->mNode == NULL) {
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'virtual void android::ACodec::UninitializedState::stateEntered()':
frameworks/av/media/libstagefright/ACodec.cpp:4406:19: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
mCodec->mNode = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::UninitializedState::onAllocateComponent(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:4477:5: warning: NULL used in arithmetic [-Wpointer-arith]
CHECK(mCodec->mNode == NULL);
^
frameworks/av/media/libstagefright/ACodec.cpp:4525:26: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
IOMX::node_id node = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp:4544:14: warning: converting to non-pointer type 'android::IOMX::node_id {aka unsigned int}' from NULL [-Wconversion-null]
node = NULL;
^
frameworks/av/media/libstagefright/ACodec.cpp:4547:17: warning: NULL used in arithmetic [-Wpointer-arith]
if (node == NULL) {
^
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'bool android::ACodec::LoadedState::onConfigureComponent(const android::sp<android::AMessage>&)':
frameworks/av/media/libstagefright/ACodec.cpp:4693:5: warning: NULL used in arithmetic [-Wpointer-arith]
CHECK(mCodec->mNode != NULL);
^
make: *** [/home/android/lol/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Note: frameworks/base/cmds/am/src/com/android/commands/am/Am.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
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.
#### make failed to build some targets (04:22 (mm:ss)) ####
to fix this error: download this ACodec.cpp and replace it with the one thats in frameworks/av/media/libstagefright
ERROR #3
Code:
bcmdhd-wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c:65: error: undefined reference to 'os_strncpy'
collect2: error: ld returned 1 exit status
to fix this error: download this driver_cmd_nl80211.c and replace it with the one thats in device/amazon/bowser-common/bcmdhd-wifi/wpa_supplicant_8_lib
NOTE: I got it to compile completely but just so your aware this is in no way good enough to flash as of yet!! Some things still need to be worked out before you can flash away!! YOUVE BEEN WARNED!!
Lollipop Compiled files
WARNINGHEREWARNING
Any Questions, Solutions, or Ideas post them here...
Did you already get past the camera and HardwareComposer issues?
r3pwn said:
Did you already get past the camera and HardwareComposer issues?
Click to expand...
Click to collapse
Yea I got past it using that default.xml. it compiled 95% but got stuck with the error in the op.
Sent from my Nexus 5 using Tapatalk
BuQQzz said:
Yea I got past it using that default.xml. it compiled 95% but got stuck with the error in the op.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Have you tried compiling CM12 yet? A lot of issues I was having with AOSP weren't there in CM.
I only had the CM12 sources downloaded, never got to compile it because my external hard drive gave out on me so I lost everything including the changes I made when compiling aosp! I'm waiting on a new hard drive to come in and then try again
Sent from my Nexus 5 using Tapatalk
Did you setup the device tree for CM12?
Sent from my Nexus 5 using Tapatalk
BuQQzz said:
Did you setup the device tree for CM12?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I did, but it never compiled all the way. I forget which error it's stuck on now...
Cleaned and updated op with latest repo, errors and temp fixes!
BuQQzz said:
Cleaned and updated op with latest repo, errors and temp fixes!
Click to expand...
Click to collapse
Glad you fixed the error! Will it compile all the way now? Im syncing the sources now
faZevoLv said:
Glad you fixed the error! Will it compile all the way now? Im syncing the sources now
Click to expand...
Click to collapse
It threw out another error with ACodec.cpp but what I did was delete some folders 1.kernel 2.build 3.out 4.vendor 5.device ... Repo sync, and it's been compiling good so far, I'd say about 2 hours in!
No go . stuck on ACodec.cpp errors, think it might have something to do with new 64bit support, need to do more research on this.
BuQQzz said:
No go . stuck on ACodec.cpp errors, think it might have something to do with new 64bit support, need to do more research on this.
Click to expand...
Click to collapse
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
faZevoLv said:
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
Click to expand...
Click to collapse
Nice find I'll take a look at it after work and edit the op with the error
faZevoLv said:
Could you copy ajd paste the exact error you are getting please
I think this guy might have it fixed
https://github.com/mstorsjo/platform_frameworks_av/tree/master/media/libstagefright
Click to expand...
Click to collapse
I looked at it but I see no workaround for our error, i posted it in the op so everyone can take a look at it, hope we can get around this soon!
Just fixed the ACodec.cpp, used a line of code from 4.4.4_r2.0.1
Caught another error with a WiFi driver, took care of that, I'll post everything in the op . got a successful build now!! Tried flashing the zip with system unmounted and flashed successfully...buttttt.... Screwed the hell out of the bootloader ! Haha. Note to self: check zip files before flashing ?. I'll be uploading the zip so we can debug this thing..
Good News!!
OP Updated with fixes for a complete build and compiled files to mess around with!
Uploads are hot and ready to go! ive been working on a flashable zip all night, i might have something to flash by tmm night, im exausted!
Again... a warning for those who dont know what theyre doing pleeeeease do not download and try flashing and end up with a pretty bad brick
:good:
BuQQzz said:
OP Updated with fixes for a complete build and compiled files to mess around with!
Uploads are hot and ready to go! ive been working on a flashable zip all night, i might have something to flash by tmm night, im exausted!
Again... a warning for those who dont know what theyre doing pleeeeease do not download and try flashing and end up with a pretty bad brick
:good:
Click to expand...
Click to collapse
So does the build flash and boot? or is it completely messed up? im trying to build omnirom and see if they have any fixes, im syncing te sources now so ill report back once ive started te build and if there are the same errors you have experienced!
And good job bro for getting the first build up for te Kindle!
faZevoLv said:
So does the build flash and boot? or is it completely messed up? im trying to build omnirom and see if they have any fixes, im syncing te sources now so ill report back once ive started te build and if there are the same errors you have experienced!
And good job bro for getting the first build up for te Kindle!
Click to expand...
Click to collapse
itll flash but not boot, instead itll bootloop on the orange kindle fire logo turning on and off. youd have to fastboot everything back. ive tried flashing the imgs aswell with same results... not sure what it is yet but im sure well get there!
BuQQzz said:
itll flash but not boot, instead itll bootloop on the orange kindle fire logo turning on and off. youd have to fastboot everything back. ive tried flashing the imgs aswell with same results... not sure what it is yet but im sure well get there!
Click to expand...
Click to collapse
hmmm i wonder wy that is, ill compile tis omnirom and see if i get the same results, i modified te manifest.xml with the missing repos from your manifest so it should work, sources are at 31% now so it sould be done in a couple of hours
i cant download your rom file, it says i dont have permission...

[Q] Error while compiling CM12.1

--------------------------Solution--------------------------
Thanks to @sdr4wkcab
Notice:You should replace paths with your own.
1.Open /device/samsung/ks01lte/BoardConfig.mk
2.Change
BOARD_PROVIDES_LIBRIL := ture
to
BOARD_PROVIDES_LIBRIL := false
3.Extract libril.so from stock ROM.
4.Add these lines to /device/samsung/ks01lte/Android.mk
Code:
$(shell mkdir -p $(OUT)/obj/lib)
$(shell cp -f ~/cm12.1/others/libril.so $(OUT)/obj/lib/)
5.Put libril.so in a folder "others" right in the root directory of the source file.
Rom then can be built normally.
______________________________________
Hi!
I want to compile CM12.1 myself.
Butttttt
Code:
Import includes file: /home/builder/cm12.1/out/target/product/ks01lte/obj/EXECUTABLES/rfc_intermediates/import_includes
make: *** No rule to make target “/home/builder/cm12.1/out/target/product/ks01lte/obj/EXECUTABLES/rild_intermediates/import_includes” Needed by “/home/builder/cm12.1/out/target/product/ks01lte/obj/SHARED_LIBRARIES/libril_intermediates/export_includes”. Stop.
make: *** Waiting for unfinished jobs...
Export includes file: external/bluetooth/bluedroid/test/rfcommtest/Android.mk -- /home/builder/cm/out/target/product/ks01lte/obj/EXECUTABLES/rfc_intermediates/export_includes
#### make failed to build some targets (02:48 (mm:ss)) ####
This is what I always encounter 2min after brunch. I have re-sync for many times, but it won't help.
Any way to solve this ? Thanks in advance!!
Same here building for Note 4. Any ideas guys?
Well, ROM built with SIM card not recognized.
Try setting BOARD_PROVIDES_LIBRIL := false in the BoardConfig.mk and copying the librild.so by hand from your backup.
sdr4wkcab said:
Try setting BOARD_PROVIDES_LIBRIL := false in the BoardConfig.mk and copying the librild.so by hand from your backup.
Click to expand...
Click to collapse
Thanks! It finally works!
Just remember that RIL (Radio Interface Library) is something Android needs in order to communicate with the phone's modem (i.e. make calls, send msm, change SIM-settings, etc.). If you don't have this in the correct way on your ROM you will have instead of a GSG5 mobile phone a very small non-SIM-capable tablet in the end, running CM
If you are suspicous about using a binary blob like this in your own distribution, rejoice, for your suspicion was justified: RILd is shamelessly backdoored (just google for "Replicant Samsung Galaxy backdoor"). Luckily the Replicant developers managed to initiate an open-source replacement for Samsung's RIL, which heavily needs contributors..
sdr4wkcab said:
Just remember that RIL (Radio Interface Library) is something Android needs in order to communicate with the phone's modem (i.e. make calls, send msm, change SIM-settings, etc.). If you don't have this in the correct way on your ROM you will have instead of a GSG5 mobile phone a very small non-SIM-capable tablet in the end, running CM
If you are suspicous about using a binary blob like this in your own distribution, rejoice, for your suspicion was justified: RILd is shamelessly backdoored (just google for "Replicant Samsung Galaxy backdoor"). Luckily the Replicant developers managed to initiate an open-source replacement for Samsung's RIL, which heavily needs contributors..
Click to expand...
Click to collapse
Thanks for that info.
I have very little skills of coding or debugging on these stuffs.... It can take me a long to look for practical and useful guide or tutorial, or even finally know about the source code.
The Rom I built works normally now, "apparently", with overheat along and occasional sudden freeze. I did sync the source code from cm's github, but the the only maintainer of my device on CyanogenMod seems to stop maintaining this device (ks01lte) :crying: So there must be much to improve.
I'm trying to build kernel from Note 3's source code, which is almost identical to my device except for few things like memory size. But failed today. Will investigate more.

Why Xiaomi releases a kernel source full of errors?

I'm trying to build the kernel for my Poco M3 from https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/lime-q-oss and I'm getting errors like
In file included from techpack/camera/drivers/cam_req_mgr/cam_req_mgr_core.c:15:
./techpack/camera/drivers/cam_utils/cam_trace.h:18:10: fatal error: 'cam_req_mgr_core.h' file not found
#include "cam_req_mgr_core.h"
In file included from techpack/display/pll/dsi_pll_10nm.c:16:
In file included from techpack/display/pll/pll_trace.h:109:
./include/trace/define_trace.h:89:10: fatal error: './pll_trace.h' file not found
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
I was able to remove `#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)` from lots of places and fixed the .h from the cam files and other stuff, but I get thousands of ` undefined reference to `__tracepoint_rdev_return_int'` and other things related to trace, probably because I disable those trace includes.
Why Xiaomi releases a broken kernel source and is there an official place where I can get a working kernel source?
PS: I'm documenting the entire process of building a kernel and flashing and doing crazy stuff, so if you help me you're helping the community. Thanks!

Categories

Resources