1.下载libevent
2.解压
sudo tar xvf libevent-2.1.8-stable.tar.gz
3.进入目录,执行
source /opt/fsl-imx-x11/4.9.11-1.0.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
./configure --prefix=$PWD/tmp --host=arm-linux
make
make install
4.将tmp/include/*拷贝到ARM的/usr/include/以及工具链的usr/include/,再将tmp/lib/*拷贝到ARM的/usr/lib/以及工具链的usr/lib/
5.使用libevent
参考:https://blog.csdn.net/Lemon_tea666/article/details/92637297
https://blog.csdn.net/Lemon_tea666/article/details/92797520