现在的位置: 首页 > 综合 > 正文

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

2013年09月05日 ⁄ 综合 ⁄ 共 1219字 ⁄ 字号 评论关闭

从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;

抱歉!评论已关闭.