我正在尝试为LG K7构建CM 14.1 ROM,但我在编译时遇到了很多问题。我的设备有一个MSM8909芯片,但它适用于MSM8916-caf变种。我不知道它是否是内核问题。我使用LGE OpenSource的内核源代码(LGMS330)这里是错误代码:
这是使用的设备树:https://github.com/TheOddTaco/android_device_lge_m1-common
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:2068:18: error: use of undeclared identifier 'V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY'; did you mean 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90'?
control.id = V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:655:2: note: 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90' declared here
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90 = 1,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:2069:21: error: use of undeclared identifier 'V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE'
control.value = V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE;
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4505:22: error: use of undeclared identifier 'V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY'; did you mean 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90'?
control.id = V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:655:2: note: 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90' declared here
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90 = 1,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4507:29: error: use of undeclared identifier 'V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_ENABLE'; did you mean 'V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED'?
control.value = V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_ENABLE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:925:2: note: 'V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED' declared here
V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED = 1,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4509:29: error: use of undeclared identifier 'V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE'
control.value = V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE;
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4522:22: error: use of undeclared identifier 'V4L2_CID_MPEG_VIDC_VIDEO_OPERATING_RATE'; did you mean 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE'?
control.id = V4L2_CID_MPEG_VIDC_VIDEO_OPERATING_RATE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:654:2: note: 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE' declared here
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE = 0,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9326:14: error: use of undeclared identifier 'MSM_VIDC_BT709_5'
case MSM_VIDC_BT709_5:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9330:14: error: use of undeclared identifier 'MSM_VIDC_BT470_6_M'
case MSM_VIDC_BT470_6_M:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9333:14: error: use of undeclared identifier 'MSM_VIDC_BT601_6_625'
case MSM_VIDC_BT601_6_625:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9336:14: error: use of undeclared identifier 'MSM_VIDC_BT601_6_525'
case MSM_VIDC_BT601_6_525:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9340:14: error: use of undeclared identifier 'MSM_VIDC_GENERIC_FILM'
case MSM_VIDC_GENERIC_FILM:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9343:14: error: use of undeclared identifier 'MSM_VIDC_BT2020'
case MSM_VIDC_BT2020:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9346:14: error: use of undeclared identifier 'MSM_VIDC_UNSPECIFIED'
case MSM_VIDC_UNSPECIFIED:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9357:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_BT709_5'
case MSM_VIDC_TRANSFER_BT709_5:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9358:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_601_6_525'
case MSM_VIDC_TRANSFER_601_6_525: // case MSM_VIDC_TRANSFER_601_6_625:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9361:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_BT_470_6_M'
case MSM_VIDC_TRANSFER_BT_470_6_M:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9364:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_BT_470_6_BG'
case MSM_VIDC_TRANSFER_BT_470_6_BG:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9367:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_SMPTE_240M'
case MSM_VIDC_TRANSFER_SMPTE_240M:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9370:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_LINEAR'
case MSM_VIDC_TRANSFER_LINEAR:
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
答案 0 :(得分:-1)
让我们看看:V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90,你错过了这个符号,这意味着使用它的人在他的内核头文件中有这个
我会看看其他项目的硬件/ qcom / msm8916 / kernel-headers /...
我还低估了这个问题,因为它更多的是在寻求帮助'那么其他问题就可以受益了!
我认为,如果您只针对某个特定错误提出具体问题,那可能是最好的。