[Q] Need help for compiling CM11 for msm8916 - Android Q&A, Help & Troubleshooting

Hey guys, I have device tree from dianlujitao, hardware from codeaurora, Vendor and kernel source from official huawei, and try to compile cm11 for my device(HUAWEI honor 4X), but when making hardware/qcom/audio-caf/hal/audio_extn/ssr.c, I got this error message: no such header file "surround_filters_interface.h".
I search all of sync of source, google, github. still cant find header file "surround_filters_interface.h".
if guys can help, i would be grateful.
Code:
target arm C: audio.primary.msm8916 <= hardware/qcom/audio-caf/hal/audio_extn/ssr.c
hardware/qcom/audio-caf/hal/audio_extn/ssr.c:34:40: fatal error: surround_filters_interface.h: No such file or directory
compilation terminated.
make: *** [/android/cm11/out/target/product/c8817d/obj/SHARED_LIBRARIES/audio.primary.msm8916_intermediates/audio_extn/ssr.o] Error 1
make: leaving directory “/android/cm11”
[email protected]:/android/cm11#

You probably have AUDIO_FEATURE_ENABLED_SSR defined in your device, but audio-caf doesn't contain it. Look for and try to remove this in your BoardConfig.mk file in device tree.

mrjabol61 said:
You probably have AUDIO_FEATURE_ENABLED_SSR defined in your device, but audio-caf doesn't contain it. Look for and try to remove this in your BoardConfig.mk file in device tree.
Click to expand...
Click to collapse
It works, thank you!
Maybe I shouldn't change audio-caf.

Sometimes it's necessary to change something in repos, if you can't get it working.

Related

[Q] Make dist build from AOKP source

Hello there,
I am trying to build a custom ROM for Samsung P3113 based on AOKP source on the jb branch. I was able to make "unofficial" release using "brunch aokp_p3113". However, when I attempted to make a distribution release, the "make -j4 dist" failed. The following are the commands I used:
. build/envsetup.sh
lunch aokp_p3113-userdebug
make -j4 dist
I got the following error messages:
device/moto/stingray/recovery/recovery_ui.cpp:22:20: fatal error: device.h: No such file or directory compilation terminated.
make: *** [out/target/product/p3113/obj/STATIC_LIBRARIES/librecovery_ui_stingray_intermediates/recovery_ui.o] Error 1
Can someone help? By the way, I don't need to build OTA package.
Found root cause
Found the root cause -
All the three header files needed by recovery_ui.cpp are missing. To workaround, I excluded the stingray recovery from the make, and the problem solved.
Hopefully, someone in the AOKP team will add the missing files to repository.

[Q] make -j4 otatools error HELP

okay i have synced repo to build CWM from a source. but whenever i try to run make -j4 otatools it gives me error : make: *** No rule to make target `otatools'. Stop.
I am sure i am at wrong idrectory. Where is the source directory? In my working directory there is only repo file and another directory named Prebuilt. Where was the source downloaded?
Shapeshift said:
okay i have synced repo to build CWM from a source. but whenever i try to run make -j4 otatools it gives me error : make: *** No rule to make target `otatools'. Stop.
I am sure i am at wrong idrectory. Where is the source directory? In my working directory there is only repo file and another directory named Prebuilt. Where was the source downloaded?
Click to expand...
Click to collapse
the source is yourworking directory, where you did the command ”repo sync”

Error compiling CWM :S

I'm downloaded the sources of cm and cloned @artas182x source (kernel, device and vendor) for compile CWM 6.0.4.7, but i have this error:
Code:
make: *** No rule to make target «/home/eric/source_cm11/out/target/product/p760/obj/KERNEL_OBJ/usr», necessary for «/home/eric/source_cm11/out/target/product/p760/obj/STATIC_LIBRARIES/libminui_intermediates/events.o». Stop.
How to fix this error?
Polloos said:
I'm downloaded the sources of cm and cloned @artas182x source (kernel, device and vendor) for compile CWM 6.0.4.7, but i have this error:
Code:
make: *** No rule to make target «/home/eric/source_cm11/out/target/product/p760/obj/KERNEL_OBJ/usr», necessary for «/home/eric/source_cm11/out/target/product/p760/obj/STATIC_LIBRARIES/libminui_intermediates/events.o». Stop.
How to fix this error?
Click to expand...
Click to collapse
I have the error when i build cm11. what should i do?

[Q] Recovery image is too large, is there any way of reducing the boot.img file size?

Hello.
I've got a Lenovo S6000 which I've extracted the boot.img from and used mkvendor.sh to generate the device tree.
The problem is such that because of the ridiculous amount of space left for the recovery and boot image, I can't compile a recovery image using:
Code:
$ make recoveryimage -j8
I've tried appending 'CFLAGS=-Os' (optimising for size) after running make clobber, but to no avail.
The exact output of the make command is as follows:
Code:
/home/george/CyanogenMod/out/target/product/s6000/boot.img maxsize=3514368 blocksize=135168 total=5062656 reserve=270336
error: /home/george/CyanogenMod/out/target/product/s6000/boot.img too large (5062656 > [3784704 - 270336])
build/core/Makefile:562: recipe for target '/home/george/CyanogenMod/out/target/product/s6000/boot.img' failed
make: *** [/home/george/CyanogenMod/out/target/product/s6000/boot.img] Error 1
make: *** Deleting file '/home/george/CyanogenMod/out/target/product/s6000/boot.img'
make: *** Waiting for unfinished jobs....
Is there an alternative recovery which is smaller than CWM which I could use? Or a work around?
Before you ask, yes, I am using a prebuilt kernel extracted from the device - I understand that that partly to blame. The source code is available but doesn't compile well (missing headers, syntax errors and annoying inline function errors to name a few).

Cm13 build error

Tried to build CM13 from source, but I always had this error
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/hicham03/cm13/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Arrêt.
make: *** Attente des tâches non terminées....
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (16:28 (mm:ss)) ####
Full log here: http://pastebin.com/jyBW0jzz
Is there any solution for that?
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
LahKeda said:
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
Click to expand...
Click to collapse
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Hicham03 said:
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Click to expand...
Click to collapse
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
wow! cm 13 nice !
LahKeda said:
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
Click to expand...
Click to collapse
But the missing file is located in that missing folder..
Hicham03 said:
But the missing file is located in that missing folder..
Click to expand...
Click to collapse
Here is wait is going on while building :
While building here are files copied to that path
out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'.
Click to expand...
Click to collapse
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Bro can re-repo source cm13?
LahKeda said:
Here is wait is going on while building :
While building here are files copied to that path
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Click to expand...
Click to collapse
Oh oh... bluetooth_intermediates isn't available too.
New error after re-synced repo:
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/product/higgs2g/obj/KERNEL_OBJ/usr', needed by '/home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Arrêt.
make: *** Attente des tâches non terminées....
Export includes file: external/tinyalsa/Android.mk -- /home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/export_includes
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (06:48 (mm:ss)) ####
And there too, KERNEL_OBJ is unavailable.

Categories

Resources