我想将audioserver(/ frameworks / av / media / audioserver)构建为64位,并参考Android.mk(/frameworks/av/media/audioserver/Android.mk)中的说明,在AUDIOSERVER_MULTILIB:= 64中添加device.mk,但无法启动,请检查日志并找到以下错误。
01-20 09:44:31.637 2581 2581 F链接器:无法链接可执行的“/ system / bin / audioserver”:
“/system/lib64/libaudioflinger.so”中不受支持的ELF TLS DT条目
控制台:/ system / bin#文件audioserver
音频服务器:ELF共享对象,64位LSB arm64,动态(/ system / bin / linker64),适用于Android 28,BuildID = 01599,剥离
控制台:/ system / lib64#文件libaudioflinger.so
libaudioflinger.so:ELF共享对象,用于Android 28的64位LSB arm64,BuildID = fd41f,已剥离
/frameworks/av/media/audioserver/Android.mk
# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
# the LOCAL_MULTILIB for all audioserver exclusive libraries.
# This is relevant for 64 bit architectures where either or both
# 32 and 64 bit libraries may be built.
#
# AUDIOSERVER_MULTILIB may be set as follows:
# 32 to build 32 bit audioserver libraries and 32 bit audioserver.
# 64 to build 64 bit audioserver libraries and 64 bit audioserver.
# both to build both 32 bit and 64 bit libraries,
# and use primary target architecture (32 or 64) for audioserver.
# first to build libraries and audioserver for the primary target architecture only.
# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
audioserver应该正常工作
最佳答案
谷歌邮件列表“android-porting”回答了这个问题。我只是引用答案。
https://groups.google.com/forum/#!topic/android-porting/lK7dDeJT0k4