I decided to give building CM a try again recently and set up a new Ubuntu VM for the task. I'm encountering some problems however. I setup my repo with the new 10.1 branch which I believe is now pulling down 4.2.2. At the end of repo sync, I receive:
Code:
info: A new version of repo is available
object 91f011ab0df9e1aa215e39b424c9ce2614bae50e
type commit
tag v1.12.1
tagger Conley Owens <[email protected]> 1360088708 -0800
repo 1.12.1
gpg: Signature made Tue 05 Feb 2013 01:25:08 PM EST using RSA key ID 338871A4
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.1'
I wasn't sure if this was actually a problem so I proceeded to get-prebuilts and the envsetup script. After that I run "breakfast maguro" but that's where I hit a wall:
Code:
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/maguro/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_maguro". Stop.
Device maguro not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_maguro
Default revision: cm-10.1
Checking branch info
CyanogenMod/android_device_samsung_maguro already exists
Syncing repository to retrieve project.
error: project device/samsung/maguro not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
ls: cannot access device/*/maguro/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_maguro". Stop.
** Don't have a product spec for: 'cm_maguro'
** Do you have the right repo manifest?
At this point I don't have a maguro device folder so I can't proceed to the extract-files script. I don't know if my setup is wrong or if these are temporary problems since the 4.2.2 merge. Is anyone able to build right now, and if so do you know what might be wrong?
Thanks!
I'm having the very same problem. I'm thinking there's just some problems with the 4.2.2 merger.
same problem here
Okay, good to know it's not just me. Any place it should be reported or something? There are 4.2.2 nightlies for our phone so building must be possible, just not downloaded fresh, maybe it's an issue with the Github project.
Please read forum rules before posting
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Ok found it.
cd ~/android/system
cd .repo/repo
git pull -s resolve
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
. build/envsetup.sh
breakfast maguro
zorxd said:
Ok found it.
cd ~/android/system
cd .repo/repo
git pull -s resolve
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
. build/envsetup.sh
breakfast maguro
Click to expand...
Click to collapse
You rock! Worked great. Can I ask how you figured that out, just for future reference?
Thanks for the help!
found it on a german web site
this issue came down from AOSP.
Related
I'm trying to build android from source for the htc ace (desire hd) and I don't know how to use lunch. I'm looking for a config file for this device but I can't find anything. I don't know if I have to use a generic config or adapt one from other similar device. Anyone who compiled for this device could help me?
atimus said:
I'm trying to build android from source for the htc ace (desire hd) and I don't know how to use lunch. I'm looking for a config file for this device but I can't find anything. I don't know if I have to use a generic config or adapt one from other similar device. Anyone who compiled for this device could help me?
Click to expand...
Click to collapse
Try: http://forum.xda-developers.com/showthread.php?t=2533007
Q: How I can build CM11.0 myself?
A: Setup a basic Android build environment
Code:
Code:
mkdir cm11
cd cm11/
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
mkdir -p .repo/local_manifests
wget https://github.com/Mustaavalkosta/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
repo sync
cd vendor/cm/
./get-prebuilts
cd ../../
. build/envsetup.sh
lunch cm_ace-userdebug
mka bacon
Once the build finishes you'll find your goods from out/target/product/ace/ directory.
Click to expand...
Click to collapse
nikt11 said:
Try: http://forum.xda-developers.com/showthread.php?t=2533007
Click to expand...
Click to collapse
Thank you!!
This may be a stupid post. I have tried to search the forum. However, I don't find any solution.
I am new to Andriod, Cm11, and git. I have background on Gcc etc.
I have installed the CM11 rom to my DHD, it works very well. So I am curious on how to build a rom from source by myself.
the ennvironment is set up. I can build the latest Andriod code without problem. BTW, the image seems quite big.
I follow the first post of this thread.
However, i encounted error with "lunch cm_ace-userdebug".
I try several different methods to retrieve DHD relevant files. but no help.
the errors are as following:
lunch cm_ace-userdebug
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/htc/ace/cm.mk]]: "device/htc/common/common.mk" does not exist。 停止。
Device ace not found. Attempting to retrieve device repository from CyanogenMod Github .
Found repository: android_device_htc_ace
Default revision: cm-11.0
Checking branch info
Default revision cm-11.0 not found in android_device_htc_ace. Bailing.
Branches found:
froyo
froyo-stable
gb-release-7.2
gingerbread
gingerbread-release
ics
cm-7.1.0
cm-7.0.3
cm-7.0.2.1
cm-7.0.1
cm-7.0.0
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/htc/ace/cm.mk]]: "device/htc/common/common.mk" does not exist。 停止。
** Don't have a product spec for: 'cm_ace'
** Do you have the right repo manifest?
How can I solve it?
thanks,
fenildf
You may want to post this in a more general development forum. You don't need to be restricted to DHDs; it'll be the same with other phones too.
Hi,
I'm just as new to building android images as you are, but, surprisingly, it worked for me just yesterday. So maybe I can help.
In the messages you posted I see only the officially supported dhd android versions. So, I guess you need to somehow enable the unofficial cm11 first. My guess is, this will do just that, but I'm not sure:
Go to the directory where your hiddden .repo directory is in (where you issued repo init), then issue this commands
Code:
mkdir .repo/local_manifests
wget https://github.com/AceEnablementProject/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
The commands I did are as follows (I had some problems and actually did much more, but I think this is all that's really needed):
Code:
mkdir cm11
cd cm11
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
mkdir .repo/local_manifests
wget https://github.com/AceEnablementProject/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
repo sync
cd vendor/cm/
./get-prebuilts
cd ../../
. build/envsetup.sh
lunch cm_ace-userdebug
make bacon
After that (and a loooong wait) I found this in the out directory:
Code:
out/cyanogenmod/target/product/ace/cm-11-20140505-UNOFFICIAL-ace.zip
Hi,
Using Ubuntu I am following the wiki steps to build CyanogenMod for n7100. repo sync completes, proprietary blobs extract, but breakfast n7100 fails like this:
Code:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/samsung/n7100/cm.mk]]: "vendor/samsung/smdk4412-common/common-vendor.mk" does not exist. Stop.
Device n7100 not found. Attempting to retrieve device repository from CyanogenMod Github.
Found repository: android_device_samsung_n7100
Default revision: cm-11.0
Checking branch info
CyanogenMod/android_device_samsung_n7100 already exists
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_samsung_n7100
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/samsung/n7100/cm.mk]]: "vendor/samsung/smdk4412-common/common-vendor.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_n7100'
** Do you have the right repo manifest?
I noticed that roomservice.xml mentions more repos than just android_device_samsung_n7100. Maybe the sync with android_device_samsung_smdk4412-common is not taking place?
What am I doing wrong here?
many thanks for your help!
KM
[Q] build cm11 error:"device/qcom/msm7x27/msm7x27.mk" does not exist. Stop.
I want build gt-s5660 rom ,get source from ht/tps://github.com/HerroYou/android/tree/cm-11.0
after those cmds:
repo init -u git://github.com/androidarmv6/android.git -b cm-11.0
repo sync
sh vendor/cm/get-prebuilts
source build/envsetup.sh
brunch gio
I got the error:
[email protected]:/works/cyanogenmod/cm11_armv6$ brunch gio
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/gio/cm.mk]]: "device/qcom/msm7x27/msm7x27.mk" does not exist. Stop.
Device gio not found. Attempting to retrieve device repository from androidarmv6 Github (h/ttp://github.com/androidarmv6).
Found repository: android_device_samsung_gio
Default revision: cm-11.0
Checking branch info
androidarmv6/android_device_samsung_gio already exists
Syncing repository to retrieve project.
Fetching project androidarmv6/android_device_samsung_gio
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/gio/cm.mk]]: "device/qcom/msm7x27/msm7x27.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_gio'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Please help me
xyyangkun said:
I want build gt-s5660 rom ,get source from ht/tps://github.com/HerroYou/android/tree/cm-11.0
after those cmds:
repo init -u git://github.com/androidarmv6/android.git -b cm-11.0
repo sync
sh vendor/cm/get-prebuilts
source build/envsetup.sh
brunch gio
I got the error:
[email protected]:/works/cyanogenmod/cm11_armv6$ brunch gio
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/gio/cm.mk]]: "device/qcom/msm7x27/msm7x27.mk" does not exist. Stop.
Device gio not found. Attempting to retrieve device repository from androidarmv6 Github (h/ttp://github.com/androidarmv6).
Found repository: android_device_samsung_gio
Default revision: cm-11.0
Checking branch info
androidarmv6/android_device_samsung_gio already exists
Syncing repository to retrieve project.
Fetching project androidarmv6/android_device_samsung_gio
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/gio/cm.mk]]: "device/qcom/msm7x27/msm7x27.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_gio'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Please help me
Click to expand...
Click to collapse
I commented on github, but again.
After you run "source build/envsetup.sh"
run "breakfast gio"
then "brunch gio"
Research before syncing sources
I've been following along with the instructions on the cyanogenmod wiki on building for M8.
(I'd post the link, but the system won't let me since I'm new)
I'm doing this on Ubuntu 16.04 LTS.
I managed to get all the way to the command: breakfast m8
But here I'm stuck. It's throwing an error, and I can't seem to figure out what to do about it.
I'd very much appreciate a hint. The response from the command is below:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_m8". Stop.
Device m8 not found. Attempting to retrieve device repository from CyanogenMod Github
Found repository: android_device_htc_m8
Default revision: cm-13.0
Checking branch info
Checking if device/htc/m8 is fetched from android_device_htc_m8
CyanogenMod/android_device_htc_m8 already fetched to device/htc/m8
Syncing repository to retrieve project.
sh: 1: repo: not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_m8". Stop.
** Don't have a product spec for: 'cm_m8'
** Do you have the right repo manifest?