net-snmp-5.7.3 移植

来源:互联网 发布:网络安全产品 编辑:程序博客网 时间:2024/05/01 09:14

ubuntu14.04系统交叉编译net-snmp-5.7.3
交叉编译工具链 shm-linux-

Ubuntu是64位
嵌入式系统是32位

要求嵌入式linux系统支持网管代理功能
编译选项:需要支持动态加载,所以不需要 –enable-mini-agent选项
./configure –prefix=/app/net-snmp –host=sh4-linux –build=i386-linux –target=sh4-linux –with-cc=sh4-linux-gcc –with-ar=sh4-linux-ar –with-endianness=little –disable-manuals –disable-applications –disable-embedded-perl –without-perl-modules*重点内容**
每次都需要make clean一下,本人吃过亏,因为要在Ubuntu系统先测试一下,所以编译环境不同,如果不clean,直接编译会报各种无厘头错误,切记!!!
make clean;make
make install

0 0