错误‘struct android::MediaRecorderBase’没有名为‘pause’的成员

错误‘struct android::MediaRecorderBase’没有名为‘pause’的成员

我正在尝试在 Nexus 4 上构建 Ubuntu 手机,但遇到了以下错误。您能帮我找出我遗漏了什么或做错了什么吗?

提前致谢。

ubuntu/libhybris/compat/media/media_recorder_client.cpp: In member function 'virtual android::status_t android::MediaRecorderClient::pause()':
ubuntu/libhybris/compat/media/media_recorder_client.cpp:265:22: error: 'struct android::MediaRecorderBase' has no member named 'pause'
ubuntu/libhybris/compat/media/media_recorder_client.cpp:267:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [/home/young/phablet/out/target/product/mako/obj/SHARED_LIBRARIES/libmedia_compat_layer_intermediates/media_recorder_client.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/av/media/libstagefright/AudioSource.cpp: In constructor 'android::AudioSource::AudioSource(audio_source_t, uint32_t, uint32_t)':
frameworks/av/media/libstagefright/AudioSource.cpp:76:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

答案1

为了在编译过程中解决这个问题,我引入了一个错误。更改

return recorder->pause();

return NO_INIT;

允许编译继续,但这绝不是一个可持续的“修复”。

相关内容