#1 Le 16/06/2017, à 10:54
- DonutMan75
Installation manuelle de fbi
Bonjour,
j'essaie d'installer la commande "fbi" (frame buffer imageviewer) permettant de faire une sortie ASCII dans le terminal d'un fichier image passé en argument.
Je suis sur un Ubuntu 12.04.5 LTS où je ne suis pas sudoers, il faut donc que je récupère les sources et que je compile tout ça pour une utilisation "en local" dans mon $HOME.
Je rencontre un problème lors de la compilation, pourriez-vous m'aider ?
Après quelques recherches, j'ai trouvé les sources à cette adresse : https://launchpad.net/ubuntu/+source/fbi/2.07-7
Alors déjà, il y a plusieurs fichiers :
fbi_2.07.orig.tar.gz 208.6 KiB 5015c29deacb92bf4647a342bfd62d77854151cfee3d658a5fce311f809aaeb1
fbi_2.07-7.debian.tar.gz 8.5 KiB 4d3f457b5a4c9d1dcb32b75927d57f4bf1d42124f0dbb5bdf1364c0977ca82dc
fbi_2.07-7.dsc 1.2 KiB 89ed37710faac595e0e3d44b25fd48ba5298a6f1d481f72354ae80b25def3b1f
J'ai téléchargé le plus gros, à savoir "fbi_2.07.orig.tar.gz".
J'ai ensuite fait :
$ tar -xvf ./fbi_2.07.orig.tar.gz
$ cd ./fbi-2.07
$ ll | grep -vE '.*\.(c|h)'
total 800
drwxr-xr-x 9 donut work 4096 Jun 16 11:26 .
drwxr-xr-x 4 donut work 4096 Jun 16 11:29 ..
drwxr-xr-x 2 donut work 4096 Jun 9 2008 backup
-rw-r--r-- 1 donut work 3790 Mar 28 2004 Changes
-rw-r--r-- 1 donut work 17982 Mar 28 2004 COPYING
drwxr-xr-x 2 donut work 4096 Jun 9 2008 desktop
-rw-r--r-- 1 donut work 2834 Mar 28 2004 exiftran.man
-rwxr-xr-x 1 donut work 361 Mar 28 2004 fallback.pl
-rwxr-xr-x 1 donut work 1190 Jul 25 2006 fbgs
-rw-r--r-- 1 donut work 738 Jun 9 2008 fbgs.man
-rw-r--r-- 1 donut work 5452 Jun 9 2008 fbi.man
-rw-r--r-- 1 donut work 6055 Jun 13 2006 GNUmakefile
-rw-r--r-- 1 donut work 23347 Mar 28 2004 Ida.ad
-rw-r--r-- 1 donut work 3637 Mar 28 2004 ida.man
-rw-r--r-- 1 donut work 1769 Jun 9 2008 INSTALL
drwxr-xr-x 2 donut work 4096 Jun 9 2008 jpeg
-rw-r--r-- 1 donut work 16990 Mar 28 2004 logo.jpg
drwxr-xr-x 2 donut work 4096 Jun 9 2008 mk
drwxr-xr-x 2 donut work 4096 Jun 9 2008 rd
-rw-r--r-- 1 donut work 1074 Mar 28 2004 README
-rw-r--r-- 1 donut work 821 Mar 28 2004 TODO
-rw-r--r-- 1 donut work 5 Jun 9 2008 VERSION
drwxr-xr-x 2 donut work 4096 Jun 9 2008 wr
drwxr-xr-x 2 donut work 4096 Jun 9 2008 xpm
Il y a un GNUMakefile, j'ai donc tenté un make, comme indiqué dans le fichier INSTALL :
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i686-pc-linux-gnu
$ make -f GNUmakefile
checking for libdir name ... lib
checking for X11 app-defaults prefix ... /etc/X11
checking for endian.h ... yes
checking for linux/fb.h ... yes
checking for libexif/exif-log.h ... no
checking for fopencookie ... yes
checking for strcasestr ... yes
checking for pcd_open in pcd ... no
checking for DGifOpenFileName in ungif ... no
checking for png_read_info in png ... yes
checking for TIFFOpen in tiff ... no
checking for Magick-config ... no
checking for sane_init in sane ... no
checking for curl_easy_init in curl ... no
checking for lirc_init in lirc_client ... no
checking for XmStringGenerate in Xm ... no
Make.config written, edit if needed
checking for libdir name ... lib
CC exiftran.o
exiftran.c:12:31: fatal error: libexif/exif-data.h: No such file or directory
compilation terminated.
make: *** [exiftran.o] Error 1
Donc il lui manque le fichier exif-data.h de la bibilothèque libexif.
Libexif semble pourtant être correctement installé :
$ ldconfig -p | grep exif
libexif.so.12 (libc6) => /usr/lib/i386-linux-gnu/libexif.so.12
Point de exif-data.h en revanche :
$ locate 'exif-data.h'
$
A ce stade je me suis dit que j'ai peut-être récup le mauvais fichier et j'ai donc téléchargé fbi_2.07-7.debian.tar.gz (pourtant 20 fois plus petit).
Dans cette archive, j'ai les fichiers suivants :
$ ll
total 60
drwxr-xr-x 4 donut work 4096 Feb 14 2011 .
drwxr-xr-x 4 donut work 4096 Jun 16 11:29 ..
-rw-r--r-- 1 donut work 12757 Feb 14 2011 changelog
-rw-r--r-- 1 donut work 2 Nov 23 2009 compat
-rw-r--r-- 1 donut work 1419 Feb 14 2011 control
-rw-r--r-- 1 donut work 947 Nov 23 2009 copyright
-rw-r--r-- 1 donut work 49 Nov 23 2009 exiftran.files
-rw-r--r-- 1 donut work 39 Nov 23 2009 fbi.files
-rw-r--r-- 1 donut work 2353 Nov 23 2009 fbi.mime
drwxr-xr-x 2 donut work 4096 Sep 1 2010 patches
-rwxr-xr-x 1 donut work 765 Nov 23 2009 rules
drwxr-xr-x 2 donut work 4096 Nov 23 2009 source
Et là je suis complétement perdu... Que dois-je faire de ces trucs, y'a aucun README ou INSTALL qui pourraient m'aider....
Merci d'avance pour votre aide
Donut
Dernière modification par DonutMan75 (Le 16/06/2017, à 10:54)
Hors ligne
#2 Le 17/06/2017, à 13:22
- gl38
Re : Installation manuelle de fbi
Pour avoir exif-data.h, il faut installer le paquet libexif-dev.
Mais quand on n'a pas sudo et que sa version d'ubuntu est obsolète, ça ne va pas être très facile !
Cordialement,
Guy
Hors ligne