When I compiled Chrome V8 under ubuntu 12.04, I encountered a problem that is
arm-linux-androideabi-g++:fatal error, -fuse-linker-plugin, but liblto_plugin.so not found
The ndk version is r8b. How can I solve this problem?
When I compiled Chrome V8 under ubuntu 12.04, I encountered a problem that is
arm-linux-androideabi-g++:fatal error, -fuse-linker-plugin, but liblto_plugin.so not found
The ndk version is r8b. How can I solve this problem?
When you extra the android-ndk-*.tar.bz2
, it should create a symlink named liblto_plugin.so
to the real file liblto_plugin.so.?.?.?
.
If you have a problem creating symlinks (e.g. a shared directory in a virtual machine), the symlink won't be created and the problem will occur.
Try re-extracting the .tar.bz2
file to a filesystem that supports symlinks and verify that liblto_plugin.so
exists.
I found that there were a number of liblto_plugin.so.0.0.0 files in my android source tree and that copying the one in <source_folder>/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/libexec/gcc/arm-linux-androideabi/4.7/liblto_plugin.so.0.0.0
to liblto_plugin.so
in the same location fixed the problem.
I suspect maybe the original was a link to the .0.0.0
version but didn't survive the zip or rsync process I used to copy the source tree to my machine.
© 2022 - 2024 — McMap. All rights reserved.