Open sheikhrr opened 9 years ago
This is not a problem, just they building the source worng way...
reply@reply.github.com On Jan 31, 2015 10:25 PM, "balika011" notifications@github.com wrote:
This is not a problem, just they building the source worng way...
— Reply to this email directly or view it on GitHub.
Same problem... I am new in this, can you someon pls explain me, how to compile it right way?
@mrafra You're doing nothing wrong. Qualcomm kernels just need these fixes when compiling outside the AOSP tree. just apply them and u're fine.
But these patches don't need to be in the upstream kernel.
Ok, fixed, but I have one more error: drivers/mfd/lm3533-core.c:626:5: warning: 'pdata' may be used uninitialized in this function [-Wuninitialized] with dior_user_defconfig and NDK/toolchains/arm-linux-androideabi-4.6
@mrafra struct lm3533_platform_data *pdata = NULL;
Next errors:
In file included from drivers/misc/tspdrv/tspdrv.c:52: drivers/misc/tspdrv/ImmVibeSPI.c: In function 'ImmVibeSPI_ForceOut_SetSamples': drivers/misc/tspdrv/ImmVibeSPI.c:433: error: implicit declaration of function 'KBUILD_STR' drivers/misc/tspdrv/ImmVibeSPI.c:433: error: 'tspdrv' undeclared (first use in this function) drivers/misc/tspdrv/ImmVibeSPI.c:433: error: (Each undeclared identifier is reported only once drivers/misc/tspdrv/ImmVibeSPI.c:433: error: for each function it appears in.)
drivers/media/platform/msm/vidc/msm_venc.c: In function 'try_set_ctrl': drivers/media/platform/msm/vidc/msm_venc.c:1372: error: unknown field 'val' specified in initializer drivers/media/platform/msm/vidc/msm_venc.c:1446: error: unknown field 'val' specified in initializer
@mrafra... Which GCC you are using.... Please use linaro 4.9 or 4.7
Ok, compiled successfully after some changes in code:
drivers/misc/tspdrv/ImmVibeSPI.c:433:5: pr_info("%s: Only support single sample for ERM\n",func);
drivers/mfd/lm3533-core.c:626:5: struct lm3533_platform_data *pdata = lm3533->dev->platform_data;
NDK/toolchains/arm-linux-androideabi-4.6 works fine...
Errors are-:
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
compilation terminated.
SOLUTION:-
arch/arm/mach-msm/smd_init_dt.c:24:25
from < smd_private.h> to "smd_private.h"
sound/soc/msm/msm8226.c:30:40 from < qdsp6v2/msm-pcm-routing-v2.h> to "qdsp6v2/msm-pcm-routing-v2.h"
drivers/misc/tspdrv/tspdrv.c:34:20: from < tspdrv.h> to "tspdrv.h"
drivers/misc/tspdrv/tspdrv.c:43:24: from < ImmVibeSPI.c> to "ImmVibeSPI.c"
sound/soc/msm/qdsp6v2/rtac.c:28:21: from < q6voice.h> to "q6voice.h"
drivers/misc/tspdrv/tspdrv.c:86:41: from < VibeOSKernelLinuxHRTime.c> to "VibeOSKernelLinuxHRTime.c"
drivers/misc/tspdrv/tspdrv.c:84:37: from < tspdrvOutputDataHandler.c> to "tspdrvOutputDataHandler.c"
(NOTE: i added SPACE after < because without space whole word is being hide...!)