美文网首页
交叉编译psmisc

交叉编译psmisc

作者: 叶迎宪 | 来源:发表于2022-02-17 22:24 被阅读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>

相关文章

  • 交叉编译psmisc

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

  • ITOP 4412 交叉编译环境 的搭建

    1 交叉编译工具### 编译的时候需要用到交叉编译工具,提供的交叉编译工具是用户光盘“02_编译器以及烧写工具”→...

  • golang进行交叉编译

    golang进行交叉编译 交叉编译即编译不同操作系统平台的可执行程序 golang执行交叉编译,只需要使用两个变量...

  • 交叉编译

    配置64位ubuntu交叉编译环境时,设置arm的工具链的路径,需要先安装lib32stdc++6 然后在~/.b...

  • 交叉编译

    在一种计算机环境中运行的编译程序,能编译出在另外一种环境下运行的代码,我们就称这种编译器支持交叉编译。这个编译过程...

  • 交叉编译

    使用go的交叉编译 最后使用go build windows_fping.go 编译出.exe可执行文件 如果编译...

  • 交叉编译

    1.为啥需要交叉编译?因为linux 系统上的gcc 在android 系统上没法正常调用,所有需要使用andro...

  • 在Linux环境交叉编译Qt5.5.0源码及编译示例

    在Linux环境交叉编译Qt5.5.0源码及编译示例 实验环境 交叉编译平台 (on VMware14.0,Win...

  • debian 交叉编译 openssl

    使用上次编译的 交叉编译工具链来编译openssl如果没建立交叉编译环境的先阅读:编译工具链子制作神器 – cro...

  • 交叉编译freetype

    交叉编译freetype 下载FreeType freetype官网 freetype2.8.1下载 交叉编译 查...

网友评论

      本文标题:交叉编译psmisc

      本文链接:https://www.haomeiwen.com/subject/ukoslrtx.html