libgtkhtml 3

VIn Cent
2010-10-11
2013-04-23
  • VIn Cent
    VIn Cent
    2010-10-11

    Hi,

    gyachi (CVS, up to date) compiles fine on Ubuntu 10.04. However, it seems not to compile on 10.10.
    It requires libgtkhtml-2.0, while ubuntu 10.10 ships libgtkhtml 3.14.
    I have hacked the autoconf template file so that configure runs fine, but the compilation still fails… It seems some functions have changed in the gtkhtml library.

    Here are the errors I get :
    ============= BEGIN PASTE ====================
    make: entrant dans le répertoire « /home/gryzor/download/gyachi/client »
    gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../client -DLOCALEDIR=\"/usr/local/share/locale\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread -DORBIT2=1 -I/usr/include/libgtkhtml-3.14 -I/usr/include/gtk-2.0 -I/usr/include/enchant -I/usr/include/gconf/2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/orbit-2.0   -I/usr/include/libxml2        -g -O2  -Wall -Wno-pointer-sign -funsigned-char -MT htmlrender.o -MD -MP -MF .deps/htmlrender.Tpo -c -o htmlrender.o htmlrender.c
    htmlrender.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    htmlrender.c:112: error: expected ‘)’ before ‘*’ token
    htmlrender.c:175: error: expected ‘)’ before ‘*’ token
    htmlrender.c:234: error: expected ‘)’ before ‘*’ token
    htmlrender.c:293: error: expected ‘)’ before ‘*’ token
    htmlrender.c: In function ‘set_myyahoo_html_data’:
    htmlrender.c:412: error: ‘myahoodoc’ undeclared (first use in this function)
    htmlrender.c:412: error: (Each undeclared identifier is reported only once
    htmlrender.c:412: error: for each function it appears in.)
    htmlrender.c:416: warning: implicit declaration of function ‘html_document_open_stream’
    htmlrender.c:417: warning: implicit declaration of function ‘html_document_write_stream’
    htmlrender.c:418: warning: implicit declaration of function ‘html_document_close_stream’
    htmlrender.c: In function ‘load_myyahoo_URL’:
    htmlrender.c:432: error: ‘myahoodoc’ undeclared (first use in this function)
    htmlrender.c:433: warning: implicit declaration of function ‘load_html_document’
    htmlrender.c: In function ‘open_my_yahoo’:
    htmlrender.c:441: error: ‘myahoodoc’ undeclared (first use in this function)
    htmlrender.c: At top level:
    htmlrender.c:554: error: expected ‘)’ before ‘*’ token
    htmlrender.c:562: error: expected ‘)’ before ‘*’ token
    htmlrender.c:601: error: expected ‘)’ before ‘*’ token
    htmlrender.c:655: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    htmlrender.c: In function ‘create_html_widget’:
    htmlrender.c:688: error: ‘myahoodoc’ undeclared (first use in this function)
    htmlrender.c:688: warning: implicit declaration of function ‘get_html_document’
    htmlrender.c:689: warning: implicit declaration of function ‘html_view_new’
    htmlrender.c:689: warning: assignment makes pointer from integer without a cast
    htmlrender.c:692: warning: implicit declaration of function ‘html_view_set_document’
    htmlrender.c:692: warning: implicit declaration of function ‘HTML_VIEW’
    htmlrender.c:693: warning: implicit declaration of function ‘html_view_set_magnification’
    htmlrender.c: In function ‘clear_my_yahoo_document’:
    htmlrender.c:707: error: ‘myahoodoc’ undeclared (first use in this function)
    htmlrender.c: In function ‘on_myyahoo_zoomin’:
    htmlrender.c:718: warning: implicit declaration of function ‘html_view_zoom_in’
    htmlrender.c: In function ‘on_myyahoo_zoomout’:
    htmlrender.c:723: warning: implicit declaration of function ‘html_view_zoom_out’
    make: ***  Erreur 1
    make: quittant le répertoire « /home/gryzor/download/gyachi/client »
    make: ***  Erreur 1
    make: quittant le répertoire « /home/gryzor/download/gyachi »
    make: ***  Erreur 2
    ====================== END PASTE =============================

    My understanding is that gtkhtml3 is quite different from the 2.0 version, and requires that programs be adapted to compile on it.
    Wondering if gyachi has any plan to support this lib version, as this is gonna be more and more of a problem as distributions "upgrade" their packages.

    It is also possible that I have missed a compatibility package on my ubuntu installation, please stand me corrected !

    Regards, and thanks for this great program !

     
  • Greg Hosler
    Greg Hosler
    2010-10-12

    usually there is backwards compatibility packages. I would first check for those.

    The gtk3 functionality will be done as gtk3 settles down. I personally think it is still a bit early, but some distros are already shipping with it. gyachi will be updated for gtk3 as I find available time to do the upgrade. it should not be difficult.

     
  • Greg Hosler
    Greg Hosler
    2011-09-03

    grab 1.2.11 & make sure you have webkitgtk development package installed

    starting 1.2.11, html support will be done with either gtkhtml2 _or_ webkit, BUT, gtkhtml3 will NOT be supported. It's basically a dead project, with little future.

    -Greg