交叉编译psmisc

2022-02-17  本文已影响0人  叶迎宪

系统需要安装autopoint、automake,并事先交叉编译好ncurse。假设ncurse安裝在/home/3536_cross

wget https://gitlab.com/psmisc/psmisc/-/archive/master/psmisc-master.tar.bz2
tar xf psmisc-master.tar.bz2
cd psmisc-master
./autogen.sh
./configure CFLAGS='-I/home/3536_cross/include' LDFLAGS='-L/home/3536_cross/lib' --host=aarch64-linux-gnu

vi config.h
干掉这两行
#define malloc rpl_malloc
#define realloc rpl_realloc

vi src/pstree.c
#include <curses.h>
#include <term.h>
改为
#include <ncurses/curses.h>
#include <ncurses/term.h>

上一篇 下一篇

猜你喜欢

热点阅读