From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akira Kyle Newsgroups: gmane.emacs.devel Subject: Re: Introducing emacs-webkit and more thoughts on Emacs rendering (was Rethinking the design of xwidgets) Date: Sun, 22 Nov 2020 11:40:00 -0700 Message-ID: <86v9dxnslb.fsf@akirakyle.com> References: <864kmzupp0.fsf@akirakyle.com> <86pn46awrr.fsf@akirakyle.com> <20201122121849.GC1798@tuxteam.de> <20201122162418.GE16377@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 28.0.50 Cc: tomas@tuxteam.de, emacs-devel@gnu.org To: Jean Louis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 22 19:42:28 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kguJf-0008bL-Fj for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 19:42:27 +0100 Original-Received: from localhost ([::1]:46150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kguJe-0000UR-JL for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 13:42:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kguHO-0007wA-7p for emacs-devel@gnu.org; Sun, 22 Nov 2020 13:40:06 -0500 Original-Received: from mail-il1-f180.google.com ([209.85.166.180]:35049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kguHM-0006Aa-AW for emacs-devel@gnu.org; Sun, 22 Nov 2020 13:40:05 -0500 Original-Received: by mail-il1-f180.google.com with SMTP id t13so13823229ilp.2 for ; Sun, 22 Nov 2020 10:40:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=vyxpnX0rXKFNl8xVMyIxGcmZP+rfHDh/VXSHSuWTxVA=; b=MdoakLq97kAesiBybImi/+PSdEewbHQ4TGLfna4Efm5iP0rISbcZPrye9NzesTRRW9 tWTz3xcoMKIt3BEZJNl7ZcBU7F6mWqIUL4d1fjG/WCGnb1S0utpeEkPk2uRKemma4M9/ nHe3YlNEIYNHO4tXfxJW8KuwCMuRAh0EFD03nG3AFj8NUieCD6XBhpFiw0uppdRibeiP z5m3umwrXexLQKWM3l659D5ZvRQiiXNNhuP4M5w8cDRfqWAbq21xWGFcDatRNrtWNwpS Yrk6lTMr7FbEEABR/otvmByVZjvyN9s/H+CkqQdZ0SAcnpONl0giHZ5AfE5g3MEtxV3n FniQ== X-Gm-Message-State: AOAM530QGMSVIk5CmIW+vTAUNHZrQ4jXWMSvRxBrbqVcZ2MCW553iB+L Gk7Y6yVnxMhijO0BQ4KxSkmckcJJ0RPtxCj5 X-Google-Smtp-Source: ABdhPJyTb0Z94Su7WAwUNaHGFf21ezon0Rnq23cahfYNJP404lVt1z/zjx+6jeznMukLNh5YBp23Tw== X-Received: by 2002:a92:7914:: with SMTP id u20mr33049051ilc.203.1606070402909; Sun, 22 Nov 2020 10:40:02 -0800 (PST) Original-Received: from data ([2601:281:8080:45f0:ae86:53b8:ddcf:9fa4]) by smtp.gmail.com with ESMTPSA id u1sm6184309ilb.74.2020.11.22.10.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 10:40:02 -0800 (PST) In-reply-to: Received-SPF: pass client-ip=209.85.166.180; envelope-from=aikokyle@gmail.com; helo=mail-il1-f180.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259639 Archived-At: What version of webkitgtk2 do you have? Can you make sure=20 `pkg-config` is finding gtk+-3.0 and webkit2gtk-4.0? I think=20 and co. should be included by gtk and webkit2gtk. On Sun, Nov 22, 2020 at 10:18 AM, Jean Louis =20 wrote: >> except when it doesn't :) > > You know that all better, thank you.=20 > > I do remember being able to compile webkit in Emacs by compiling=20 > Emacs > itself, but it did not work as expected and I removed it. > > $ locate stdlib.h > /usr/include/stdlib.h > > but webkit-module.c inside of emacs-webkit git directory does=20 > not have > stdlib.h, there is nowhere in other files included. And I=20 > included > also string.h that was missing. > > $ head webkit-module.c=20 > #define _POSIX_SOURCE 1 > > #include > #include > #include > #include > #include > #include > > I think it should be included there and I have included those=20 > missind > but then I got these other errors. Maybe my webkit is outdated=20 > for > this one. I cannot install new webkit on this system. > > webkit-module.c: In function =E2=80=98webkit_get_uri=E2=80=99: > webkit-module.c:147:26: warning: implicit declaration of=20 > function =E2=80=98webkit_uri_for_display=E2=80=99=20 > [-Wimplicit-function-declaration] > const gchar *uri =3D webkit_uri_for_display=20 > (webkit_web_view_get_uri > ^~~~~~~~~~~~~~~~~~~~~~ > webkit-module.c:147:26: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > webkit-module.c: In function =E2=80=98webkit_js_finished=E2=80=99: > webkit-module.c:362:3: error: unknown type name =E2=80=98JSCValue=E2=80=99 > JSCValue *value =3D webkit_javascript_result_get_js_value=20 > (js_result); > ^~~~~~~~ > webkit-module.c:362:21: warning: implicit declaration of=20 > function =E2=80=98webkit_javascript_result_get_js_value=E2=80=99=20 > [-Wimplicit-function-declaration] > JSCValue *value =3D webkit_javascript_result_get_js_value=20 > (js_result); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > webkit-module.c:362:21: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > webkit-module.c:363:17: warning: implicit declaration of=20 > function =E2=80=98jsc_value_to_json=E2=80=99 [-Wimplicit-function-declara= tion] > gchar *json =3D jsc_value_to_json (value, 1); > ^~~~~~~~~~~~~~~~~ > webkit-module.c:363:17: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > webkit-module.c:364:3: error: unknown type name =E2=80=98JSCException=E2= =80=99 > JSCException *exception =3D > ^~~~~~~~~~~~ > webkit-module.c:365:5: warning: implicit declaration of function=20 > =E2=80=98jsc_context_get_exception=E2=80=99 [-Wimplicit-function-declarat= ion] > jsc_context_get_exception (jsc_value_get_context (value)); > ^~~~~~~~~~~~~~~~~~~~~~~~~ > webkit-module.c:365:32: warning: implicit declaration of=20 > function =E2=80=98jsc_value_get_context=E2=80=99=20 > [-Wimplicit-function-declaration] > jsc_context_get_exception (jsc_value_get_context (value)); > ^~~~~~~~~~~~~~~~~~~~~ > webkit-module.c:365:5: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > jsc_context_get_exception (jsc_value_get_context (value)); > ^~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from /usr/include/glib-2.0/glib.h:62:0, > from /usr/include/gtk-3.0/gdk/gdkconfig.h:13, > from /usr/include/gtk-3.0/gdk/gdk.h:30, > from /usr/include/gtk-3.0/gtk/gtk.h:30, > from webkit-module.c:3: > webkit-module.c:368:16: warning: implicit declaration of=20 > function =E2=80=98jsc_exception_get_message=E2=80=99=20 > [-Wimplicit-function-declaration] > jsc_exception_get_message (exception)); > ^ > /usr/include/glib-2.0/glib/gmessages.h:336:32: note: in=20 > definition of macro =E2=80=98g_warning=E2=80=99 > __VA_ARGS__) > ^~~~~~~~~~~ > webkit-module.c:367:16: warning: format =E2=80=98%s=E2=80=99 expects argu= ment of=20 > type =E2=80=98char *=E2=80=99, but argument 4 has type =E2=80=98int=E2=80= =99 [-Wformat=3D] > g_warning ("Error running javascript: %s", > ^ > /usr/include/glib-2.0/glib/gmessages.h:336:32: note: in=20 > definition of macro =E2=80=98g_warning=E2=80=99 > __VA_ARGS__) > ^~~~~~~~~~~ > webkit-module.c: In function =E2=80=98webkit_script_message_cb=E2=80=99: > webkit-module.c:503:3: error: unknown type name =E2=80=98JSCValue=E2=80=99 > JSCValue *value =3D webkit_javascript_result_get_js_value=20 > (js_result); > ^~~~~~~~ > webkit-module.c:503:21: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > JSCValue *value =3D webkit_javascript_result_get_js_value=20 > (js_result); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > webkit-module.c:504:17: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > gchar *json =3D jsc_value_to_json (value, 1); > ^~~~~~~~~~~~~~~~~ > webkit-module.c:505:3: error: unknown type name =E2=80=98JSCException=E2= =80=99 > JSCException *exception =3D > ^~~~~~~~~~~~ > webkit-module.c:506:5: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > jsc_context_get_exception (jsc_value_get_context (value)); > ^~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from /usr/include/glib-2.0/glib.h:62:0, > from /usr/include/gtk-3.0/gdk/gdkconfig.h:13, > from /usr/include/gtk-3.0/gdk/gdk.h:30, > from /usr/include/gtk-3.0/gtk/gtk.h:30, > from webkit-module.c:3: > webkit-module.c:508:16: warning: format =E2=80=98%s=E2=80=99 expects argu= ment of=20 > type =E2=80=98char *=E2=80=99, but argument 4 has type =E2=80=98int=E2=80= =99 [-Wformat=3D] > g_warning ("Error in javascript message recieve: %s", > ^ > /usr/include/glib-2.0/glib/gmessages.h:336:32: note: in=20 > definition of macro =E2=80=98g_warning=E2=80=99 > __VA_ARGS__) > ^~~~~~~~~~~ > webkit-module.c: In function =E2=80=98webview_notify_uri=E2=80=99: > webkit-module.c:614:22: warning: initialization makes pointer=20 > from integer without a cast [-Wint-conversion] > const gchar *uri =3D webkit_uri_for_display=20 > (webkit_web_view_get_uri (webview)); > ^~~~~~~~~~~~~~~~~~~~~~ > make: *** [Makefile:10: webkit-module.so] Error 1