Related
In all tutorials I found this lines:
cd ~/android/system/device/htc/dream_sapphire/
./extract-files.sh
But i haven't ANY files in this directory(including this scipt). Can you upload for me all folder? I think about /android/system/device/htc/dream-sapphire/.
Thanks!
The command "extract_files.sh" will extract those files from your phone, but you need to have the phone connected via USB with your PC.
Before trying, you should check whether your adb connection with your phone is working.
Sent from my Gingerbread on Dream using XDA
ADB working for me, If I navigate to platform-tools:
[email protected]:~/sdk/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
But if I am In dream_sapphire folder, terminal show only that extract-files.sh not found:
bash: ./extract-files.sh: No such file or directory
From which sources do you want to build? For ezGingerbread for example the "extract-files.sh" is located in "~android/device/htc/sapphire".
Btw. adb devices should give you a list of connected devices. If that is empty (as you posted) something is not working correctly.
CyanogenMod sources. List of devices is not empty, my phone is present here but I found no need to paste this line.
Sorry, but I'm green in this. I want to learn some about building android. I follow this:
http://wiki.cyanogenmod.com/wiki/HTC_Dream_&_Magic:_Compile_CyanogenMod_(Linux)
But i type
repo init -u git://github.com/CyanogenMod/android.git ics
instead of
repo init -u git://github.com/CyanogenMod/android.git -b froyo-stable
dream/sapphire is not supported by CM7/CM9 and that's the reason you do not have the directory/files you are expecting. If you only want to get the proprietary files, you can also switch to an older release (e.g. CM6) for that project, but nevertheless you need to change several other things, too, before you will get a build. If you are not familiar with building from sources, I suggest you to start with something easier, i.e. CM6 or ezGingerbread.
Or you could run repo init from anddisa's or my git repos. I don't know his from memory but for mine you would run
Code:
repo init -u https://github.com/tvall43/android.git -b ics-ds
AndDiSa's might be a little better right now but I hope to eventually get mine running something close to stable if possible.
The latest version of cm with the dream/sapphire stuff is cm7 (even though they dropped support). Anything past that you'll have to port yourself (like AndDiSa and I) or wait for someone to.
Also, I'm half asleep. I could have (and likely did) post errors that I didn't notice. Google is your friend.
tvall said:
Or you could run repo init from anddisa's or my git repos. I don't know his from memory but for mine you would run
Code:
repo init -u https://github.com/tvall43/android.git -b ics-ds
AndDiSa's might be a little better right now but I hope to eventually get mine running something close to stable if possible.
The latest version of cm with the dream/sapphire stuff is cm7 (even though they dropped support). Anything past that you'll have to port yourself (like AndDiSa and I) or wait for someone to.
Also, I'm half asleep. I could have (and likely did) post errors that I didn't notice. Google is your friend.
Click to expand...
Click to collapse
OK, I just downloaded your repo. But...
Command:
lunch cyanogen_dream_sapphire-eng
Returns:
[email protected]:~/android/system$ . build/envsetup.sh
including device/htc/dream_sapphire/vendorsetup.sh
including vendor/cm/vendorsetup.sh
[email protected]:~/android/system$ lunch cyanogen_dream_sapphire
Invalid lunch combo: cyanogen_dream_sapphire
[email protected]:~/android/system$ lunch cyanogen_dream_sapphire-eng
vendor/htc/dream_sapphire/dream_sapphire-vendor-blobs.mk:46: *** missing separator. Stop.
Device dream_sapphire not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_htc_dream_sapphire
Adding dependency: CyanogenMod/android_device_htc_dream_sapphire -> device/htc/dream_sapphire
Traceback (most recent call last):
File "build/tools/roomservice.py", line 170, in <module>
add_to_manifest([{'repository':repo_name,'target_path':repo_path}])
File "build/tools/roomservice.py", line 121, in add_to_manifest
f = open('.repo/local_manifest.xml', 'w')
IOError: [Errno 2] No such file or directory: '.repo/local_manifest.xml'
vendor/htc/dream_sapphire/dream_sapphire-vendor-blobs.mk:46: *** missing separator. Stop.
** Don't have a product spec for: 'cyanogen_dream_sapphire'
** Do you have the right repo manifest?
And next, command:
[email protected]:~/android/system$ mka bacon
Returns:
make: *** No rule to make target `bacon'. Stop.
How to fix this?
Anybody can't help me?
blaster44 said:
Anybody can't help me?
Click to expand...
Click to collapse
Only CM uses the "make bacon" command. Unless they use the CM repo tool in their repo, it will be unavailable. Same goes for AOSP.
Sent from my HTC PH39100 using Tapatalk 2
HOW TO AUTOMATE YOUR ROM BUILDING PROCESS
... using
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Special thanks to @chasmodo for all his support, as well as his wonderful How-To build CM thread located HERE.
I. Donations and Support...
Feel free to post any question here, as well as provide your own scripts. As far as I'm concerned, there are no stupid questions; you are, however, required to search before posting.
Please do not donate to me, donate to the Testicular Cancer Society (Click Here).
II. Introduction...
This guide will direct you on how to setup your android build environment to automate your builds using Jenkins and various shell/bash scripts. As this was initially drafted, it was targeted towards CyanogenMod 10.2, but I am quite confident it can easily be easily modified to work with anything you choose, including LP builds.
This can be a useful process if you want to setup nightly/weekly builds, or if you just want to have a easy-to-use web interface to run your builds without entering the shell.
This guide assumes you have an active build environment (preferably Ubuntu-based), and general linux knowledge.
III. Initializing your build environment...
You will first have to have your build environment setup, and you should already be able to successfully build CM, AOSP, AOKP, or other variants, before moving forward. Furthermore, you are expected to have simple scripting knowledge, or you will not be able to do this. If you need assistance with setting up an android build environment (which is not the focus of this thread), you can get started by Clicking Here, or by looking at @chasmodo's thread by Clicking Here.
It is important to note that your Jenkins home directory is at "/var/lib/jenkins" (not /home/jenkins). As such, to get your build directory in the proper location, you will login normally to your shell, and "su jenkins" (you may have to use su policy, if you don't know how to do this, you may just want to login as root). Do Not login to the system-jenkins-user shell by changing the jenkins user password (I am referring to the System User named jenkins, not your jenkins web-interface). Once logged in as jenkins, do a "cd ~", create your directory (e.g., "cm10.2"), and repo init there (e.g., in /var/lib/jenkins/cm10.2 directory).
IV. Installing Jenkins and Apache Daemons...
Once your build environment has been initialized, you will have to get Jenkins/Hudson setup and running. You can read more about Jenkins software by Clicking Here.
Further, you will need to install and setup apache web server in order to access the Jenkins web interface. Click Here for more information on apache.
The jenkins install process can easily be setup by following the guide Located Here.
After you have successfully installed Jenkins and apache, you may proceed to setting up your automated builds.
V. Setting Up Jenkins Security...
Be sure to setup a Jenkins user account, or a remote user can get your setup and screw up your machine.
Follow the article here:
https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup
Continued in Post #2
V. Configuring your first build...
.... A. Creating the new build...
Once you have setup your jenkins server (by going to http://localhost:8080, or port 80 if you set it that way), log in with the username/password you configured.
After you have logged in, click "New Job" in the left toolbar.
Screenshot:
Then, enter the "Job name". Please Note to NOT use spaces or slashes in the name, as it causes build issues. If you need a space, use an underscore ("_"). Check the radio-box "Build a free-style software project", and hit "OK".
Screenshot:
Now, continue to the procedure listed directly below (i.e., in section "B", "How to have Jenkins call your local scripts...")
.... B. How to have Jenkins call your local scripts...
As opposed to attempting to have Jenkins' propriety interface try to run your build process directly, it is best to have it call out for your individualized shell/bash scripts.
To do so, under the "Execute Shell" Field in the "Build" section, you will call out your script by entering the following code:
Code:
#!/bin/bash
cd ~/[COLOR="Red"]FOLDER[/COLOR]/
source [COLOR="Red"]SCRIPT_NAME[/COLOR].sh
Screenshot:
Once your code has been input, the next step is to create your script in your build directory. In this instance, the script is called "buildscriptclobber.sh" and the directory is "~/cm10.2" (~ is home). It is important to remember that your home directory is the Jenkins user home directory, which gets installed at /var/lib/jenkins (NOT /home/jenkins).
As above mentioned, you will login normally to your shell, and "su jenkins". Once logged in as jenkins, do a "cd ~/FOLDER" (e.g., "~/cm10.2"). Then, use your favorite text editor (e.g., pico, installed by sudo apt-get install pico), and enter your script.
A good script I wrote will make clobber and repo sync every time. It is as follows:
Code:
#!/bin/bash
cd ~/[COLOR="red"]FOLDER[/COLOR]/
make clobber
cd ~/[COLOR="red"]FOLDER[/COLOR]/
export PATH=~/bin:$PATH
export USE_CCACHE=1
repo sync
vendor/cm/get-prebuilts
source build/envsetup.sh && time brunch [COLOR="red"]DEVICE[/COLOR]
You may notice above that I call out the folder ("cd"), and set the "PATH" multiple times, especially when its already set in your ".bashrc". This is because the script will give errors if you do not do so, because Jenkins won't consistently read your ".bashrc" or other external configurations. It is important to always do this type of thing when shell scripting with Jenkins. The "time" command may be omitted, because Jenkins log will show the total build time throughout, so its partially redundant, but I like it in there.
Once the script has been setup, do not forget to "chmod a+x" or it will not run.
VI. Automating your first build...
WIP SETTING UP H H H TRIGGER
VII. Configuring and automating additional builds...
Follow the same steps as above, just be sure the Cron Triggers are set to not overlap. For Example, if you have setup H H H(0-5) for one, and you know your builds may take up to two hours, then setup H H H(2-7) for the next.
Continued in Post #3
VIII. Scripting your builds in general...
.... A. Use individual shell scripts for each process...
The beauty of having a Jenkins environment is your scripting capabilities. There are many possibilities, and many plugins available within the Jenkins interface. I, however, prefer just executing Shell Scripts, since you will have more control over what you are doing via bash scripting. If you are a bash scripting novice, you can Click Here to view a nice guide.
When scripting, realize that every change you make must be changed in your other scripts. For example, if I use the change filename script below, obviously I will need to modify my upload script to reflect the changed filename. I think of it in a way that "one thing breaks another". This is why its great to have an independent script for every process you do, so that only one file requires modification if changes are made.
.... B. How to set your scripts to run after the initial compile process has completed...
In order to run ANY OTHER PROCESS after the initial build script is complete, you must run another script after build. To do this, you will use the "Add build step" feature to "Execute Shell", located in the "Build" section. As such, for ANY new script you want to run after the build script, you must add another build step. Consequently, every single script below requires a new build script.
Screenshot:
Like above when you setup your initial build script, you will call a script out. This can be done the same way, using:
Code:
#!/bin/bash
cd ~/[COLOR="Red"]FOLDER[/COLOR]/
source [COLOR="Red"]SCRIPT_NAME[/COLOR].sh
Screenshot:
Continued in Post #4
IX. Specific post-build scripts...
.... A. Automating Filename Changes, and/or Moving The Build to a Different Directory Automatically...
This essentially moves the build .zip to the same folder, but renames it to the name you choose. Thus, when it uploads, you don't have to manually rename the ROM Firmware file.
Code:
#!/bin/bash
cd /var/lib/jenkins/[COLOR="red"]FOLDER[/COLOR]/out/target/product/[COLOR="red"]DEVICE[/COLOR]/
mv cm-10*.zip [COLOR="red"]BUILD-NAME[/COLOR].zip
If you want to add the date to the filename, you can add the following string within the filename:
Code:
$(date +%Y%m%d)
You are free to modify the ordering of %Y%m%d as you see fit.
Therefore, if I wanted my build to say "SGT7-DATE-n7000-NIGHTLY.zip", I would use the following as the filename:
Code:
SGT7-[COLOR="Red"]$(date +%Y%m%d)[/COLOR]-n7000-NIGHTLY.zip
As such, you're final code would be:
Code:
#!/bin/bash
cd /var/lib/jenkins/[COLOR="red"]FOLDER[/COLOR]/out/target/product/[COLOR="red"]DEVICE[/COLOR]/
mv cm-10*.zip [COLOR="red"]BUILD-NAME[/COLOR]-$(date +%Y%m%d).zip
Alternatively, if you want to move to a local directory, such as your public ftp folder, you can use the following code instead, adding the date string above if you want:
Code:
#!/bin/bash
cd /var/lib/jenkins/[COLOR="red"]FOLDER[/COLOR]/out/target/product/[COLOR="red"]DEVICE[/COLOR]/
mv cm-10*.zip /[COLOR="red"]PATH_TO_PUB_FTP_FOLDER[/COLOR]/[COLOR="red"]BUILD-NAME[/COLOR].zip
.... B. Automating uploads to "goo.im" or any other FTP/SFTP server...
First, you will have to install yafc in ubuntu. This is done via "sudo apt-get install yafc".
Then, create a script using the following code:
Code:
#!/bin/bash
cd /var/lib/jenkins/[COLOR="Red"]FOLDER[/COLOR]/out/target/product/[COLOR="red"]DEVICE[/COLOR]/
yafc <<**
open ftp://[COLOR="Red"]USER[/COLOR]:[COLOR="red"]PASS[/COLOR]@upload.goo.im:21/
cd public_html/[COLOR="red"]FOLDER[/COLOR]
put -f -r /var/lib/jenkins/[COLOR="red"]FOLDER[/COLOR]/out/target/product/[COLOR="red"]DEVICE[/COLOR]/cm-10*.zip
close
.... C. Automating build.prop modifications...
MARKER
.... D. Automating changelogs...
MARKER
Continued in Post #5
X. Troubleshooting...
Here are some common solutions to your issues.
Reboot your system ("reboot -n") and try again. You may need a daily, or even weekly reboot depending on your RAM, software causing memory leaks, etc. You can setup a CRONJOB (Click Here for more info) to do a reboot daily. If you choose to setup a job in the crontab, be ensure it doesn't conflict with the timing of your Jenkins cron builds.
If you keep getting java out of memory errors, you probably need more RAM.
Other errors may be caused by your CCACHE being set to low. If you continue having issues caused by ccache, even when its high, you may want to install a global ccache in /usr/bin or the like.
Did you remember to set permissions on your scripts ("chmod a+x")
need to reset your username? See this post: http://forum.xda-developers.com/showthread.php?p=51248853
having ota jenkins.zip NOT FOUND ERROR (or no such file or directory)? See this post: http://forum.xda-developers.com/showthread.php?p=48454597; see also this post: http://forum.xda-developers.com/showthread.php?p=55954963
Subscribed!
Sent from my Nexus 4 using Tapatalk 4
MikeyCriggz said:
Subscribed!
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
I have lots of great scripts and stuff I will be posting! just have to juggle my real job with throwing in some time every day to build this up...
Well done, mate. This is something that hasn't been covered so far methinks. :good:
chasmodo said:
Well done, mate. This is something that hasn't been covered so far methinks. :good:
Click to expand...
Click to collapse
Thanks buddy. I wanted to PM you a question, but you don't accept PMs...
I'll G+ you later on.
I have become your slave
Very good
#KitKat - Having one right now.
This is what you call, "Taking it to next level"
:thumbup:
Sent from Asylum HQ
Absolutely awesome! I'm subscribed this fred, man!
Sent from my N7000 using cm10.2-Asyluminator by chasmodo
with my new root - 16GB RAM - everything works like it should thread subscribed!
is there any way to make the build faster? yes, using ccache.. but are there some more ways to get everything out of the box ?
dschense said:
with my new root - 16GB RAM - everything works like it should thread subscribed!
is there any way to make the build faster? yes, using ccache.. but are there some more ways to get everything out of the box ?
Click to expand...
Click to collapse
What type of hard drive do you have?
How long do your Jenkins builds take to run?
The first run always fails (flaw in Jenkins) I need to add that to the guide.
The second run always takes extra long
The third run should be quicker...
My builds take about 30-45 minutes including repo sync everything
If you have a Solid State hard drive you can have builds going much quicker....
Okay.. I have tried many ways of setting up environment with Jenkins for compiling for paranoid android. But I had no luck at all..
I am running everything on a Ubuntu 12.04 headless server.
I did everything for setting up environment with installing nessesary apps and stuff with user who has sudo rights.
Than I installed Jenkins and logged in to the Jenkins user with sudo su und from root to Jenkins with su Jenkins without pw.
Home of Jenkins is var/lib/jenkins.
I downloaded android sdk to Jenkins home and installed sdk over x11 ssh connection in var/lib/jenkins/android-sdk.
Installed java jdk 6u45 to opt/java/64/java installation
Jdk path is set in Jenkins settings for default.
Logged in to Jenkins Web. Setup security with new user, created freestyle project und created workings pace. Repo init to this directory and sync everything.
In the freestyle project shell with Repo sync command and. /rom-build.sh i9300 clean
#!/bin/bash
cd ~/
export PATH=~/bin:$PATH
export USE_CCACHE=1
cd ~/workspace/pa43-legacy-modded/
repo sync -j16
./rom-build.sh i9300 clean
Build is syncing and building.. But I get Damn error all the time..
Do I have to change permissions or is the setup of my environment not the right way?
Hope anybody can help me...
Kaaaaaaaaatsching... Tapatalked!
@dschense
I'm confused as to what your Jenkins shell command is...
Also are you calling another script within a script? Or do you have two separate Jenkins execute shells?
Does that question make sense?
Also if you went into that particular build directory logged in via su jenkins, can you compile it manually without error?
your setup should look like this:
is that what you have?
You should Not be calling another script from inside your jenkins script. that will cause issues. you need to do them incrementally in chronological order and do a new execute shell for each script.
Also the "./" command won't work inside a script, or in a jenkins command
so your "./rom-build.sh i9300 clean" should be a whole new execute shell
and instead of "./" you need to use the "source" command like I have above
Also can you post the link of your error? I know you PM'd Me maybe u can paste that here
Sent from my GT-N7000 using Tapatalk 2
I think my biggest problem is how I can do a right shell script for building. If I build ParanoidAndroid from source manually I use the command. /rom-build.sh i9300... But I don't know exactly what commands to use for just using the shell window in Jenkins without using the script by ParanoidAndroid.. Any help?
Kaaaaaaaaatsching.... Tapatalked!
dschense said:
I think my biggest problem is how I can do a right shell script for building. If I build ParanoidAndroid from source manually I use the command. /rom-build.sh i9300... But I don't know exactly what commands to use for just using the shell window in Jenkins without using the script by ParanoidAndroid.. Any help?
Kaaaaaaaaatsching.... Tapatalked!
Click to expand...
Click to collapse
I'm trying to help but you don't respond to my questions.
Can you (1) post the PA build script and (2) post exactly what is in your execute shell
Sent from my GT-N7000 using Tapatalk 2
I am at work atm.. I will post everything when I have a little more time.. Next week I have much free time to use for setting up everything at all.. But maybe I can post some things like the build script tomorrow after work.
BTW. Big big the for helping me!
EDIT:
This is the rom-build.sj script:
http://pastebin.com/UzFFKqYM
EDIT2:
Now everything is clean.. i fetched my repo stuff and finished syncing.
Job is also clean.. any help for how to do next ?
Kaaaaaaaaatsching... Tapatalked!
Hi
So I went for final build command->
Code:
mka bacon -j8
(my virtual machine is 4 cored).
It gives following output->
http://pastebin.com/CcNXpbSR
But there is no build file (that .zip file) in out/target/product/DeviceName/
Any help please.
PS->
I used these commands->
Code:
phablet-dev-bootstrap [target_directory]
repo sync -j3
. build/envsetup.sh
lunch cm_DeviceCodename-userdebug
mka bacon -j8
I basically didn't see any errors in outputs except "fatal: Invalid git file format: ...repo/repo/.git/clone.bundle" but thats network problem. Right? And btw the sync went fine after that. Even when I ran repo sync again (without deleting repo folder), it successfully fetched everything from existing files. There was no error then.
I also did run make clean command before building it, but still.....
Please help.
Im trying to sync cm12's source code fro git hub
im using virtualbox on host windows 8.1
the virtual machine is ubuntu 14.xx
this porbably the 20th time i did a
Code:
repo sync
it always used to get stuck (it got interupted one way or another :c )
anyways ...later I finally made it till here
HTML:
Fetching projects: 100% (546/546), done.
Traceback (most recent call last):
File "/home/bass_face/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/bass_face/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/bass_face/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/bass_face/.repo/repo/subcmds/sync.py", line 681, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/bass_face/.repo/repo/project.py", line 1230, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/bass_face/.repo/repo/project.py", line 2309, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/bass_face/.repo/repo/project.py", line 2503, in rev_list
p.stderr))
error.GitError: CyanogenMod/android rev-list ('^ddc4820db2658b6779caf9946e787098d6007967', 'HEAD', '--'): fatal: bad object HEAD
and i got this error can someone please guide me...and i did search for many possible solutions...nothing seems to be related to this porblem or is left unanswered, please help or atleast direct me to a proper solution
many thanks ^_^
Bass_Face said:
Im trying to sync cm12's source code fro git hub
im using virtualbox on host windows 8.1
the virtual machine is ubuntu 14.xx
this porbably the 20th time i did a
Code:
repo sync
it always used to get stuck (it got interupted one way or another :c )
anyways ...later I finally made it till here
HTML:
Fetching projects: 100% (546/546), done.
Traceback (most recent call last):
File "/home/bass_face/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/bass_face/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/bass_face/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/bass_face/.repo/repo/subcmds/sync.py", line 681, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/bass_face/.repo/repo/project.py", line 1230, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/bass_face/.repo/repo/project.py", line 2309, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/bass_face/.repo/repo/project.py", line 2503, in rev_list
p.stderr))
error.GitError: CyanogenMod/android rev-list ('^ddc4820db2658b6779caf9946e787098d6007967', 'HEAD', '--'): fatal: bad object HEAD
and i got this error can someone please guide me...and i did search for many possible solutions...nothing seems to be related to this porblem or is left unanswered, please help or atleast direct me to a proper solution
many thanks ^_^
Click to expand...
Click to collapse
Did You try This Command
repo sync -f
Then find out whats the issue will causing
repo sync -l
mohamed786 said:
Did You try This Command
repo sync -f
Then find out whats the issue will causing
repo sync -l
Click to expand...
Click to collapse
yes i did try repo synnc -f and i even tried repo sync -f -j with various different values like 1,2,4,16,32
all with the same results...i even tried doing a smart sync i face this error
Code:
error: cannot smart sync: no manifest server defined in manifest
Bass_Face said:
yes i did try repo synnc -f and i even tried repo sync -f -j with various different values like 1,2,4,16,32
all with the same results...i even tried doing a smart sync i face this error
Code:
error: cannot smart sync: no manifest server defined in manifest
Click to expand...
Click to collapse
Just use this command repo sync -l to findout the issue
mohamed786 said:
Just use this command repo sync -l to findout the issue
Click to expand...
Click to collapse
I formatted my virtual HDD and set up everything from scratch following this guide -
https://github.com/PAC-man/android_vendor_pac/blob/pac-5.1/docs/PrepareForBuildLinux.md
As this was the official one run into some problem but I guess I solved it is running fine now.. But please keep an eye on this thread just in case if u could help me get through a problem.
Thanks a ton for replying
Will report the outcomes.
Bass_Face said:
I formatted my virtual HDD and set up everything from scratch following this guide -
https://github.com/PAC-man/android_vendor_pac/blob/pac-5.1/docs/PrepareForBuildLinux.md
As this was the official one run into some problem but I guess I solved it is running fine now.. But please keep an eye on this thread just in case if u could help me get through a problem.
Thanks a ton for replying
Will report the outcomes.
Click to expand...
Click to collapse
Most helpful commands during repo syncing
repo sync -j1 (-j# no of jobs )
repo sync -l (to find issues)
repo sync -c -d -j8
Dont let me post thanks on thread let hit thanks button for all in xda
mohamed786 said:
Most helpful commands during repo syncing
repo sync -j1 (-j# no of jobs )
repo sync -l (to find issues)
repo sync -c -d -j8
Dont let me post thanks on thread let hit thanks button for all in xda
Click to expand...
Click to collapse
this time many things synced properly but
HTML:
Syncing work tree: 61% (310/507) error: in `sync -f`: revision refs/heads/pac-5.1 in android_frameworks_base not found
Bass_Face said:
this time many things synced properly but
HTML:
Syncing work tree: 61% (310/507) error: in `sync -f`: revision refs/heads/pac-5.1 in android_frameworks_base not found
Click to expand...
Click to collapse
Ok.. use this command repo sync -j1 and leave for 6 to 8 hours base frame work base having lots of Gb to download
so be patient.....
Download time will depends on your internet connection.
Oki...and
1. Is there any ways to know when the downloads complete.. I mean a command that will check if everything is in place
2. Will files already downloaded delete itself and redownload.?
mohamed786 said:
Ok.. use this command repo sync -j1 and leave for 6 to 8 hours base frame work base having lots of Gb to download
so be patient.....
Download time will depends on your internet connection.
Click to expand...
Click to collapse
now this happened
Code:
Fetching project android_frameworks_base
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
edit : notice that its just stuck there.? i mean the username doesnt show up (the $ doesnt show up)
edit 2 : i get this at the end then
Checking out files: 100% (3190/3190), done.
Checking out files: 100% (4197/4197), done.
Checking out files: 100% (244/244), done.
Checking out files: 100% (924/924), done.ng out files: 8% (81/924)
Checking out files: 100% (72151/72151), done.
Checking out files: 100% (35/35), done.king out files: 42% (15/35)
Checking out files: 100% (1021/1021), done.
Checking out files: 100% (2459/2459), done.
Syncing work tree: 100% (507/507), done.
[email protected]:~/pac-rom$
am i done.? *_* is this the end.?
Bass_Face said:
now this happened
Code:
Fetching project android_frameworks_base
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
edit : notice that its just stuck there.? i mean the username doesnt show up (the $ doesnt show up)
edit 2 : i get this at the end then
Checking out files: 100% (3190/3190), done.
Checking out files: 100% (4197/4197), done.
Checking out files: 100% (244/244), done.
Checking out files: 100% (924/924), done.ng out files: 8% (81/924)
Checking out files: 100% (72151/72151), done.
Checking out files: 100% (35/35), done.king out files: 42% (15/35)
Checking out files: 100% (1021/1021), done.
Checking out files: 100% (2459/2459), done.
Syncing work tree: 100% (507/507), done.
[email protected]:~/pac-rom$
am i done.? *_* is this the end.?
Click to expand...
Click to collapse
cool
You have complete the source code download
wohoooo
mohamed786 said:
cool
You have complete the source code download
Click to expand...
Click to collapse
Thanks a ton for helping me out will never forget and...
for future reference (cause im not a irresponsible person who leaves a thread after finding the soltuion)
heres what i did:
for anyone whos setting up ubuntu and building lollipop just follow this guide, this is the most basic and mos efficient, you dont have to download a **** load of software if youre running the lates ubuntu version (except for the ones mentioned in the guide) -
HTML:
https://github.com/PAC-man/android_vendor_pac/blob/pac-5.1/docs/PrepareForBuildLinux.md
and most importantely and essential thing to do if youre running ubuntu/mac os x on a virtual box DISABLE ALL THE ANTIVIRUSES,FIREWALLS,ANTIMALWARE SOFTWARES (esspecially the ones dealing with netowrking
and if youve already set up everything and still having errors i suggest updating all and every packages essential [java,python,android sdk,android tools (download all the tools,extras,and the files for the rom your building (version) ]
if youre still having porplems go to the directory where the sources are being downloaded, hit ctrl+h (ubuntu-shows hidden files)
delete everything except .repo except .repo (orelse you will have to redownload all the sources) and initiate repo sync again
if it still doesnt work i suggest formatting everything and starting from scratch or atleast the sources or research till your tired of doing it
and never forget disable firewall or such things they were the culprits in my experience
i almost downloaded 70gb+ data in this process but learnt alot
the thread will most likely be closed now
Bass_Face said:
Thanks a ton for helping me out will never forget and...
for future reference (cause im not a irresponsible person who leaves a thread after finding the soltuion)
heres what i did:
for anyone whos setting up ubuntu and building lollipop just follow this guide, this is the most basic and mos efficient, you dont have to download a **** load of software if youre running the lates ubuntu version (except for the ones mentioned in the guide) -
HTML:
https://github.com/PAC-man/android_vendor_pac/blob/pac-5.1/docs/PrepareForBuildLinux.md
and most importantely and essential thing to do if youre running ubuntu/mac os x on a virtual box DISABLE ALL THE ANTIVIRUSES,FIREWALLS,ANTIMALWARE SOFTWARES (esspecially the ones dealing with netowrking
and if youve already set up everything and still having errors i suggest updating all and every packages essential [java,python,android sdk,android tools (download all the tools,extras,and the files for the rom your building (version) ]
if youre still having porplems go to the directory where the sources are being downloaded, hit ctrl+h (ubuntu-shows hidden files)
delete everything except .repo except .repo (orelse you will have to redownload all the sources) and initiate repo sync again
if it still doesnt work i suggest formatting everything and starting from scratch or atleast the sources or research till your tired of doing it
and never forget disable firewall or such things they were the culprits in my experience
i almost downloaded 70gb+ data in this process but learnt alot
the thread will most likely be closed now
Click to expand...
Click to collapse
MY pleasure
Happy Building In Advance
Thread closed at OP's request.
Hi
I am trying to build Android on MAC OS X Yosemite(v10.10.1) machine.I have installed all the requirements as specified in source.android.com for setting up a MAC build environment(JDK,Python,Git etc.)
I have created a case sensitive file system in MAC and downloaded AOSP Master Branch to the working directory.
using these commands
repo init -u <link>
repo sync
Now to build this I've set up the environment using
$ . build/envsetup.sh
selected a target using
$ lunch aosp_arm-eng
Now when trying to make the Master branch in MAC build environment using 'make -B' the system hangs and restarts ( after about 30 minutes ). I have also tried 'make -B -j4' hoping to speed things up.
the Make process hangs at this step
minibp out/soong/.bootstrap/primary.ninja.in
Am i missing anything here?
Can anyone please guide me to build my Android in MAC environment?I am new to all these and any help will be much appreciated.