Hi, I recently try compiling AOSPA rom, I tried following the instructions given by others but when I use
Code:
./rom-build.sh ghost
It firstly runs a lot of lines of commands but finally return
Code:
make: *** No rule to make target `bacon'. Stop.
I tried to use otatools and envsetup and lunch, but they seem don't work on me, can somebody help me? Thank you
Related
I am trying to compile from froyo source and when I go to make the files I get this error "frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone). Stop.
" I can't figure out what I need to do in order to get this working. Any help would be appreciated. Thanks
Krylon360 over at CyanogenMod forums was kind enough to create the vendor tree for the Captivate. It can be found here.
http://github.com/Krylon360/android_device_samsung_captivate
So I set up my build environment and I know it works since I was able to build my Eclair ROM. Anyway, I grabbed the latest 2.2 sources, downloaded Krylon's files to ~/mydroid/device/samsung/captivate, and ran extract-files.sh to pull everything in. The only difference is, I don't have the leaked Froyo installed but I do have the system.img so I used unyaffs to extract the files and in extract-files.sh I changed the "adb-pull" to a "cp". Suffice it to say, I got all the files out of there.
Next I had to create a vendorsetup.sh in ~/mydroid/device/samsung/captivate. I basically copied one from another vendor tree and modified it to suit me. So far so good.
Next I run source build/envsetup.sh from within ~/mydroid to suck in all the vendorsetup.sh scripts.
Code:
~/mydroid$ source build/envsetup.sh
including device/htc/dream/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/htc/sapphire/vendorsetup.sh
including device/samsung/captivate/vendorsetup.sh
My captivate script was found just dandy. Everything looks good so I fire up this make command:
Code:
make -j2 TARGET_PRODUCT=captivate | tee build-$(`date +%d%m%y%H%M`).log
Things start chugging along nicely though I see these messages which I've yet to investigate.
Code:
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/lib/egl/libGLES_android.so'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/captivate/system/lib/egl/libGLES_android.so'
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/lib/libril.so'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/captivate/system/lib/libril.so'
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/lib/libreference-ril.so'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/captivate/system/lib/libreference-ril.so'
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/captivate/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/captivate/system/usr/keylayout/qwerty.kl'
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/captivate/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:19: warning: overriding commands for target `out/target/product/captivate/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/captivate/system/usr/keychars/qwerty2.kcm.bin'
No private recovery resources for TARGET_DEVICE captivate
Then comes the error
Code:
make: *** No rule to make target `vendor/samsung/captivate/proprietary/lib/libclientgps.so', needed by `out/target/product/captivate/obj/lib/libclientgps.so'. Stop.
make: *** Waiting for unfinished jobs....
Presumably some makefile somewhere is looking for this file, but I have no idea where. I'll keep looking. However, this file isn't in the froyo system.img I obtained which is supposedly from the leaked Captivate ROM. Any ideas?
How is this possible? The source code for Froyo hasn't been released by Samsung. Read around the forum, especially the developers section. No source code is available for Froyo.
AOSP
Sent from my SAMSUNG-SGH-I897 using XDA App
gdanko said:
AOSP
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
Ah! It would be nice if the source code were released for Captivate Froyo then maybe we could get CyanogenMod for our phones and Voodoo!
Well I have the extract-files.sh for the Captivate so I can pull the pertinent files out for inclusion in my build. My goal is a bit different in that I'm building a 100% stock ROM that I can modify or augment to my liking. I have a fair amount of support from the community so far so I'm confident I can pull it off.
Sent from my SAMSUNG-SGH-I897 using XDA App
I look foreword to it. Good luck and keep us posted on your progress.
Sent from my SAMSUNG-SGH-I897 using XDA App
Well I am almost 100% built. One last error..
Code:
target SharedLib: libaudioflinger (out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so)
out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp:(.text._ZN7android18AudioPolicyServiceC1Ev+0x130): undefined reference to `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp:(.text._ZN7android18AudioPolicyServiceC2Ev+0x124): undefined reference to `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
collect2: ld returned 1 exit status
make: *** [out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so] Error 1
I have successfully built a stock Froyo with Captivate drivers. I had to modify some of the vendor files provided by Krylon360 and test a few things but I got the compile to complete successfully.
I've run choosecombo to target the simulator to see if it works under emulator. If this works I'll move forward with the kernel and modem.bin.
Sounds like great progress. Is this your first ROM? Will you add it to the development section when it's finished?
Sent from my SAMSUNG-SGH-I897 using XDA App
I have a few things I need to do:
* Since I had to modify some of Krylon's files I need to submit the changes to him.
* I got an error building a simulator image. Need to look into that.
* I have neither a kernel nor a modem.bin, but I have someone from Cognition verifying theirs are stock. If the Cognition files are stock then I can move forward with packaging and signing. At that point I can make it available to everyone.
Tomorrow I will wipe my development environment and follow my documentation to be certain it all works. What I like about my ROM is that it's not a modified version of AT&T's. Instead it's from source, only bringing in the hardware-specific files from the factory ROM.
I'll keep you posted as I move forward.
Sent from my SAMSUNG-SGH-I897 using XDA App
Koush put up the Vibrant kernel config file on his github. Hopefully it's similar to the Cappy's. If its close enough I can build a new kernel.
Sent from my SAMSUNG-SGH-I897 using XDA App
How much of what you are doing is Captivate-specific? I am hoping your procedure, once you have success, will apply to the Galaxy I9000 with minimal changes.
Thanks
dq11 said:
How much of what you are doing is Captivate-specific? I am hoping your procedure, once you have success, will apply to the Galaxy I9000 with minimal changes.
Thanks
Click to expand...
Click to collapse
Very little. This should be adaptable to any SGS device.
Sent from my SAMSUNG-SGH-I897 using XDA App
Hey there all
I'm trying to compile a kernel for the GT-I9070P from the default Sammy source (opensource.samsung.com) and I've encountered an error and I hope you guys can help me with this:
Code:
drivers/staging/nmf-cm/cm/engine/dsp/src/dsp.c: In function 'cm_DSP_AcknowledgeDspIrq':
drivers/staging/nmf-cm/cm/engine/dsp/src/dsp.c:315:5: error: variable 'dummy' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [drivers/staging/nmf-cm/cm/engine/dsp/src/dsp.o] Error 1
make[2]: *** [drivers/staging/nmf-cm] Error 2
make[1]: *** [drivers/staging] Error 2
make[1]: *** Waiting for unfinished jobs....
I wonder if any of you guys have encountered these errors.....
Hi.
Dont use GCC 4.5+ to build kernel.
If you still wanna use GCC 4.5+, here is a method:
In your /drivers/staging/nmf-cm/makefile, just delete "Werror".
And build it again.
Recommend using Linaro GCC 4.4.5 or GCC 4.4.3 .
EDIT:
Although you can have a booting kernel, but the phone will reboot immediately when you dial out.
I replacd dsp.c from other source code, and it built with no errors.
The phone still will reboot when dial out.
Hmm....so that means the phone will reboot upon attempting to call someone ?
I give up writing anymore signatures.
CallMeVentus said:
Hmm....so that means the phone will reboot upon attempting to call someone ?
I give up writing anymore signatures.
Click to expand...
Click to collapse
Yep, when some calls come it will reboot, too.
It has no reboot issue with gcc 4.4
BTW,sorry, just now i replied a wrong thread.
cocafe said:
Yep, when some calls come it will reboot, too.
It has no reboot issue with gcc 4.4
BTW,sorry, just now i replied a wrong thread.
Click to expand...
Click to collapse
Nah it's fine , I believe you just saved my ass
I give up writing anymore signatures.
Thread moved to General section.
Hey guys,
I'm having an issue when building cyanogenmod 13.0. It gets to about 20 min into the build, then fails with this error:
Code:
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:22: The import cyanogenmod.hardware.HSIC cannot be resolved
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:46: HSIC cannot be resolved to a type
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:57: HSIC cannot be resolved to a type
make: *** [/home/edwin/phonelab/cm-shamu/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.hardware_intermediates/with-local/classes.dex] Error 41
if anyone can point me in the right direction to get this straightened out I'd be appreciative.
saintsantos said:
/PictureAdjustment.java:22: The import cyanogenmod.hardware.HSIC cannot be resolved
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:46: HSIC cannot be resolved to a type.
Click to expand...
Click to collapse
I am building CM-13.0 for LG G4 H811 and found the same problem. It's due to
Change 153678 - cmhw: Add PictureAdjustment stubs
which was just merged this morning. This is the sort of glaring bug that will be found and corrected quickly. Sometimes I wonder whether some folks actually build their code before merging it.
Edit to add:
14:00 EDT - I checked the change comments and the senior devs are aware of the problem and are working on it.
It was reverted about 20 minutes ago. You can either repo sync again, or cd to frameworks_opt_hardware and git revert a8ef044be1eb70c0f8a17f0c40d4c5c08bf71593
http://review.cyanogenmod.org/#/c/153678/
saintsantos said:
Hey guys,
I'm having an issue when building cyanogenmod 13.0. It gets to about 20 min into the build, then fails with this error:
Code:
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:22: The import cyanogenmod.hardware.HSIC cannot be resolved
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:46: HSIC cannot be resolved to a type
ERROR: /home/edwin/phonelab/cm-shamu/frameworks/opt/hardware/src/org/cyanogenmod/hardware/PictureAdjustment.java:57: HSIC cannot be resolved to a type
make: *** [/home/edwin/phonelab/cm-shamu/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.hardware_intermediates/with-local/classes.dex] Error 41
if anyone can point me in the right direction to get this straightened out I'd be appreciative.
Click to expand...
Click to collapse
Same issue here when building for jem (the Amazon Kindle Fire HD 8.9"). I'm going to run repo sync and rebuild as suggested in post #3.
Neo said:
It was reverted about 20 minutes ago. You can either repo sync again, or cd to frameworks_opt_hardware and git revert a8ef044be1eb70c0f8a17f0c40d4c5c08bf71593
http://review.cyanogenmod.org/#/c/153678/
Click to expand...
Click to collapse
Thanks. I reverted the commit in my repo anyway, but I'm just glad it was caught and handled.
Go Dirty, Never Clean and make your brain burn
Does anybody have tried or have any experience compiling this rom for our device?
I have spend few hours today figuring out how to do that, found some problems the fixinf them and the another problem and cant move forward.
Got his error:
Code:
make: *** No rule to make target '/home/pajdek/DU/out/target/product/w7/obj/STATIC_LIBRARIES/libqc-art-compiler_intermediates/export_includes', needed by '/home/pajdek/DU/out/target/product/w7/obj/SHARED_LIBRARIES/libart-compiler_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Dont know what to do now any thoughts?
ppajdek said:
Go Dirty, Never Clean and make your brain burn
Does anybody have tried or have any experience compiling this rom for our device?
I have spend few hours today figuring out how to do that, found some problems the fixinf them and the another problem and cant move forward.
Got his error:
Code:
make: *** No rule to make target '/home/pajdek/DU/out/target/product/w7/obj/STATIC_LIBRARIES/libqc-art-compiler_intermediates/export_includes', needed by '/home/pajdek/DU/out/target/product/w7/obj/SHARED_LIBRARIES/libart-compiler_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Dont know what to do now any thoughts?
Click to expand...
Click to collapse
Hi,
I compile several roms for the Galaxy S4, but I have seen this there before. A quick and dirty fix is to do this:
Code:
$ mkdir /home/pajdek/DU/out/target/product/w7/obj/STATIC_LIBRARIES/libqc-art-compiler_intermediates/
$ touch /home/pajdek/DU/out/target/product/w7/obj/STATIC_LIBRARIES/libqc-art-compiler_intermediates/export_includes
Then you have to build dirty, e.g., don't "make clean" before your build.
Another option is to build CM for your phone, then steal the file from the out folder of CM's build and put it in the out folder of your build.
Here is a write up I did on that, if you want to read up on it a bit:
https://thealaskalinuxuser.wordpress.com/2016/06/10/error-no-rule-to-make-target-export_includes/
Hope that helps! Good luck!
Thanks for your reply, i will try that.
Uncle google told me that there were a commit for CM that should fix this.
Two solutions to try