Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

What i doing wrong when trying compiling?

Open artyom5613 opened this issue 7 years ago • 5 comments

I trying compiling daisy-o-oss , scorpio-m-oss , but i face with errors(compilation successively started and go. But after 5-8 min i take error. ). Typical error:

 In file included from drivers/media/platform/msm/camera_v2/isp/msm_isp_util.c:24:0:
include/trace/events/msm_cam.h:19:21: fatal error: msm_isp.h: No such file or directory
 #include "msm_isp.h"
                     ^

What i do wrong? Download kernel source code->Download toolchain -> cd to the toolchain , type export ARCH=arm64 && export SUBARCH=arm64 -> export CROSS_COMPILE=$(pwd)/bin/aarch64-linux-android- -> cd to the source code -> make clean -> make mrproper -> make -j4.

Can you help me with instruction if I do something wrong?

OS: Ubuntu 18.04.1LTS. Maybe i need to try compile on another OS?

artyom5613 avatar Dec 08 '18 22:12 artyom5613

Specify output dir with make O=out.

ramabondanp avatar Dec 08 '18 22:12 ramabondanp

@artyom5613 U need to make a folder called as out. Posting the build Script in HasteBin have a look

https://hastebin.com/idunehujat.js

ghost avatar Dec 09 '18 15:12 ghost

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/987

ivan19871002 avatar Dec 10 '18 11:12 ivan19871002

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-to-compile-kernel-standalone

Maybe you'll get some help from wiki page

Moreover, you can paste link to a log file here if it really have anything to do with kernel

ghost avatar Dec 10 '18 11:12 ghost

thank you! It's help

artyom5613 avatar Dec 10 '18 14:12 artyom5613