I've compile the android source source ./build/envsetup.sh lunch aosp_x86_64-eng
when I run emulator64-x86 in terminal, error occur:
emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.7' not found (required by emulator64-x86)
emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by emulator64-x86)
emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by emulator64-x86)
emulator64-x86: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not found (required by emulator64-x86)
I've found qt in
/home/wanyu/work/aosp/prebuilts/android-emulator/linux-x86_64/lib64/qt/
this directory include libQt5Core.so.5.7, libQt5Widgets.so.5.7 etc.
but libQt5Core.so in
/usr/lib/x86_64-linux-gnu/
version is 5.5
I've tried to set LD_LIBRARY_PATH to:
/home/wanyu/work/aosp/prebuilts/android-emulator/linux-x86_64/lib64/
but the error still occur.
Copying the libQt5Core.so.5 to
/usr/lib/x86_64-linux-gnu/
will solve this error, but qt platform plugin libqxcb won't work.
How I can change the lib path to the
/home/wanyu/work/aosp/prebuilts/android-emulator/linux-x86_64/lib64
when I run emulator64-x86?