You are not logged in.

#1 2013-10-31 04:24:35

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Displaying images with framebuffer in w3m without the need of X's libs

I asked on the ##archlinux on IRC: "Are X's libs needed to display stuff with framebuffer?", someone said "No".

So, when installing the w3m browser. There's an optional dependency: imlib2; which displays images in w3m using framebuffer.
But, when I installed 'imlib2', it also installed X's libs because they were in the dependencies of imlib2.
The dependencies are, such as: xproto -- X protocol; libx11 -- X's libs, very obvious; etc...

I've later on realised that imlib2 needed those X libraries for the commands to test imlib2 under a graphical (X) environment.
I've also realised that imlib2 needed this to display images on graphical (X) environments (on programmes like: feh)

But, the only thing I need from imlib2 is to display images in w3m using the framebuffer.
I don't have X (I'm just on a plain console and tmux on my laptop, nothing else) and I don't need X (I don't watch movies, I don't play games, I just code and play with my cat) smile

So, Is there an alternative way to display images in w3m using the framebuffer without needing to install X libraries?


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#2 2013-10-31 04:44:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Displaying images with framebuffer in w3m without the need of X's libs

How about rebuilding imlib2 without X support? A quick check shows that the --without-x configure flag should do it.

Offline

#3 2013-10-31 04:49:42

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Displaying images with framebuffer in w3m without the need of X's libs

Uhm... Just for confirmation. So, you are saying that I can get imlib2's source and extract and chdir and do:

./configure --without-x
make
make install

by myself?


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#4 2013-10-31 04:55:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Displaying images with framebuffer in w3m without the need of X's libs

No, you don't want to be installing it outside of pacman. Get the Arch source files here: https://projects.archlinux.org/svntogit … ges/imlib2 change the deps and the configure switches and build the package.

You can also use the ABS to get the files if you'd rather: https://wiki.archlinux.org/index.php/Abs

Last edited by Scimmia (2013-10-31 04:57:14)

Offline

#5 2013-10-31 04:58:02

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Displaying images with framebuffer in w3m without the need of X's libs

Scimmia wrote:

No, you don't want to be installing it outside of pacman. Get the Arch source files here: https://projects.archlinux.org/svntogit … ges/imlib2 change the deps and the configure switches and build the package.

Sorry for being so dumb, but:
1. How do I change the deps?
2. How do I configure switches?
3. How do I build it? (Do I build it like AUR?)


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#6 2013-10-31 05:01:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Displaying images with framebuffer in w3m without the need of X's libs

How do you change it? With a text editor. A PKGBUILD is just a script.

Yes, you would build it similar to how you do with AUR packages.

Offline

#7 2013-10-31 05:05:42

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Displaying images with framebuffer in w3m without the need of X's libs

Okay, thanks, i'll try.


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#8 2013-10-31 13:53:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Displaying images with framebuffer in w3m without the need of X's libs

Offline

#9 2013-11-01 09:03:43

milo64
Banned
From: Chiang Mai, Thailand
Registered: 2013-01-18
Posts: 86
Website

Re: Displaying images with framebuffer in w3m without the need of X's libs

sorry, don't like abs.


milo64.
Registered Linux User: #555436
My Blog @ http://milo64.blogspot.com/

Offline

#10 2013-11-01 09:05:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Displaying images with framebuffer in w3m without the need of X's libs

milo64 wrote:

sorry, don't like abs.

Would you mind elaborating why?

Offline

#11 2013-11-01 10:51:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Displaying images with framebuffer in w3m without the need of X's libs

milo64 wrote:

sorry, don't like abs.

Sorry, it is the right solution - whether you like it or not.

Though Karol's reply is probably more productive in assuming that is short hand for saying you ran into a challenge you don't know how to solve.  But we can't help you solve it either unless you describe what the problem is.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB