我正在为arm交叉编译oprofile。
$ 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'我得到以下错误(参见最后一行)
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设置为交叉编译二进制文件,那么配置步骤就完成得很好,没有错误。
我该如何解决这个问题呢?
发布于 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
https://stackoverflow.com/questions/43460884
复制相似问题