Package Details: fim 0.6-3

Git Clone URL: (read-only, click to copy)
Package Base: fim
Description: FIM (Fbi IMproved) is a highly customizable and scriptable image viewer.
Upstream URL:
Licenses: GPL2
Conflicts: fim-svn
Submitter: Dragonlord
Maintainer: meanjollies
Last Packager: meanjollies
Votes: 28
Popularity: 1.05
First Submitted: 2008-02-27 17:02 (UTC)
Last Updated: 2020-07-23 05:21 (UTC)

Latest Comments

ch3 commented on 2020-09-21 12:07 (UTC)

Thanks. (It is/was just my local setup that is/was messy.)

meanjollies commented on 2020-09-21 12:01 (UTC)

bison and flex are pulled in by base-devel. Per PKGBUILD guidelines, these should not be a part of makedepends.

ch3 commented on 2020-09-21 10:18 (UTC)

May it be that bison and flex should be in the makedepends?

meanjollies commented on 2020-07-23 05:22 (UTC)

Thank you, @garron.

kitchen_ace commented on 2020-07-22 23:05 (UTC)

I added this to the PKGBUILD after configure to get it to build in GCC 10. Note that this disables multithreading, and so should not be considered a proper fix.

  sed -i -e 's/#define FIM_WANT_BACKGROUND_LOAD.*//' src/fim.h
  sed -i -e 's/void exit/FIM_NORETURN void exit/' src/CommandConsole.h
  sed -i -e 's/°//g' src/fim.cpp

meanjollies commented on 2020-05-19 02:53 (UTC)

Thanks for reporting this. This is now happening after the upgrade of GCC 9 to 10. I have opened up a bug report with the upstream project.

mattf commented on 2020-05-19 02:19 (UTC)

/usr/include/c++/10.1.0/thread:149:46: required from ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = fim::PACA&; _Args = {const fim::string&}; <template-parameter-1-3> = void]’ Cache.h:178:28: required from here /usr/include/c++/10.1.0/thread:211:46: error: could not convert ‘{std::forward<fim::PACA&>(( & __args#0)), std::forward<const fim::string&>(( & __args#1))}’ from ‘<brace-enclosed initializer list>’ to ‘std::tuple<fim::PACA, fim::string>’ 211 | : _M_func{{std::forward<_Args>(__args)...}} | ^ | | | <brace-enclosed initializer list> make[4]: [Makefile:772: SDLDevice.o] Error 1 make[4]: Leaving directory '/home/matheus/.cache/yay/fim/src/fim-0.6-trunk/src' make[3]: [Makefile:805: all-recursive] Error 1 make[3]: Leaving directory '/home/matheus/.cache/yay/fim/src/fim-0.6-trunk/src' make[2]: [Makefile:442: all] Error 2 make[2]: Leaving directory '/home/matheus/.cache/yay/fim/src/fim-0.6-trunk/src' make[1]: [Makefile:447: all-recursive] Error 1 make[1]: Leaving directory '/home/matheus/.cache/yay/fim/src/fim-0.6-trunk' make: *** [Makefile:358: all] Error 2 ==> ERROR: A failure occurred in build().

emk2203 commented on 2020-05-05 16:42 (UTC)

Your solution works (I made sure to get my makepkg.conf back to default values).

Please add this into the PKGBUILD, together with --enable-sdl.

Thanks for your prompt help!

meanjollies commented on 2020-05-05 16:32 (UTC)

Did my solution work? If so, I'll add it into the PKGBUILD, and will also add --enable-sdl.

emk2203 commented on 2020-05-05 16:30 (UTC)

Thanks for your input and the proper solution. Just building on amd64 here, but I want to try this next on some ARM machines with ARMV7L and AARCH64. If there is something which needs to be done differently, please let me know.

meanjollies commented on 2020-05-05 16:07 (UTC)

sed -i 's/configure/configure LIBS=-lpthread/' PKGBUILD, then try to build it manually.

Also, is this being built on some non-x86 architecture?

emk2203 commented on 2020-05-05 15:35 (UTC) (edited on 2020-05-05 16:26 (UTC) by emk2203)

I added the option -lpthread both to CFLAGS and CXXFLAGS. Program compiles and installs. The user needs to be added to the video group besides setting the font path in .bash_profile.

Unchanged, it works in the tty, but under X you get:

ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?) ioctl VT_GETSTATE: Inappropriate ioctl for device

Same with sudo fim.

X support is not the default, a bit unexpected. For fim to work under X, the option --enable-sdl needs to be added in the ./configure part in PKGBUILD and the dependency sdl downloaded. After all this, fim works well under X and with the tty.

meanjollies commented on 2020-05-05 12:21 (UTC)

What libraries does LIBS include? It should include -lpthread, but if it does not, can you let me know if adding LIBS=-lpthread to the PKGBUILD's ./configure options works? Unfortunately, I can't reproduce this, so your help is appreciated.

emk2203 commented on 2020-05-05 11:41 (UTC)

Doesn't compile. Error message:

/usr/bin/ld: Browser.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' /usr/bin/ld: /usr/lib/ error adding symbols: DSO missing from command line

I tried adding '-std=c++11 -pthread' to the CXX_FLAGS declaration in the Makefile, but that didn't help. Update would be appreciated.

dakataca commented on 2020-04-14 20:44 (UTC)

Error en la compilación del paquete!

oriba commented on 2019-06-06 14:14 (UTC)

Please update the package. Also, please add the font-dependency: package 'terminus-font' is needed.

bartus commented on 2019-04-04 13:09 (UTC)

libexif missing form depends

treeshateorcs commented on 2016-11-08 02:02 (UTC)

Please add libexif to the dependencies Although it doesn't compile even if I install libexif, it shows the following error message: g++ -DHAVE_CONFIG_H -I. -I.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -c -o CommandConsole-init.o CommandConsole-init.cpp CommandConsole-init.cpp: In member function ‘fim_err_t fim::CommandConsole::init(fim::string)’: CommandConsole-init.cpp:258:17: error: ‘FIM_WITH_LIBSDL’ was not declared in this scope || device==FIM_WITH_LIBSDL ^~~~~~~~~~~~~~~ make[4]: *** [Makefile:780: CommandConsole-init.o] Error 1 make[4]: Leaving directory '/home/budkin/.cache/pacaur/fim/src/fim-0.5-rc2/src' make[3]: *** [Makefile:813: all-recursive] Error 1 make[3]: Leaving directory '/home/budkin/.cache/pacaur/fim/src/fim-0.5-rc2/src' make[2]: *** [Makefile:441: all] Error 2 make[2]: Leaving directory '/home/budkin/.cache/pacaur/fim/src/fim-0.5-rc2/src' make[1]: *** [Makefile:435: all-recursive] Error 1 make[1]: Leaving directory '/home/budkin/.cache/pacaur/fim/src/fim-0.5-rc2' make: *** [Makefile:346: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... :: failed to build fim package(s)

anntzer commented on 2016-07-07 18:55 (UTC)

Regarding the message ==> To get fim to work after you've installed it, place the following export in ==> your ~/.profile file: ==> ==> export FBFONT=/usr/share/kbd/consolefonts/ter-216n.psf.gz This font is not provided by the package, and setting FBFONT as suggested results in the error message: font "/usr/share/kbd/consolefonts/ter-216n.psf.gz" is not available

stevenhoneyman commented on 2014-10-11 16:49 (UTC)

flex and bison are both in base-devel. "Warning: Packages in the AUR assume the base-devel group is installed, and AUR packages will not list members of this group as dependencies even if the package cannot be built without them. Please ensure this group is installed before complaining about failed builds." - Arch wiki

kaze commented on 2014-10-11 16:45 (UTC)

This package also requires core/flex and core/bison to build.

stevenhoneyman commented on 2014-07-08 21:47 (UTC)

Fixed. Shame it doesn't support PSF2 fonts - though the inbuilt is OK. ...Now if only I could make it work on KMSCON...

quite commented on 2014-07-08 21:34 (UTC)

You might as well take it, I'm not stuck in console often nowdays :)

stevenhoneyman commented on 2014-07-08 21:31 (UTC)

Either/or is fine by me :) Here's a fix to run in prepare(): sed -i -e 's#\(DGifCloseFile(h->gif\));#\1, \&h->ErrorCode);#' \ -e 's#char .Err#const &#' src/FbiStuffGif.cpp ...that's the reason I flagged the orphan request though, nothing personal - just saw it was broken and knew I could fix it.

quite commented on 2014-07-08 21:26 (UTC)

You're welcome to submit a working PKGBUILD. And then again when upstream fixes it. (Or take over maintenance)

stevenhoneyman commented on 2014-07-08 18:59 (UTC)

It's just 3 lines that need changing to match the slightly different abi in the new giflib. Also libspectre, sdl, djvulibre should really be optdepends

quite commented on 2014-07-08 09:17 (UTC)

I've contacted upstream about the problem

tavsanoglu commented on 2013-10-25 10:08 (UTC)


quite commented on 2013-10-25 09:18 (UTC)

Compilation fixed locally, should work now...

quite commented on 2013-10-24 11:12 (UTC)

OK, not working at the moment. Pending a discussion with upstream concerning compiling problems

quite commented on 2013-10-24 10:51 (UTC)

hav3lock commented on 2013-05-03 15:19 (UTC)

doesn't seem to help.

hav3lock commented on 2013-05-03 15:16 (UTC)

oooh, looks like it can be compiled with a hardcoded font built-in as a backup. The install file and export and such may not be needed after all. I'll keep looking into it.

hav3lock commented on 2013-05-03 14:46 (UTC)

A better place to put the export would be in your ~/.profile file, methinks. Could be wrong, though, but that's what I would do.

hav3lock commented on 2013-05-03 14:44 (UTC)

okay, will I'll try to write up a *.install file or something or other to notify users as/after they've installed it that they gotta DO SOMETHING :P in order for it work.

menta commented on 2013-04-27 14:39 (UTC)

I only did a quick check using export FBFONT=/usr/share/kbd/consolefonts/ter-216n.psf.gz; fim image.png I have not tried yet, but I think a permanent solution would be setting the console font described in the wiki ( or by exporting the FBFONT variable using e.g. ~/.bashrc. I hope this helps.

hav3lock commented on 2013-04-25 23:10 (UTC)

You're welcome; Could you elaborate on how you got it to work, please?

menta commented on 2013-04-25 22:07 (UTC)

Thank you lspci, I have tried terminus-font and it works.

hav3lock commented on 2013-04-24 19:02 (UTC)

I don't really know how to answer your questions, since I don't know anything about PSF fonts or what the differences between PSF v1 and PSF v2 are. I have a feeling that this may be more of an internal fim-based problem than anything else. I'll try snooping through the source code and see if I can find anything there.

hav3lock commented on 2013-04-24 19:00 (UTC)

I get the same thing; I'm using Lat2-Terminus16 for my console font. I'm not sure how to fix it either, otherwise I would have posted a comment on how to solve the problem. :/

menta commented on 2013-04-24 13:17 (UTC)

Hi, Which font are you using fim with? For me 'fim image.png' reports: can't use font /usr/share/kbd/consolefonts/lat1-16.psfu.gz: first two magic bytes (0x72 0xb5) conform to PSF version 2, which is unsupported. font "(null)" is not available The only PSF version 1 font I found on my system is /usr/share/kbd/consolefonts/LatGrkCyr-8x16.psfu.gz. Is there a way to use PSF version 2 fonts or could you advise other PSF version 1 fonts? Thanks in advance!

hav3lock commented on 2013-04-20 18:41 (UTC)

adopted and updated.

TrialnError commented on 2012-12-05 20:51 (UTC)

Updated PKGBuild to latest beta release But an error occurs: DebugConsole.cpp: in element function »int fim::MiniConsole::add(const char*)«: DebugConsole.cpp:122:24: Error: invalid conversion of »const char*« to »char*« [-fpermissive]

BoySka commented on 2010-03-30 12:28 (UTC)

It seems that flex & bison are too old. How could you compile this?

BoySka commented on 2010-03-30 10:37 (UTC)

Missing dependencies: bison and flex even with these, I can't compile (POSIX_PATH_MAX not defined in this scope)