[HELP] Rom Development - P8lite Q&A, Help & Troubleshooting

Used gbmasterdoctor's GitHub tutorial on how to build LineageOS 14.1 from here: https://github.com/masterdoctor/Lin...i/LineageOS-|-Build-Tutorial-|-Huawei-P8-Lite
Done everything in the tutorial, everything looked fine until the build step. From that moment, I was like in "hell".
"croot" and "mka" commands didn't work, if I would've type them and enter it would say "unknown command" and recommended me a list of apps with a "similar" command.
Make worked, but after 3 minutes something about Ninja wrapper or builder error 1. I got a way to skip that, putting something in .bashrc to disable Ninja Wrapper.
Again tried, still no sign of "mka" or "croot" that they work, still stucked just with make.
Finnaly, I really got a hope, the process was longer than 3 minutes, I waited 20-30 minutes but stuck again with an error:crying: :
make: *** No rule to make target '/.txt', needed by '/root/android/system/out/target/common/obj/PACKAGING/checkpublicapi-cm-last-timestamp'. Stop.
[email protected]:~/android/system#
That is all what I got. Searched again on google now for this error and found a "fix" and ran this command to build : "make update-api && make -j4".
After again somewhere between 20-30 minutes got even more errors:
make: *** No rule to make target '/.txt', needed by '/root/android/system/out/target/common/obj/PACKAGING/checkpublicapi-cm-last-timestamp'. Stop.
make: *** Waiting for unfinished jobs....
Checking API: checktestapi-current
[email protected]:~/android/system#
I want to mention that I am using Ubuntu 16.04 64 Bit and that I did not used ccache, beacuse I didn't had too much space left.
May I done somthing wrong? I didn't install something? I missed something? Is there a fix for this?
I will be very thankful is someone helps me:good:
Thanks in advance

Related

Building CM 5.02 from source... problems

Hi All,
Could some of developers who managed to successfully build CM 5.02 (or any 5.x) kernel from the source help me out with this?
* I checked out the Android 2.x kernel with repo
* Set the proper environment variables
* Checked out Cyanogen's source from github
* Set buildspec.mk and extracted proprietary files
* Copied config.gz from phone to .config
* Executed /build/envsetup.sh
make runs for good 10+ minutes and compiles tons of files, but it stops with this error:
make: *** No rule to make target `vendor/htc/common-open/akmd/proprietary/akmd', needed by `out/target/product/passion/system/bin/akmd'. Stop.
Click to expand...
Click to collapse
What am I doing wrong?
Did I forget to fetch or configure something?
Many thx!
Also, maybe I am asking for too much - but it would be really great if someone who already did complete and sucessful build could write a small wiki (or forum?) tutorial how to build Nexus One Cyanogen ROM from scratch starting from empty Linux setup - it would really help lots of people as right now there are several documents with some of them outdated.
update - looks like something went wrong with fetching proprietary files. I re-done it and it is now compiling for more than 30 minutes...
I hope it will complete successfully this time
Ivan Dimkovic said:
update - looks like something went wrong with fetching proprietary files. I re-done it and it is now compiling for more than 30 minutes...
I hope it will complete successfully this time
Click to expand...
Click to collapse
i posted basic instructions on building cm5-source in cm-wiki.
i'm not sure what you plan to do, compile the whole rom (as thats what you do) or just a kernel (sounds like what you want) ?
It succeeded this time!
It looks like something was indeed wrong when I pulled the files from the phone first time. So the wiki info is good
I would like to compile everything actually and to play a bit with compiler options / configurations and also test the undervolting a bit more (lower voltages - for this kernel build is sufficient)

[Q] Complete newbie "hello world" help

Just been following the "hello world" tutorial on android developers, (hopefully i've installed all the right software) But I am getting an error when I choose "run" from eclipse.
The code as copied from the tutorial is;
tv.setText("Hello, Android");
setContentView(tv);
eclipse says "tv cannot be resolved" "java problem" on both lines?
Can anyone tell me where i'm going wrong ?
eclipse version "Eclipse Java EE IDE for Web Developers.
Build id: 20100218-1602"
You must have missed a line out somewhere from the tutorial - compare what you've got against the example again.
The error implies that the compiler doesn't know what "tv" is - it should've been defined and initialised on the previous line:
PHP:
TextView tv = new TextView(this);
I did yes I dont get errors now, but when I choose run it takes a loooong time for the screen to pop up and only displays "ANDROID" with a flashing cursor and not the "hello android" as displayed in the tutorial.
Also the screen shows no other icons at all I thought the screen would look like my galaxy s, maybe I need to set that up somewhere as well ?
Can anyone provide links to easier to understand step by step tutorials ?
Many thanks
The emulator will be booting a full version of the Android OS (assuming you set it up following the instructions in the tutorial) - it's well known to be very slow, and will sit on the boot screen for ages - just wait and eventually you'll see an Android desktop and your app should run. (Have patience - on my netbook it takes well over 10 minutes to boot!)
When you're done, DON'T close the emulator window, just minimize it. This way you won't have to wait all that time again next time you run your app, since the emulator will already been booted.
Also, you could put your phone into USB debugging mode, and run your code on the phone directly, which will be much faster!
(see http://developer.android.com/guide/developing/device.html )

[Q] *Building CM from source on Snow Leopard*

Hello all,
i'm using this guide http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Vision_(Mac) on the cyanogenmod wiki to build for my mt4g. I successfully built it a couple times with no issues, but the last couple days i've been running into a wall at the end of the build. I completely wiped out the working drive and re-init repo and everything. All steps go fine until I make bacon, then near the end of the build I get this
Code:
Target ram disk: out/target/product/glacier/ramdisk.img
target Dex: core-junit
Copying: out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/noproguard.classes.jar
target Prelink: libutils (out/target/product/glacier/symbols/system/lib/libutils.so)
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Location lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x318
Copying: out/target/common/obj/APPS/QuickSearchBox_intermediates/classes.jar
target Prelink: libwpa_client (out/target/product/glacier/symbols/system/lib/libwpa_client.so)
target Non-prelinked: libnetutils (out/target/product/glacier/symbols/system/lib/libnetutils.so)
target Prelink: libhardware (out/target/product/glacier/symbols/system/lib/libhardware.so)
target Prelink: libssl (out/target/product/glacier/symbols/system/lib/libssl.so)
target Prelink: libjpeg (out/target/product/glacier/symbols/system/lib/libjpeg.so)
ASSERTION FAILURE external/elfcopy/elfcopy.c:932: [ranges[i].start >= last_end]
make: *** [out/target/product/glacier/symbols/system/lib/libjpeg.so] Error 1
make: *** Deleting file `out/target/product/glacier/symbols/system/lib/libjpeg.so'
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
make: *** Waiting for unfinished jobs....
MacBook-Pro:android jam$ /CODE]
any ideas? this is driving me nuts! thanks for the guide peeps!
Are you trying to patch in anything from gerrit?
nope
I wish, that would be easier to figure out. Just a straight pull from source.
Unfortuately I dont have an answer for you then. The nightlies are building so it should work.
How did you "clean everything out"?
make clean
mka bacon
i deleted the disk image used for the working dir. and started over. and yeah i tried make clean.
then I'm out of ideas. Sorry man. Hopefully someone else comes along with more knowledge of it.
I tried setting up my SnowLeopard Macbook to compile AOSP and decided to give up. There are simply too many hacks/patches needed to get SnowLeopard to play nicely to compile AOSP. I am not sure about the CM build tree, but I assume CM follows AOSP, so they should be similar in setup.
My suggestion, get Parallel Desktop, install Ubuntu-64, download all the necessary libraries/tools, compile, done...
I wasted 2 days trying to get my SnowLeopard to compile AOSP, then I wised up and used Parallel+Ubuntu, then I was able to compile AOSP in 3 hours, after that, I downloaded MT4G Kernel source from HTC, compiled that in an hour... (BTW, if you decide to use Parallel, I suggest you make the virtual harddisk size to at least 20GB, I made a mistake allocating only 16 GB, but for AOSP+HTC Kernel, I ran out of space, had to use GParted to extend my virtual disk, wasted 1/2 hour there)
AOSP version 2.3 (GingerBread) and beyond requires ubuntu-64 anyways, so this is future proofing anyways...
faux123 said:
I tried setting up my SnowLeopard Macbook to compile AOSP and decided to give up. There are simply too many hacks/patches needed to get SnowLeopard to play nicely to compile AOSP. I am not sure about the CM build tree, but I assume CM follows AOSP, so they should be similar in setup.
My suggestion, get Parallel Desktop, install Ubuntu-64, download all the necessary libraries/tools, compile, done...
I wasted 2 days trying to get my SnowLeopard to compile AOSP, then I wised up and used Parallel+Ubuntu, then I was able to compile AOSP in 3 hours, after that, I downloaded MT4G Kernel source from HTC, compiled that in an hour... (BTW, if you decide to use Parallel, I suggest you make the virtual harddisk size to at least 20GB, I made a mistake allocating only 16 GB, but for AOSP+HTC Kernel, I ran out of space, had to use GParted to extend my virtual disk, wasted 1/2 hour there)
AOSP version 2.3 (GingerBread) and beyond requires ubuntu-64 anyways, so this is future proofing anyways...
Click to expand...
Click to collapse
Thanks for the advice, I've spent a few days myself trying aosp first, then CM. I actually did get a few working roms out of my mac from the cm source until about a week ago. Then i started to get the errors above. It's like they changed something in the source that no longer agrees with the tools or os installed. I'll give the parallel + ubuntu a shot. But i have a quick question for you. Did you actually get a working aosp build for mt4g? Flashed and all features working?
conclusion
Well i gave the parallels desktop a shot and it was super easy to setup,build environment setup fine and repo sync'd .. except i couldn't get adb to list my device. I searched and tried all kinds of rules (i.e. 51.android.rules) and no go. So, I decided to go back to the dual boot option. I tried to get 10.10 installed, but when I try to boot the ubuntu cd from rEFIt menu, i get
1.
2.
Select CD-Rom Boot Option.... or something like that
then I restart into osx
I tried a couple different discs and nothing. So, I went back to 10.4 and all is fine now.
I also kept searching for the rules for glacier and found them here http://wiki.cyanogenmod.com/index.php?title=Udev#MyTouch_4G
With that, I may try VirtualBox in the future, or some other free VM, but for now, I'm working with dual boot and trying to build an AOSP rom. Thanks for the help guys!
Sorry to resurrect an old thread, but for the sake of anyone who finds this thread by searching I thought I'd add that I've developed fix that allows CM7 to be built on OS X 10.6. I've submitted it to the AOSP gerrit: https://review.source.android.com/#change,22597

[Q] error when build ICS defy

This error came up when I try to build the ICS, does anyone have the same problem with me?
Code:
build/core/base_rules.mk:166: *** hardware/cm/audio: MODULE.TARGET.SHARED_LIBRARIES.audio_policy.jordan already defined by device/motorola/jordan/audio_policy. Stop.
I delete "device/motorola/jordan/audio_policy", and it goes on.
Then, another error came out.
Code:
make: *** No rule to make target `out/target/product/jordan/obj/lib/libaudiopolicy.so', needed by `out/target/product/jordan/obj/SHARED_LIBRARIES/audio_policy.jordan_intermediates/LINKED/audio_policy.jordan.so'. Stop.
It seems that "device/motorola/jordan/audio_policy" related to audio_policy.jordan.so, without it this stuff cannot be generated.
Well, nobody try to build this rom?
trying sending out an im to the ics devs, they may help! try asking ep3, quarx and walter. they'll know where to correct you

Need help with project. Getting "unhandled exception java.text.parseexception" error

Need help with project. Getting "unhandled exception java.text.parseexception" error
Hi, in my android studio project, I have been getting an error and I've been trying to resolve it for the last couple hours. Sorry about my links, apparently since I'm new I can't post links yet... So I spaced out my links.
//
The error is: "Unhandled exception:java.text.ParseException"
This error pops up on the following three lines in my code. My full code is located on onedrive at this link: (1drv.ms / 1NatGWH)
Date date1b = format1.parse(endtime1);
Date datenow1 = format1.parse(currenttime1);
//
What I want my app to do:
When I click a button, I want the code to check what time is it and if it is between two times listed. If so, it will then display my next school course that day.
I have a working eclipse version in which it prints what I have next into console. But now I want to make it into an app. The link containing the java file explains pretty well what I want my app to do. It is accessible here at this link: (1drv.ms / 1SBrFki)
Help would much be appreciated. Feel free to ask me questions.
Matthew

Categories

Resources