Hey all!
Trying to build my first rom using AOKP as source. I got everything setup correctly (i think so atleast), but after syncing the repo I keep getting an error.
When I try to lunch, breakfast, or brunch it keeps giving me the error below:
Code:
Which would you like? [aosp_arm-eng] 21
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[vendor/aokp/products/find7.mk]]: "device/oppo/find7/full_find7.mk" does not exist. Stop.
** Don't have a product spec for: 'aokp_find7'
** Do you have the right repo manifest?
Any idea? I know it's because /oppo/find7/ files aren't in the device folder, but how do I get them there? I have searched and tried multiple things and am not having any luck. Any help is appreciated!
Related
So while trying to compile an Atrix rom from source after typing:
". build/envsetup.sh && brunch olympus"
I get an error:
. build/envsetup.sh && brunch olympus
including device/motorola/olympus/vendorsetup.sh
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
Device olympus not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_olympus
Duplicate device 'CyanogenMod/android_device_motorola_olympus' found in local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_olympus'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
I've tried "breakfast" to no avail. I've used multiple guides in trying to do this and always the same outcome... If it helps you can assume I've ran all the same steps (but for the Atrix of course) as in this guide: http://forum.xda-developers.com/showthread.php?t=1188298
Disclaimer: I don't know a ton about this stuff yet either. I have yet to execute a successful build for the Atrix.
Have you looked at http://wiki.cyanogenmod.com/wiki/Motorola_Atrix_4G:_Compile_CyanogenMod_(Linux) and http://forum.xda-developers.com/showthread.php?t=1442842 ? Are you trying to build CM7 or CM9? If it's CM9 then I don't think the Atrix specific bits are in the CM github. You'll have to overlay joker or turl's github on top of it.
Try this
Davidrd91 said:
So while trying to compile an Atrix rom from source after typing:
". build/envsetup.sh && brunch olympus"
I get an error:
. build/envsetup.sh && brunch olympus
including device/motorola/olympus/vendorsetup.sh
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
Device olympus not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_olympus
Duplicate device 'CyanogenMod/android_device_motorola_olympus' found in local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/olympus/cm.mk]]: "device/*/olympus/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_olympus'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
I've tried "breakfast" to no avail. I've used multiple guides in trying to do this and always the same outcome... If it helps you can assume I've ran all the same steps (but for the Atrix of course) as in this guide: http://forum.xda-developers.com/showthread.php?t=1188298
Click to expand...
Click to collapse
From your device tree I'm assuming you're trying to build CM9.
Try using the ADT repo instead of the CyanogenMod one. The one you're using does not have a cm.mk file, which is what I think is giving you your error. Can't make something if the instructions aren't there.
Compare the contents of the CM one to the ADT one and you'll see there's a lot of stuff missing.
Also, you may want to try checking out the building CM9 from source link lautern posted above. You'll most likely get better feedback / more experienced eyes to help you out.
Thanks guys I'll look into both. And yes it is CM9 I'm trying to compile, I've been using Jokersax's repo and the CM ics branch to compile but i got a little confused between the device files and proprietary. I've started from scratch to make sure everything is fresh and hopefully this time all will go well.
I'll post again when this is all done syncing and I test what I've compiled =]
This time it wouldn't find the "modules". By this I'm assuming it meant the Wi-Fi modules so I tried to compile a kernel. Which failed as well. I don't have the cmd prompt logs to post but I just wanted to ask if you guys know of any guides specific for compiling Cm9 for an Atrix? I'm assuming that its a bit more difficult because the Atrix doesn't come with ics.
Or any guides on how to do so using Jokersax/turls repos?
Thanks in advance everyone
Sent from my MB860
Davidrd91 said:
This time it wouldn't find the "modules". By this I'm assuming it meant the Wi-Fi modules so I tried to compile a kernel. Which failed as well. I don't have the cmd prompt logs to post but I just wanted to ask if you guys know of any guides specific for compiling Cm9 for an Atrix? I'm assuming that its a bit more difficult because the Atrix doesn't come with ics.
Or any guides on how to do so using Jokersax/turls repos?
Thanks in advance everyone
Sent from my MB860
Click to expand...
Click to collapse
See previous suggestion:
lauterm said:
Disclaimer: I don't know a ton about this stuff yet either. I have yet to execute a successful build for the Atrix.
Have you looked at http://wiki.cyanogenmod.com/wiki/Motorola_Atrix_4G:_Compile_CyanogenMod_(Linux) and http://forum.xda-developers.com/showthread.php?t=1442842 ? Are you trying to build CM7 or CM9? If it's CM9 then I don't think the Atrix specific bits are in the CM github. You'll have to overlay joker or turl's github on top of it.
Click to expand...
Click to collapse
Building CM9
Building CM7 (linked in above quote)
Read both threads. The CM7 one will probably be of more help to you (it has more troubleshooting discussion). Each has links to other useful guides.
So I've read through both posts several times, and now that I have a new laptop its around the 6th time (not exaggerating) that I set up Ubuntu and the "build enviroment" from scratch.
This time though my problem seems to be with java >_<...
build/core/config.mk:269: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
Device olympus not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_olympus
Duplicate device 'CyanogenMod/android_device_motorola_olympus' found in local_manifest.xml.
build/core/config.mk:269: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
** Don't have a product spec for: 'generic_olympus'
** Do you have the right repo manifest?
I have the correct JDK installed (sun not openjdk) version 1.6.0_31, and looking through the folders I can find the tools.jar file in the directory, I've even tried to point it out by putting:
# Variable ANDROID_JAVA_HOME
ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31/lib
export ANDROID_JAVA_HOME
into my .bashrc. Also tried changing the ANDROID_JAVA_HOME variable to the HOST_JAVA_TOOLS_JAR variable which seems to be what the build/core/config.mk file cant find.... Yet still no hope ... as of now Im not even worried about the "Device Olympus not found" error as I've had it before. Dont really know how I fixed it but atleast I know I can lol...
Any help would be greatly appreciated, thanks =]
Also I have made sure to update the java alternatives and java -version returns
java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
Which to my knowledge is correct?
Ok so I fixed the Java problem, and got another Java problem. I'll post all the fixes I find in case others need help with errors. If you know some C programming (which I dont but was
linked to in one of the threads you guys sent me to ) most errors will have
"build/core/config.mk:269"
The number at the end corresponds to the line 269 in the config.mk file found in build/core directory in your source folder. Going to that line I saw that it ran a script:
"find-jdk-tools-jar.sh"
After doing a search for it I saw that the script in turn looked for the tools.jar file using the variable ANDROID_JAVA_HOME.
"$ANDROID_JAVA_HOME/lib/tools.jar"
So I added this at the end of my ~/.bashrc
"# Variable ANDROID_JAVA_HOME
ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31
export ANDROID_JAVA_HOME "
If you look at my last post you'll see I added "/lib" to the end of "ANDROID_JAVA_HOME=..." so the script was looking for:
"ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31/lib/lib/tools.jar"
^ 2 /libs... that folder doesn't exist.
Now it tells me I'm using the incorrect version of Java. (it says I have 1.6.0_31 and the correct version is just 1.6 or something) I've fixed this before so I'll post again when I see exactly how I did it >_< lol.
Edit: Just ran "sudo apt-get install openjdk-6-jdk" then ran build>lunch>olympus and it's building as we speak.
I just created a new device tree for my phone samsung conquer 4G and i got a couple other errors when trying to compile cm7 but I fixed them all, but this one i cant find a fix.
I entered . build/envsetup.sh && brunch chief
and i got
build/core/config.mk:136: *** No config file found for TARGET_DEVICE SPH-D600. Stop.
** Don't have a product spec for: 'cyanogen_chief'
** Do you have the right repo manifest?
Any help here? Thanks will be given.
i have same problem
Hi to all.
I'm trying to build the latest version of CyanogenMod, with android 4.2.2. I sync the repo with
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
and now I'm in the breakfast phase. The result is:
Code:
[email protected]:~/cyanogen_p4/system$ breakfast p4
including vendor/cm/vendorsetup.sh
ls: impossibile accedere a device/*/p4/cm.mk: File o directory non esistente
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_p4". Arresto.
Device p4 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_p4
Default revision: cm-10.1
Checking branch info
CyanogenMod/android_device_samsung_p4 already exists
Syncing repository to retrieve project.
error: project device/samsung/p4 not found
Repository synced!
Looking for dependencies
Dependencies file not found, bailing out.
Done
ls: impossibile accedere a device/*/p4/cm.mk: File o directory non esistente
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_p4". Arresto.
** Don't have a product spec for: 'cm_p4'
** Do you have the right repo manifest?
I have a nightly build installed with Android 4.2.2, so I think that build the newest android version for samsung p4 is possible.
What is wrong?
I think that there is something broken in the build system for P4 device. I tried also to git-clone manually the android_device_samsung_p4 project and android_device_samsung_p4-common project in the right path (/device/samsung/) but the breakfast give me another error.
Sorry but my poor knowledge of CM build system does not help me
Has anybody build from scratch a cyanogenmod with android 4.2.2?
(BTW ...I don't understand why my topic was moved here...)
Update
Hey sarbyn,
I stumbled upon the same error today. Did you find any fixes or further information about that?
Best regards
el manu
elmanuel said:
Hey sarbyn,
I stumbled upon the same error today. Did you find any fixes or further information about that?
Best regards
el manu
Click to expand...
Click to collapse
Sorry but I don't remember how I fixed it. The last time I did a build for P4 was in february...if I remember correctly it was only a temporary issue, after some days a simple "repo sync" fixed it
I tried to port Cyanogenmod 13 to my LGE L65. Everything worked fine, till I tried to download specifications with breakfast. Device was unsupported so I had to made file roomservice.xml with links to Github kernel. I tried but I haven't helped. Then I tried this way, but of course with CM 13: "android_device_lge_w55n"(link to github but XDA blocked it). In description is instruction. Even when folder /device/lge/w55n exsisted still I had the same error: "Device w55n not found. Attempting to retrieve device repository from CyanogenMod Github (link here but XDA blocked it).
Repository for w55n not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/envsetup.mk:90: *** Unable to determine HOST_ARCH from uname -sm: Linux i686!. Stop.
** Don't have a product spec for: 'cm_w55n'
** Do you have the right repo manifest?
"
Can you help me? PLEASE:crying:
I've hit a bit of a brick wall while trying to do my first CyanogenMod build (cm13 on trltespr). Not sure if this should be put on the device board itself but I figured I'd try here first. I've extracted proprietary files from the device, followed the guide on the CM wiki, and while trying to build I'm getting the following error from make:
make: *** No rule to make target '/home/cmbuild/android/system/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar', needed by '/home/cmbuild/android/system/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-full-debug.jar'. Stop.
From what I've gathered I absolutely do not want to skip building either of these libraries, so I'm kind of at an impasse here. Does anyone have any thoughts on what my options may be here?
Actually, i'm starting to get a different error now, quite similar though:
make: *** No rule to make target '/home/cmbuild/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/R.stamp', needed by '/home/cmbuild/android/system/out/target/common/obj/APPS/BasicDreams_intermediates/src/R.stamp'. Stop.
^regarding above error message, first one comes from simply running 'make', second one comes from running brunch trltespr
Make Clobber your folder
Do a repo sync..
How about try to use mka..