Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How tu build on mac and enable w3mimdisplay #95

Closed
petobens opened this issue Feb 15, 2018 · 2 comments
Closed

How tu build on mac and enable w3mimdisplay #95

petobens opened this issue Feb 15, 2018 · 2 comments

Comments

@petobens
Copy link

petobens commented Feb 15, 2018

I'm trying to build w3m on Mac OSX in order to get the w3mimgdisplay binary (installing with brew install w3m doesn't seem to enable this binary).
I've installe some of dependencies with:

brew install gdk-pixbuf
brew install imlib2

However when i run:

./configure --enable-image --with-ssl=/usr/local/opt/openssl

I get:

checking if image is enabled... yes
checking image library... gtk2 gdk-pixbuf imlib imlib2
checking GdkPixbuf version... 2.36.11
configure: WARNING: Imlib is not installed.  Install Imlib (version >= 1.9.8)
checking Imlib2 version... 1.4.10
Package gdk-pixbuf-xlib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdk-pixbuf-xlib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdk-pixbuf-xlib-2.0' found
Package gdk-pixbuf-xlib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdk-pixbuf-xlib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdk-pixbuf-xlib-2.0' found

and if I then run sudo make I obtain:

x11_w3mimg.c:16:10: fatal error: 'glib-object.h' file not found
#include <glib-object.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [x11_w3mimg.o] Error 1
make[1]: *** [x11] Error 2
make: *** [w3mimg] Error 2

Any ideas on how to build it on mac in order to use the w3mimgdisplay? Thanks!

@tats
Copy link
Owner

tats commented Feb 15, 2018

How about --with-imagelib=imlib2?

cf. https://github.com/macports/macports-ports/blob/master/www/w3m/Portfile

@haozi23333
Copy link

How about --with-imagelib=imlib2?

cf. https://github.com/macports/macports-ports/blob/master/www/w3m/Portfile

solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants