make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o]

本文详细介绍了如何通过修改特定文件来解决Android编译时出现的错误,并提供了解决编译错误的具体步骤。同时,还讨论了在OMXCodec模块中遇到的另一个编译错误及其解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

从codeaurora下载android code,编译时出错make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1的解决办法:

I managed to solve those problems above using charging 4 files:

./vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h

./out/target/product/generic/obj/include/mm-core/omxcore/OMX_QCOMExtns.h

./hardware/qcom/media/mm-core/omxcore/inc/OMX_QCOMExtns.h

In those files, I put this line to the typedef struct QOMX_VIDEO_PARAM_DIVXTYPE:OMX_PTR pDrmHandle;

And I've got this:/

** * DivX Video Params * * STRUCT MEMBERS: * nSize : Size of the structure in bytes * nVersion : OMX specification version information * nPortIndex : Port that this structure applies to * eFormat : Version of DivX stream / data * eProfile : Profile of DivX stream / data */

typedef struct QOMX_VIDEO_PARAM_DIVXTYPE { OMX_U32 nSize; OMX_VERSIONTYPE nVersion; OMX_U32 nPortIndex; QOMX_VIDEO_DIVXFORMATTYPE eFormat; QOMX_VIDEO_DIVXPROFILETYPE eProfile; OMX_PTR pDrmHandle; // DRM handle} QOMX_VIDEO_PARAM_DIVXTYPE;

And for the other error:frameworks/base/media/libstagefright/OMXCodec.cpp:1863: error: 'QOMX_VIDEO_CodingVp8' was not declared in this scope

I have just commented these lines in the OMXCodec.cpp:

 //} else if (!strcasecmp(MEDIA_MIMETYPE_VIDEO_VPX, mime)) { // compressionFormat= (OMX_VIDEO_CODINGTYPE)QOMX_VIDEO_CodingVp8;

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值