Ошибка компиляции oprofile для 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 на двоичные файлы кросс-компилятора, тогда шаг настройки завершается просто отлично, без ошибок.

Как я могу это исправить?

1 ответ

Пакет oprofile имеет следующие зависимости

1) попт

2) binutils

Пакет popt и binutils предоставляет библиотеки, которые используются oprofile. Поэтому сначала скомпилируйте popt и binutils. Вы также можете сослаться на ссылку ниже

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

Другие вопросы по тегам