Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to view images outside of X. I used to use seejpeg, but it stopped working. I had been using fbi for the last 12 years, but its 'latest' (5 years old) won't build. I looked at all the package descriptions in Slackware, find nothing.
Depends seem to be, for all of it:
libexif libepoxy poppler-glib libwebp mesa
Here is a tarball
Code:
curl https://www.kraxel.org/releases/fbida/fbida-2.14.tar.gz -o fbida-2.14.tar.gz
mkdir ~/fbida
tar -xf fbida-2.14.tar.gz -C ~/fbida/
cd ~/fbida/fbida-2.14
There is the source tree. Install all of the depends if you don't already have them installed, and then build it. Got the man page, images, headers and c files.
Good opportunity to learn. On something that you know works.
Code:
gcc fbi.c -o fbi
In file included from fbi.c:39:
readers.h:1:10: fatal error: pixman.h: No such file or directory
1 | #include <pixman.h>
| ^~~~~~~~~~
compilation terminated.
Ok, I've got pixman installed.
Code:
locate pixman.h
/usr/include/pixman-1/pixman.h
So that's not being included correctly for my box. Wrong path.
I'm stopping there. Try to build it for yourself, fix the errors, install all of the depends. Happy coding.
cd ~/fbida/fbida-2.14/
./fbi
This program displays images using the Linux framebuffer device.
Supported formats: PhotoCD, jpeg, ppm, gif, tiff, xwd, bmp, png,
webp. It tries to use ImageMagick's convert for unknown file formats.
usage: fbi [ options ] file1 file2 ... fileN
-h -help print this help text
-V -version print fbi version number
-i -info print device info
-store write cmd line args to config file
-l -list <arg> read image filelist from file <arg>
-P -text switch into text reading mode
-a -autozoom automagically pick useful zoom factor
-(no)autoup like the above, but upscale only
-(no)autodown like the above, but downscale only
-w -(no)fitwidth use width only for autoscaling
-v -(no)verbose show filenames all the time
-u -(no)random show files in a random order
-1 -(no)once don't loop (for use with -t)
-(no)comments display image comments
-e -(no)edit enable editing commands (see man page)
-(no)backup create backup files when editing
-(no)preserve preserve timestamps when editing
-(no)readahead read ahead images into cache
-cachemem <arg> image cache size in megabytes
-blend <arg> image blend time in miliseconds
-T -vt <arg> start on virtual console <arg>
-s -scroll <arg> scroll image by <arg> pixels
-t -timeout <arg> load next image after <arg> sec without user input
-r -resolution <arg> pick PhotoCD resolution (1..5)
-f -font <arg> use font <arg> (anything fontconfig accepts)
-d -device <arg> use framebuffer/drm device <arg>
-o -output <arg> use drm output <arg> (try -info for a list)
-(no)interactive allow keyboard interaction
-m -mode <arg> use video mode <arg> (from /etc/fb.modes)
Large images can be scrolled using the cursor keys. Zoom in/out
works with '+' and '-'. Use ESC or 'q' to quit. Space and PgDn
show the next, PgUp shows the previous image. Jumping to a image..
That works. You should be able to build that yourself.
I've been building it myself for 12 years. As I wrote in my original message I already had the current source. I get a slew of different errors than you do. I had hoped that viewing images outside of X was a common-enough act that there would be something better.
Show your source. Where you got it from.
How are you trying to compile it?
If you had read my previous posts you would know.
Quote:
Originally Posted by teckk
Show what compiler errors that you are getting.
Quote:
/usr/bin/ld: viewer.o:/usr/src/fbida-2.14/idaconfig.h:20: multiple definition of `ida_lists'; ida.o:/usr/src/fbida-2.14/idaconfig.h:20: first defined here
/usr/bin/ld: idaconfig.o:/usr/src/fbida-2.14/idaconfig.h:20: multiple definition of `ida_lists'; ida.o:/usr/src/fbida-2.14/idaconfig.h:20: first defined here
/usr/bin/ld: filebutton.o:/usr/src/fbida-2.14/idaconfig.h:20: multiple definition of `ida_lists'; ida.o:/usr/src/fbida-2.14/idaconfig.h:20: first defined here
/usr/bin/ld: filelist.o:/usr/src/fbida-2.14/idaconfig.h:20: multiple definition of `ida_lists'; ida.o:/usr/src/fbida-2.14/idaconfig.h:20: first defined here
/usr/bin/ld: browser.o:/usr/src/fbida-2.14/idaconfig.h:20: multiple definition of `ida_lists'; ida.o:/usr/src/fbida-2.14/idaconfig.h:20: first defined here
Eliminating the second definition of ida_lists in idaconfig.c (or, alternatively, eliminating it in idaconfig.h) didn't work. I found no other definitions of ida_lists in the source or linux include files. I've tried to chase down errors such as these in the past and found continuing errors, unsurprising in old code, and better choices with newer programs.
Quote:
Originally Posted by teckk
I'll bet that there isn't that much interest in it anymore.
That would be my most fundamental misunderstanding. Linux supports lots of old stuff and lots of CLI stuff. I use X only for Javascript support. I use lots of old software: mail, lynx, emacs, that people continue to support. I rely on a non-X program to view images in mail and lynx.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.