emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: merging of the xwidget branch to master


From: David Engster
Subject: Re: merging of the xwidget branch to master
Date: Tue, 03 Feb 2015 23:01:35 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.91 (gnu/linux)

'joakim' writes:
> David Engster <address@hidden> writes:
>
>> 'joakim' writes:
>>> David Engster <address@hidden> writes:
>>>
>>>> Steinar Bang writes:
>>>>>>>>>> address@hidden:
>>>>>
>>>>>> I'm not familiar enough with Debian.
>>>>>
>>>>>> I have a working Dockerfile recipy for Fedora here:
>>>>>> https://github.com/jave/xwidget-aux/blob/master/emacs-xwidget-docker-f20/Dockerfile>>>>>
>>>>>> I could do one for Debian as well, but perhaps the Fedora one is
>>>>>> good
>>>>>> enough for you to adapt to Debian?
>>>>>
>>>>> Here is a close approximation of the yum package list for debian:
>>>>>  apt-get install git gobject-introspection ncurses-devel
>>>>> libjpeg62-turbo-dev libxpm-dev libjpeg62-dev libtiff5-dev
>>>>> libncurses5-dev libgif-dev texinfo
>>>>
>>>> Next to the usual libraries for building Emacs, you need to install
>>>> libgtk-3-dev, libwebkitgtk-3.0-dev, and libgirepository1.0-dev.
>>>>
>>>> However, it does not build for me:
>>>>
>>>>   CC       xwidget.o
>>>> In file included from xwidget.c:79:0:
>>>> /usr/include/gtk-3.0/gtk/gtkscrolledwindow.h:26:2: error: #error
>>>> "Only <gtk/gtk.h> can be included directly."
>>>> make[1]: *** [xwidget.o] Error 1
>>>>
>>>> That's on 1d11624 in the Emacs repository.
>>>
>>> Thats odd.
>>>
>>> I can try to recreate the issue.
>>>
>>> Which one of these Dockerfiles resemble your environment?
>>>
>>> https://registry.hub.docker.com/_/debian/
>>
>> That site does not seem to be available at the moment, but the issue
>
> Snippet from the docker registry:
>
> Supported tags and respective Dockerfile links

[...]

>     7.8, 7, wheezy, latest (wheezy/Dockerfile)

This. And you need a bunch of packages, of course. I guess these

build-essential, libncurses5-dev, texinfo, liblockfile-dev,
librsvg2-dev, libgif-dev, libtiff-dev, libpng-dev, libjpeg-dev,
libm17n-dev, libotf-dev, libgpm-dev, libdbus-1-dev, autoconf, automake,
autotools-dev, imagemagick, libgtk-3-dev, libwebkitgtk-3.0-dev,
libgirepository1.0-dev

should get you started.

>> seems simple enough: the GTK people really don't want you to include
>> specific headers aside from gtk.h. If I remove the include for
>> gtkscrolledwindow.h, everything compiles fine.
>>
>> For the record: this is on Debian 7 (Wheezy), which has libgtk3
>> 3.4.2. The header gtkscrolledwindow.h has this as the top:
>>
>>   #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
>>   #error "Only <gtk/gtk.h> can be included directly."
>>   #endif
>
> Funny that it works on Fedora with the direct include, so I really need
> to get a debian compile working to check it.
>
> BTW, did you manage to get the browser working then?
>
> m-x xwidget-webkit-browse-url RET www.fsf.org RET
>
> Then you should be able to scroll the browser with space and bakckspace.

Yes.  I can also scroll with <prior> and <next>, while <up> and <down>
show the real trick. Pretty weird and cool at the same time. :-) Great
job.

-David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]