交叉編譯Procps-ng-3.3.11【轉】


轉自:http://cncc.bingj.com/cache.aspx?q=procps+%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91&d=4532892959704113&mkt=zh-CN&setlang=zh-CN&w=KacAdw9ECWcNUhhT0j_s6ionEW2hsPfI

交叉編譯Procps-ng-3.3.11

Procps-ng軟件包提供進程和內存管理相關的程序。

源碼下載和解壓:

http://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.11.tar.xz
tar xvJf procps-ng-3.3.11.tar.xz

編譯和安裝:

cd procps-ng-3.3.11
echo "ac_cv_func_realloc_0_nonnull=yes" > arm-linux.cache
echo "ac_cv_func_malloc_0_nonnull=yes" >> arm-linux.cache
NCURSES_CFLAGS="-I/home/armdev/arm-linux/out/usr/include" NCURSES_LIBS="-L/home/armdev/arm-linux/out/usr/lib -lncurses -ltinfo" ./configure --host=arm-linux-gnueabi --prefix=/usr --exec-prefix= --libdir=/usr/lib --disable-static --disable-kill --with-ncurses --cache-file=arm-linux.cache

make
DESTDIR=/home/armdev/arm-linux/out make install

編譯結果:

動態鏈接庫:
libprocps

可執行文件:
top
slabtop
free
pgrep
pidof
pkill
pmap
ps
pwdx
tload
uptime
vmstat
w
sysctl

文章導航


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM