将libffi编译为raspberry pi

时间:2015-08-29 17:35:25

标签: linux makefile raspberry-pi static-linking libffi

我正在尝试编译libffi-3.2.1的静态库但没有成功。

  1. cd libffi-3.2.1
  2. ./ configure --prefix = / home / pi / libraries / libffi --enable-static --disable-shared
  3. 使
  4. 输出如下:

    MAKE armv6l-unknown-linux-gnueabihf:0 * all-all make [1]:输入目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf' make'AR_FLAGS =''CC_FOR_BUILD =''CFLAGS = -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -Wall -fexceptions''CXXFLAGS = -g -O2''CFLAGS_FOR_BUILD =''CFLAGS_FOR_TARGET ='' INSTALL = / usr / bin / install -c''INSTALL_DATA = / usr / bin / install -c -m 644''INSTALL_PROGRAM = / usr / bin / install -c''INSTALL_SCRIPT = / usr / bin / install -c' 'JC1FLAGS =''LDFLAGS =''LIBCFLAGS =''LIBCFLAGS_FOR_TARGET =''MAKE = make''MAKEINFO = / bin / bash /home/pi/libffi-3.2.1/missing makeinfo''PICFLAG =''PICFLAG_FOR_TARGET =' 'RUNTESTFLAGS =''SHELL = / bin / bash''exec_prefix = / home / pi / libraries / libffi''infodir = / home / pi / libraries / libffi / share / info''libdir = / home / pi / libraries / libffi / lib''mandir = / home / pi / libraries / libffi / share / man''prefix = / home / pi / libraries / libffi''AR = ar''AS = as''CC = gcc''CXX = g ++''LD = / usr / bin / ld''NM = / usr / bin / nm -B''RANLIB = ranlib''DESTDIR ='all-recursive make [2]:输入目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf' 全力以赴 make [3]:输入目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf/include' make [3]:'all'没什么可做的。 make [3]:离开目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf/include' 全力以赴 make [3]:输入目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf/testsuite' make [3]:'all'没什么可做的。 make [3]:离开目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf/testsuite' 全人类 make [3]:输入目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf/man' make [3]:'all'没什么可做的。 make [3]:离开目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf/man' make [3]:输入目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf' 恢复=:&& backupdir =“。am $$”&& \ am__cwd = pwd&& CDPATH =“$ {ZSH_VERSION +。}:”&& cd ..&& \ rm -rf $ backupdir&& mkdir $ backupdir&& \ if(/ bin / bash /home/pi/libffi-3.2.1/missing makeinfo --version)> / dev / null 2>& 1;然后 \   for .. in /doc/libffi.info ../doc/libffi.info-[0-9] ../doc/libffi.info-[0-9][0-9] ../doc/libffi .i [0-9] ../doc/libffi.i[0-9][0-9];做\     如果测试-f $ f;然后是mv $ f $ backupdir;恢复= MV;否则:;网络连接; \   完成; \ 否则:; fi&& \ cd“$ am__cwd”; \ if / bin / bash /home/pi/libffi-3.2.1/missing makeinfo -I doc -I ../doc \  -o ../doc/libffi.info ../doc/libffi.texi; \ 然后 \   RC = 0; \   CDPATH =“$ {ZSH_VERSION +。}:”&& cd ..; \ 别的\   RC = $ ?; \   CDPATH =“$ {ZSH_VERSION +。}:”&& cd ..&& \   $ restore $ backupdir / * echo "./../doc/libffi.info" | sed 's|[^/]*$||'; \ 网络连接; \ rm -rf $ backupdir;退出$ rc /home/pi/libffi-3.2.1/missing:line 81:找不到makeinfo:command 警告:系统上缺少“makeinfo”。          如果你修改了'.texi'文件,你应该只需要它,或者          任何其他间接影响手册方面的文件。          您可能想要安装Texinfo包:          http://www.gnu.org/software/texinfo/          虚假的makeinfo调用也可能是后果          使用有问题的'make'(AIX,DU,IRIX),在这种情况下你可以          想要安装GNU make:          http://www.gnu.org/software/make/ Makefile:1408:目标'../doc/libffi.info'的配方失败 make [3]: * [../doc/libffi.info]错误127 make [3]:离开目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf' Makefile:1596:目标'all-recursive'的配方失败 make [2]: [all-recursive]错误1 make [2]:离开目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf' Makefile:730:目标'all'的配方失败 make [1]: [all]错误2 make [1]:离开目录'/home/pi/libffi-3.2.1/armv6l-unknown-linux-gnueabihf' Makefile:607:目标'全部'的配方失败 make:* [all-all]错误2

    我错过了什么? 此致

1 个答案:

答案 0 :(得分:0)

missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system

尝试安装texinfo

sudo apt-get install texinfo