首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编译arm的oprofile时出错

编译arm的oprofile时出错
EN

Stack Overflow用户
提问于 2017-04-18 06:51:55
回答 1查看 436关注 0票数 1

我正在为arm交叉编译oprofile。

代码语言:javascript
复制
$ export CC=arm-linux-gnueabi-gcc
$ export CXX=arm-linux-gnueabi-g++
$ export CXXCPP='arm-linux-gnueabi-g++ -E'
$ export CPP='arm-linux-gnueabi-gcc -E'

我得到以下错误(参见最后一行)

代码语言:javascript
复制
checking for ld... /usr/arm-linux-gnueabi/bin/ld
checking /usr/include/linux/perf_event.h usability... yes
checking /usr/include/linux/perf_event.h presence... yes
checking for /usr/include/linux/perf_event.h... yes
checking kernel supports perf_events... yes
checking whether PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h... yes
checking whether precise_ip is defined in perf_event.h... yes
checking whether malloc attribute is understood... no
checking whether __builtin_expect is understood... yes
checking for sched_setaffinity... yes
checking for perfmonctl... no
checking for poptGetContext in -lpopt... no

configure: error: popt library not found

如果我没有将我的CXX,CPP设置为交叉编译二进制文件,那么配置步骤就完成得很好,没有错误。

我该如何解决这个问题呢?

EN

回答 1

Stack Overflow用户

发布于 2017-04-19 21:52:16

oprofile包具有以下依赖项

1) popt

2) binutils

popt和binutils包提供了oprofile使用的库。所以先编译popt和binutils。你也可以参考下面的链接

http://bylnote.blogspot.in/2014/04/cross-compile-oprofile-for-arm-linux.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43460884

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档