Compiling PA for jflteatt - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

hey guys,
trying to compile PA for jflteatt and running into the following errors: here's a pastebin of my entire terminal output.
if anyone knows what's going on with this ...
PLEASE give me a point in the right direction here..
i've tried replacing all device specific repos with CyanogenMod ones and Ayysir's ones, and i'm still running into build errors..
this build was started after doing a make clobber, sudo rm -rf out, and a repo sync.. i have not touched the manifest.xml or roomservice.xml (except to change the ParanoidAndroid/android_devices_samsung_jflteatt to Ayysir/android_devices_samsung_jflteatt) so it actually gets the device files.
Here's a pastebin of my entire terminal output after ./rom-build.sh jflteatt
http://pastebin.com/QKQtW06b

Related

[Q] Help building CM7

I had my system running fine building cm7 for encore, and ezgingerbread for g1 no problem. Then the problem with kernel.org came up. For some dumb reason I decided to run this command from android/system/ rm -rf `ls -a | grep -v "^\." ` That command comes from the ezgingerbread compile instructions and is said to clear the build tree. I've used it for ezgb before without problems. However after running it from android/system/ there is nothing left in the directory. I tried to go thru the settup to compile instructions from the beginging. Nothing happens when i try to repo sync or do anything associated with command repo. Please help. thanx!!!

[GUIDE] How to build CM10.2 for the HTC One with OS X 10.8.X

This is a guide to build CyanogenMOD 10.2 (Android 4.3) for the HTC One. This guide is for OS X Mountain Lion (10.8.X).
[size=+1]Pre Requirements:[/size]
1) go to App Store on your OS X and Download Xcode 4. Once that is installed, open Xcode and go to preferences. There you find a tab “DOWNLOADS”, open it and there you can find “Command line tools” and next to it click INSTALL. It will take a few minutes to download and install
2) Make sure you have the android-sdk downloaded and setup adb and fastboot, so they work. It is recommended to place the android-sdk to /usr/local/
[size=+1]Initializing the build environment[/size]
First we need to set up our OS X to be able to build Android. This needs some extra things compared to for example, building in Linux, but the main stuff is pretty much the same. So let’s get started then, shall we?
Open up Terminal and type
Code:
java
If you don’t have java installed you will get a prompt to install it.
Next we will install homebrew (you can also use macports if you like)
Code:
ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
Now make sure android-sdk and homebrew are in $PATH
Code:
touch ~/.bash_profile && echo "PATH=/usr/local/bin:/usr/local/sbin:$PATH:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools" >> ~/.bash_profile
I also recommend to add this edit to the .bash_profile file:
Code:
nano –w ~/.bash_profile
Code:
export BUILD_MAC_SDK_EXPERIMENTAL=1
Now run this and see if you need to update anything.
Code:
brew doctor
If you do (and you probably will once a day) type:
Code:
brew update
Now we need to get our dev packages
Code:
brew install git coreutils findutils gnu-sed gnupg pngcrush repo
Once that is done, run
Code:
brew outdated
if it shows anything, run
Code:
brew upgrade
Now run this the correct a few symlinks [Not sure if these are needed anymore]:
Code:
ln -s /usr/local/bin/gfind /usr/local/bin/find && ln -s /usr/local/bin/gsed /usr/local/bin/sed
Now to create our case sensitive image for our CM work [NOTE: the 60g can be changed to anything. It only takes up what it needs but I used 60GB]:
Code:
hdiutil create -type SPARSE -fs "Case-sensitive Journaled HFS+" -size 60g -volname "android" -attach ~/Desktop/Android
Now to create our working directory
Code:
cd /Volumes/Android && mkdir cm10.2 && cd cm10.2
[size=+1]Getting the source[/size]
Now to initialize the git and to download it
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Download the sources:
Code:
repo sync
Wait until it is finished. It will take a long time, depending on your internet connection.
[size=+1]Obtain the device build files and proprietary files:[/size]
To do this we will use CyanogenMods "tool" called roomservice. Roomservice is replacing the old local_manifest.xml file. Just run the code below to create the file directly into the folder.
Code:
nano -w /Volumes/android/cm10.2/.repo/local_manifests/roomservice.xml
Paste the following lines into the file:
Code:
<manifest>
<project name="TheMuppets/proprietary_vendor_htc.git" path="vendor/htc" remote="github" revision="cm-10.2"/>
</manifest>
It seems that nowadays you only need to have the TheMuppets repo there, the roomservice process takes care of the rest and downloads the needed mako bits automatically. And actually it doesn't matter what you name the xml file under the local_manifests directory. The process loads every xml file from there in a alphabetical order. If you still have that local_manifest.xml file in your .repo directory, i suggest you remove that, because at that case that file will be read first and after that all the other from the local_manifests folder
Save the file. And rerun the code:
Code:
repo sync
Download the necessary pre-builts:
Code:
/Volumes/android/cm10.2/vendor/cm/get-prebuilts
That is all. The sources are now ready.
[size=+1]Building CyanogenMOD[/size]
If you build now, you're probably gonna get kernel build errors regarding the missing elf.h header (this error might be device specific). Fortunately, we already have this file downloaded, so we only need to copy it to /usr/local/include:
Code:
cp /Volumes/android/cm10.2/external/elfutils/libelf/elf.h /usr/local/include
FINALLY, we are ready to build:
Code:
cd /Volumes/android/cm10.2 && source build/envsetup.sh && brunch m7ul
The upper command will start the build for the international version for the HTC One (m7ul). Just change the m7ul part to the right codename (check it from f.ex www.get.cm webpage).
Then we just let the Mac do the rest. Remember that it will take a while to do the build, and meantime you Macs fans will scream for mercy while CM punishes your system ☺
After the build is finished successfully you can find your newly created flashable zip by typing:
Code:
cd $out
Look for .zip file with a tag UNOFFICIAL
Happy building!
donk
I just might give this a try. Thanks for the tutorial!
Sent from my One using Tapatalk 4
inffy said:
Hey there!
Only Thing that comes to mind is that you forgot to get the prebuilts. Or you flashed incompatible kernel
Click to expand...
Click to collapse
Not that I'm aware of, but I must've messed something up. I nuked it all and started over.
It works fine now (and more importantly I got myself a new "theme aware" aapt that doesn't think that drawable-xxhdpi is an invalid folder name )
Thanks again for a nice guide.
i can add packages of apk github
help
thanks
packhex said:
i can add packages of apk github
help
thanks
Click to expand...
Click to collapse
What do you mean, sry
Strange error
I get this error when I try to save the manifests xml file.
[ Error writing /Volumes/android/cm10.2/.repo/local_manifests/roomservice.xml: ]
Please help me figure this out...
Okay, I figured I hade the wrong directory..
now when I try to brunch, I get this error:
Don't have a product spec for: 'cm_m7ul'
Do you have the right repo manifest?
Please help!

[Q] Building a CM10.2 ROM for A500 From Source :)

Hello Everyone, I am working on building my own ROM from the Cyanogen Mod Source code. First I Set up my environment in VMWare Workstation 9. I set up Linux Mint Mate AMD64, then I added the Java repository, and installed all the needed build tools following the guides I found here (Thanks)
once I had my environment I set up repo:
in a terminal as root user#
Code:
mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~/bin/repo
chmod a+x ~/bin/repo
then added ~/bin to my path
Code:
export PATH=${PATH}:~/bin
next I added a directory for the source files
Code:
mkdir -p ~/A500-CM10.2-Source
Now I initialized repo.
Code:
repo init -u git://github.com/PlayOSS-Dev/android.git -b cm-10.2
then downloaded the source.
Code:
repo sync
Once the source tree was finished synchronizing I grabbed the prebuilt apps
Code:
cd vendor/cm
./get-prebuilts
cd ../..
then I tried to set up my device specific code:
Code:
. build/envsetup.sh
Now is where my questions and issues start. I expected something like android_device_acer_a500, or acer_a500/vendorsetup.sh
or something like that, I am not 100% sure, I am sort of a noobie to this, but I do have some know how with linux, and general coding, etc...
any how the reason I used the PlayOSS git source instead of CyanogenMod when I initialized repo was so I would get device specific files for my a500. I entered
Code:
repo init -u git://github.com/PlayOSS-Dev/android.git -b cm-10.2
instead of
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
However, when I ran
Code:
breakfast acer_a500
I get the error device not found in manifest..... I set everything up very carefully and followed the guides very closely, I did end up using LinuxMint 15 for amd64 instead of ubuntu 13.04, and found that to work very well, I tried out the ubuntu and it did not run as well in VMWare, but LinuxMint works great and I havent got any errors, all the build tools installed, and Java, etc...
Any way to get to the point, where am I going wrong? I think I have the right source, what should I do? I would truly appreciate any help you have fore me. I would really like to compile and build my own Unoficial CM10.2 ROM for my A500. If you need any of the information from me please let me know. I have currently suspended my VM so everything is exactly where I left off right when I got the error about not finding any reference to the A500 in the repo manifest.
And again thanks to all who have helped and contributed so much for us on this site. I have learned a lot here and I am really enjoying all the testing and development I am experiencing in android I am also working on trying to get a usb x86 android 4.3 os going, hehehe I have it up and running, but it is slow and buggy so far, I havent ran the root script yet, but I will prb do that later, Right now I need to figure out how to get my source to compile for the A500.
So I will do some more hunting and I look forward to hearing from someone that can help me on this project.
Thank you
- Kaiji
OK I think I see what I forgot, lol....
I just need to figure out the locations for the source repos of my device, and then I believe it goes something like this:
Code:
git clone git://github.com/PlayOSS/android_device_acer_a500.git -b cm10.2 device/acer/a500
git clone git://github.com/PlayOSS/vendor_acer_a500.git -b jellybean4.3 vendor/acer/a500
git clone git://github.com/PlayOSS/kernel_acer_a500.git -b jellybean4.3 kernel/acer/a500
And then I can run
Code:
. build/envsetup.sh
And after that I believe there is a shell script to extract device specific files from my tab, then breakfast, lunch, and brunch
Unoficial-A500_CM10.2-JB4.3 Development ROM to tweak, and of course I still have to work on building a custom tweaked Kernel too
But any how I think its bedtime for me for tonite, I think I am closer and I do think I got the answers I needed for now, and 2morow I will start compiling....
Happy testing, and I still would like to get some input from anyone who has some experience building ROMS, and especially if you have built one for my device
Thanks again, and good nite, see you tomorrow.
- Kaiji

extract-files.sh permission denied

HI,
This is the first time I am building android from source. I have been following the cyanogen wiki guide and all appears to have gone well until I got to running extract-files.sh. It starts off ok but then gives me what is shown in the screen shot below. I have tried running it with sudo but it makes no difference.
Hi,
Im guessing your ran some initialisation of environment with root as permissions...
try doing a
Code:
sudo su
cd sourcedir/device/vendor/devicename/
./extract-files.sh
It should work. If you're extracting from a folder
Code:
./extract-files.sh path_to_folder
If it still doesnt work delete all the folders in the sourcedir except ".repo". then,
Code:
repo sync
or
repo sync -l #Syncs from local directory doesnt use internet

Building CM12

I am attempting to build CM and have been setting everything up following the basic build guides on the wiki.
I have already synced with the Repo using the following command.
Code:
Repo sync -c
I did this becuase I not only what to save space but plan on only building CM12. Now on the next part of the guide the step reads as so; “Get prebuilt apps (CM11 and below)”
During this step it asks you to change directories which I did. Then it saysy to enter the following command.
Code:
$ ./get-prebuilts
However this yeilds
Code:
bash: ./get-prebuilts: No such file or directory
Why is this happening?
Is it ok because I only synced the repo with the -c flag or should this never happen?
How can I fix it? Searching through the forums shows me nothing other then files may be missing and most of those problems are because they failed to sync with the repo. I did sync and it completed.
How should I proceed?

Categories

Resources