简体   繁体   English

如何安装glibc来为Android编译性能

[英]How to install glibc to compile perf for android

when i compile perf for android, i recieve the error: 当我为Android编译perf时,出现以下错误:

* No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static *未找到gnu / libc-version.h,请安装glibc-dev [el] / glibc-static

I tried to install libc6-dev and build-essential but i still met this error. 我尝试安装libc6-dev和build-essential,但仍然遇到此错误。 After that i compile and install glibc follow the instruction: 之后,我编译并安装glibc,请按照以下说明进行操作:

http://www.tldp.org/HOWTO/Glibc2-HOWTO-5.html http://www.tldp.org/HOWTO/Glibc2-HOWTO-5.html

http://ftp.gnu.org/gnu/libc/ http://ftp.gnu.org/gnu/libc/

However, i have some problems with this way, so glibc is successfully installed. 但是,我用这种方式有一些问题,因此glibc已成功安装。 Do you have any ideas to solve that errors or install glibc-dev as suggestion? 您是否有解决该错误的想法或建议安装glibc-dev? Thanks 谢谢

Have you looked at external/linux-tools-perf/ inside android sources? 您是否看过android来源中的external / linux-tools-perf /?

https://android.googlesource.com/platform/external/linux-tools-perf/ https://android.googlesource.com/platform/external/linux-tools-perf/

I spent hours trying to get perf tools compiled for ARM. 我花了数小时试图获取为ARM编译的性能工具。 Tried all the methods mentioned in https://stuff.mit.edu/afs/sipb/contrib/linux/tools/perf/Documentation/android.txt They never worked for some reason. 尝试了https://stuff.mit.edu/afs/sipb/contrib/linux/tools/perf/Documentation/android.txt中提到的所有方法,但由于某种原因它们从未起作用。 Finally I stumbled upon this: https://wiki.linaro.org/LMG/Engineering/UsingPerfOnAndroid 最后我偶然发现了这个: https : //wiki.linaro.org/LMG/Engineering/UsingPerfOnAndroid

MAKE NOTE OF THE TYPO in the page: It should be "m -j32 perf" I actually went with "m -j16 perf" Works for me! 在页面中记下打字错误:应该是“ m -j32 perf”,我实际上使用了“ m -j16 perf”对我有用! Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM