手機 - Google Pixel 3a XL - Droidian - 解決cam_cci_dev.h No such file or directory問題



問題如下:

  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CC      drivers/media/platform/msm/camera/cam_sensor_module/cam_cci/cam_cci_dev.o
In file included from drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_io/cam_sensor_io.h:117:0,
                 from drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.h:27,
                 from drivers/media/platform/msm/camera/cam_sensor_module/cam_cci/cam_cci_dev.h:35,
                 from drivers/media/platform/msm/camera/cam_sensor_module/cam_cci/cam_cci_dev.c:13:
drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h:20:25: fatal error: cam_cci_dev.h: No such file or directory
 #include "cam_cci_dev.h"
                         ^
compilation terminated.
make[7]: *** [scripts/Makefile.build:340: drivers/media/platform/msm/camera/cam_sensor_module/cam_cci/cam_cci_dev.o] Error 1
make[6]: *** [scripts/Makefile.build:653: drivers/media/platform/msm/camera/cam_sensor_module/cam_cci] Error 2
make[5]: *** [scripts/Makefile.build:653: drivers/media/platform/msm/camera/cam_sensor_module] Error 2
make[4]: *** [scripts/Makefile.build:653: drivers/media/platform/msm/camera] Error 2
make[3]: *** [scripts/Makefile.build:653: drivers/media/platform/msm] Error 2
make[2]: *** [scripts/Makefile.build:653: drivers/media/platform] Error 2
make[1]: *** [scripts/Makefile.build:653: drivers/media] Error 2
make: *** [Makefile:1120: drivers] Error 2

解法如下:

$ vim drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_io/cam_sensor_i2c.h
    20 #include "../cam_cci/cam_cci_dev.h"