本帖最后由 fuqiye 于 2016-1-27 11:12 编辑
htop-1.0.2 在AM335X上移植
/*****************************************************************************************************************************/ begin 1、编译与安装ncurses 将源码解压到自定义一个目录下 #cd /home/voip_server_am335x_project/app/ncurses/ #tar xvzf ncurses-6.0.tar.gz #cd ncurses-6.0/ ./configure配置Makefile #./configure CC=arm-linux-gnueabihf-gcc --host=arm-linux-gnueabihf --prefix=/usr/share/ncurses 编译源码
#make
编译源码按装到指定目录下(就是刚才--prefix指定的目录^_^)
#make install 2、编译与安装htop 将源码解压到自定义一个目录下 #cd /home/voip_server_am335x_project/app/htop/ #tar xvzf htop-1.0.2.tar.gz #cd htop-1.0.2/ ./configure配置Makefile #./configure CC=arm-linux-gnueabihf-gcc --host=arm-linux-gnueabihf --disable-unicode LDFLAGS=-L/usr/share/ncurses/lib/ CPPFLAGS=-I/usr/share/ncurses/include/ --prefix=$PWD/_install 编译源码
#make
编译源码按装到指定目录下(就是刚才--prefix指定的目录^_^)
#make install 2、下载与运行htop a、将编译好的htop下载到目标板上/usr/sbin/目录 b、将编译好的terminfo整个文件夹下载到目标板上/usr/share/ncurses/share/目录(注意:这个路径必须和配置ncurses时的路径相同即--prefix=/usr/share/ncurses) c、将编译好的ncursesr的动态链接库下载到目标板上/lib/目录(注意:复制时要加-rfa参数) 运行htop 运行结果如下
|