我尝试使用AOSCompiler编译CM10(使用ubuntu)。我有两个问题:
1.它告诉我它无法找到我的设备:
elichai@elichai-MT6840:~/.aoscompiler/build$ . build/envsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
elichai@elichai-MT6840:~/.aoscompiler/build$ lunch cm_maguro-userdebug
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/maguro/cm.mk]]: "device/samsung/tuna/device.mk" does not exist. Stop.
Device maguro not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_maguro
CyanogenMod/android_device_samsung_maguro already exists
Syncing repository to retrieve project.
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/maguro/cm.mk]]: "device/samsung/tuna/device.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_maguro'
** Do you have the right repo manifest?
我尝试做'午餐'并从列表中选择我的设备,它给了我同样的错误。 我尝试使用'早餐',它也给了我同样的错误。
2. AOSCOmpiler说:
Adb未运行 需要adb来设置供应商文件。
这是你要自己做的事吗?
请再试一次。
即使我添加到文件'/etc/bash.bashrc这一行:
export PATH = $ {PATH}:/ home / elichai / Downloads / SDK / tools:/ home / elichai / Downloads / SDK / platform-tools
(这是我的SDK位置)现在我可以使用'adb'而无需转到SDK文件夹。但它仍然无效(AOSCompiler)。
答案 0 :(得分:0)
抱歉,我知道它已经老了,但是,要export PATH=${PATH}:/home/elichai/Downloads/SDK/tools:/home/elichai/Downloads/SDK/platform-tools
你应该删除{}
export PATH=$PATH:/home/elichai/Downloads/SDK/tools:/home/elichai/Downloads/SDK/platform-tools
这就是我做的。我在Ubuntu 10.04上
此外,您可以添加.bashrc的路径,假设您在shell时使用bach。
如果我错了,我相信有人会纠正我。