[ONE Android Development] brajesh.sharma87:
Getting this error. Anyone has a solution? I am building it with a setup on which I used to build cm12.1 successfully.

target arm C: libswscale <= external/ffmpeg/libswscale/gamma.c
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setMPEG4Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:157:24: error: 'kKeyDivXVersion' was not declared in this scope
meta->setInt32(kKeyDivXVersion, divxVersion);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setVC1Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:194:36: error: 'MEDIA_MIMETYPE_VIDEO_VC1' was not declared in this scope
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_VC1);
^
external/stagefright-plugins/utils/codec_utils.cpp:195:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMV1Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:206:20: error: 'kKeyWMVVersion' was not declared in this scope
meta->setInt32(kKeyWMVVersion, kTypeWMVVer_7);
^
external/stagefright-plugins/utils/codec_utils.cpp:206:36: error: 'kTypeWMVVer_7' was not declared in this scope
meta->setInt32(kKeyWMVVersion, kTypeWMVVer_7);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMV2Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:217:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:218:20: error: 'kKeyWMVVersion' was not declared in this scope
meta->setInt32(kKeyWMVVersion, kTypeWMVVer_8);
^
external/stagefright-plugins/utils/codec_utils.cpp:218:36: error: 'kTypeWMVVer_8' was not declared in this scope
meta->setInt32(kKeyWMVVersion, kTypeWMVVer_8);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMV3Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:229:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:230:20: error: 'kKeyWMVVersion' was not declared in this scope
meta->setInt32(kKeyWMVVersion, kTypeWMVVer_9);
^
external/stagefright-plugins/utils/codec_utils.cpp:230:36: error: 'kTypeWMVVer_9' was not declared in this scope
meta->setInt32(kKeyWMVVersion, kTypeWMVVer_9);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setRV20Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:240:36: error: 'MEDIA_MIMETYPE_VIDEO_RV' was not declared in this scope
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RV);
^
external/stagefright-plugins/utils/codec_utils.cpp:241:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:242:20: error: 'kKeyRVVersion' was not declared in this scope
meta->setInt32(kKeyRVVersion, kTypeRVVer_G2); //http://en.wikipedia.org/wiki/RealVide
^
external/stagefright-plugins/utils/codec_utils.cpp:242:35: error: 'kTypeRVVer_G2' was not declared in this scope
meta->setInt32(kKeyRVVersion, kTypeRVVer_G2); //http://en.wikipedia.org/wiki/RealVide
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setRV30Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:252:36: error: 'MEDIA_MIMETYPE_VIDEO_RV' was not declared in this scope
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RV);
^
external/stagefright-plugins/utils/codec_utils.cpp:253:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:254:20: error: 'kKeyRVVersion' was not declared in this scope
meta->setInt32(kKeyRVVersion, kTypeRVVer_8); //http://en.wikipedia.org/wiki/RealVide
^
external/stagefright-plugins/utils/codec_utils.cpp:254:35: error: 'kTypeRVVer_8' was not declared in this scope
meta->setInt32(kKeyRVVersion, kTypeRVVer_8); //http://en.wikipedia.org/wiki/RealVide
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setRV40Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:264:36: error: 'MEDIA_MIMETYPE_VIDEO_RV' was not declared in this scope
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RV);
^
external/stagefright-plugins/utils/codec_utils.cpp:265:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:266:20: error: 'kKeyRVVersion' was not declared in this scope
meta->setInt32(kKeyRVVersion, kTypeRVVer_9); //http://en.wikipedia.org/wiki/RealVide
^
external/stagefright-plugins/utils/codec_utils.cpp:266:35: error: 'kTypeRVVer_9' was not declared in this scope
meta->setInt32(kKeyRVVersion, kTypeRVVer_9); //http://en.wikipedia.org/wiki/RealVide
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setFLV1Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:276:36: error: 'MEDIA_MIMETYPE_VIDEO_FLV1' was not declared in this scope
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_FLV1);
^
external/stagefright-plugins/utils/codec_utils.cpp:277:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMAV1Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:406:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:407:20: error: 'kKeyWMAVersion' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMA); //FIXME version?
^
external/stagefright-plugins/utils/codec_utils.cpp:407:36: error: 'kTypeWMA' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMA); //FIXME version?
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMAV2Format(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:418:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:419:20: error: 'kKeyWMAVersion' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMA);
^
external/stagefright-plugins/utils/codec_utils.cpp:419:36: error: 'kTypeWMA' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMA);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMAProFormat(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:430:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:431:20: error: 'kKeyWMAVersion' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMAPro);
^
external/stagefright-plugins/utils/codec_utils.cpp:431:36: error: 'kTypeWMAPro' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMAPro);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setWMALossLessFormat(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:442:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp:443:20: error: 'kKeyWMAVersion' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMALossLess);
^
external/stagefright-plugins/utils/codec_utils.cpp:443:36: error: 'kTypeWMALossLess' was not declared in this scope
meta->setInt32(kKeyWMAVersion, kTypeWMALossLess);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setRAFormat(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:453:36: error: 'MEDIA_MIMETYPE_AUDIO_RA' was not declared in this scope
meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RA);
^
external/stagefright-plugins/utils/codec_utils.cpp:454:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setAPEFormat(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:465:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setDTSFormat(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:476:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'android::sp<android::MetaData> android::setFLACFormat(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:487:19: error: 'kKeyRawCodecSpecificData' was not declared in this scope
meta->setData(kKeyRawCodecSpecificData, 0, avctx->extradata, avctx->extradata_size);
^
external/stagefright-plugins/utils/codec_utils.cpp: In function 'int android::getDivXVersion(AVCodecContext*)':
external/stagefright-plugins/utils/codec_utils.cpp:534:16: error: 'kTypeDivXVer_3_11' was not declared in this scope
return kTypeDivXVer_3_11;
^
external/stagefright-plugins/utils/codec_utils.cpp:538:16: error: 'kTypeDivXVer_4' was not declared in this scope
return kTypeDivXVer_4;
^
external/stagefright-plugins/utils/codec_utils.cpp:542:16: error: 'kTypeDivXVer_5' was not declared in this scope
return kTypeDivXVer_5;
^
make: *** [/home/brajesh/android/cm13/out/target/product/bacon/obj/SHARED_LIBRARIES/libffmpeg_utils_intermediates/codec_utils.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bionic/libc/include/stdlib.h:32:0,
from external/ffmpeg/libavcodec/../libavutil/avassert.h:30,
from external/ffmpeg/libswscale/swscale_internal.h:32,
from external/ffmpeg/libswscale/gamma.c:21:
bionic/libc/include/sys/cdefs.h:523:5: warning: "__LP64__" is not defined [-Wundef]
#if __LP64__
^
In file included from bionic/libc/include/sys/types.h:32:0,
from bionic/libc/include/stdio.h:50,
from bionic/libc/include/malloc.h:27,
from bionic/libc/include/stdlib.h:36,
from external/ffmpeg/libavcodec/../libavutil/avassert.h:30,
from external/ffmpeg/libswscale/swscale_internal.h:32,
from external/ffmpeg/libswscale/gamma.c:21:
bionic/libc/include/stdint.h:41:5: warning: "__LP64__" is not defined [-Wundef]
#if __LP64__
^
bionic/libc/include/stdint.h:49:5: warning: "__LP64__" is not defined [-Wundef]
#if __LP64__
^
In file included from external/ffmpeg/libavcodec/../libavutil/avassert.h:30:0,
from external/ffmpeg/libswscale/swscale_internal.h:32,
from external/ffmpeg/libswscale/gamma.c:21:
bionic/libc/include/stdlib.h:49:32: warning: "__cplusplus" is not defined [-Wundef]
#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
^
external/ffmpeg/libswscale/gamma.c: In function 'gamma_convert':
external/ffmpeg/libswscale/gamma.c:30:38: warning: unused parameter 'c' [-Wunused-parameter]
static int gamma_convert(SwsContext *c, SwsFilterDescriptor *desc, int sliceY, int sliceH)
^
In file included from bionic/libc/include/stdlib.h:32:0,
from external/ffmpeg/libavcodec/../libavutil/avassert.h:30,
from external/ffmpeg/libswscale/swscale_internal.h:32,
from external/ffmpeg/libswscale/alphablend.c:21:
bionic/libc/include/sys/cdefs.h:523:5: warning: "__LP64__" is not defined [-Wundef]
#if __LP64__
^
In file included from bionic/libc/include/sys/types.h:32:0,
from bionic/libc/include/stdio.h:50,
from bionic/libc/include/malloc.h:27,
from bionic/libc/include/stdlib.h:36,
from external/ffmpeg/libavcodec/../libavutil/avassert.h:30,
from external/ffmpeg/libswscale/swscale_internal.h:32,
from external/ffmpeg/libswscale/alphablend.c:21:
bionic/libc/include/stdint.h:41:5: warning: "__LP64__" is not defined [-Wundef]
#if __LP64__
^
bionic/libc/include/stdint.h:49:5: warning: "__LP64__" is not defined [-Wundef]
#if __LP64__
^
In file included from external/ffmpeg/libavcodec/../libavutil/avassert.h:30:0,
from external/ffmpeg/libswscale/swscale_internal.h:32,
from external/ffmpeg/libswscale/alphablend.c:21:
bionic/libc/include/stdlib.h:49:32: warning: "__cplusplus" is not defined [-Wundef]
#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
^

#### make failed to build some targets (30:31 (mm:ss)) ####

brajesh@SmartBuddy:~/android/cm13$