編譯CM10.1 SDK時的錯誤
$ source ./build/envsetup.sh
$ make update-api
$ lunch sdk-eng
$ make sdk -j4
build/core/main.mk:619: *** Module 'LegacyCamera' in PRODUCT_PACKAGES has nothing to install!. Stop.
出錯說找不到相對應的模組,應急之道 暴力刪除法
- modfiy \YOUR_CM_DROID\build\targer\product\sdk.mk
- Delete \ LegacyCamera
再執行make sdk -j4 出現下一個錯誤
make: *** No rule to make target `frameworks/base/data/sounds/effects/camera_click.ogg', needed by `/YOUR_CM_DROID/out/target/product/generic/system/media/audio/ui/camera_click.ogg'. Stop.
make: *** Waiting for unfinished jobs....
因為檔案位置錯了,必須要將正確的檔案放到對的位置
首先先找到檔案的位置,利用find
$ find . -name camera_click.ogg
./out/target/product/generic/system/media/audio/ui/camera_click.ogg
./frameworks/base/data/sounds/effects/old/camera_click.ogg
./frameworks/base/data/sounds/effects/ogg/camera_click.ogg
./out/target/product/generic/system/media/audio/ui/camera_click.ogg
./frameworks/base/data/sounds/effects/old/camera_click.ogg
./frameworks/base/data/sounds/effects/ogg/camera_click.ogg
$ cd YOUR_CM_DROID/frameworks/base/data/sounds/effects/
把/frameworks/base/data/sounds/effects/ogg底下的東西都複製一份到上一層
camera_click.ogg
Effect_Tick.ogg
KeypressSpacebar.ogg
LowBattery.ogg
Unlock.ogg
VolumeIncremental.ogg
camera_focus.ogg
KeypressDelete.ogg
KeypressStandard.ogg
Media_Volume.ogg
VideoRecord.ogg
Dock.ogg
KeypressReturn.ogg
Lock.ogg
Undock.ogg
VideoStop.ogg
$ cp ogg/*.ogg .
回到/YOUR_CM_DROID/
$ make sdk -j4
$ make sdk -j4
大功告成
0 意見:
張貼留言