* lack of javascriptcoregtk-4.0 #scarthgap
@ 2024-08-05 6:50 bartiszosti
2024-08-05 12:22 ` [yocto] " Markus Volk
0 siblings, 1 reply; 4+ messages in thread
From: bartiszosti @ 2024-08-05 6:50 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 825 bytes --]
Hello,
I'm trying to build a application based on the Tauri.
I created a simple application and currently a recipe I shared below.
tauri-vanilla.bb
LICENSE = "CLOSED"
SRC_URI = "git://github.com/bartiszosti/tauri-vanilla.git;branch=master;protocol=https"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
DEPENDS = "nodejs webkitgtk3"
do_compile[network] = "1"
CARGO_DISABLE_BITBAKE_VENDORING = "1"
CARGO_SRC_DIR = "src-tauri"
inherit cargo pkgconfig
I'm able to achive 86% of the compilation with that recipe, deleting the "--frozen" flag from the CARGO_BUILD_FLAGS in cargo.bbclass and setting the PACKAGEGROUP_SOUP to "soup2" in the webkitgtk3.bb but then I get error thet the javascriptcoregtk-4.0 is missing. Do you know how can I add this library to dependancies?
Best regards,
Bartosz Szostak
[-- Attachment #2: Type: text/html, Size: 2103 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] lack of javascriptcoregtk-4.0 #scarthgap
2024-08-05 6:50 lack of javascriptcoregtk-4.0 #scarthgap bartiszosti
@ 2024-08-05 12:22 ` Markus Volk
2024-08-05 16:17 ` Tim Orling
0 siblings, 1 reply; 4+ messages in thread
From: Markus Volk @ 2024-08-05 12:22 UTC (permalink / raw)
To: yocto, bartiszosti
[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]
Hi,
webkit2gtk-4.0 and thus also javascriptcoregtk-4.0 are provided by
webkitgtk-2.38. Yocto/oe has a higher version of webkitgtk which
provides webkit2gtk-4.1/javascriptcoregtk-4.1 (if built with gtk3
support) That's probably why the rust crate doesn't find the one it
wants.
On Sun, Aug 4 2024 at 11:50:35 PM -07:00:00, bartiszosti@gmail.com
wrote:
> Hello,
> I'm trying to build a application based on the Tauri.
> I created a simple application and currently a recipe I shared below.
>
> tauri-vanilla.bb
> LICENSE = "CLOSED"
>
> SRC_URI =
> "git://github.com/bartiszosti/tauri-vanilla.git;branch=master;protocol=https"
> SRCREV = "${AUTOREV}"
>
> S = "${WORKDIR}/git"
>
> DEPENDS = "nodejs webkitgtk3"
>
> do_compile[network] = "1"
> CARGO_DISABLE_BITBAKE_VENDORING = "1"
> CARGO_SRC_DIR = "src-tauri"
>
> inherit cargo pkgconfig
>
> I'm able to achive 86% of the compilation with that recipe, deleting
> the "--frozen" flag from the CARGO_BUILD_FLAGS in cargo.bbclass and
> setting the PACKAGEGROUP_SOUP to "soup2" in the webkitgtk3.bb but
> then I get error thet the javascriptcoregtk-4.0 is missing. Do you
> know how can I add this library to dependancies?
>
> Best regards,
> Bartosz Szostak
>
[-- Attachment #2: Type: text/html, Size: 2570 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] lack of javascriptcoregtk-4.0 #scarthgap
2024-08-05 12:22 ` [yocto] " Markus Volk
@ 2024-08-05 16:17 ` Tim Orling
2024-08-05 16:27 ` bartiszosti
0 siblings, 1 reply; 4+ messages in thread
From: Tim Orling @ 2024-08-05 16:17 UTC (permalink / raw)
To: yocto, f_l_k; +Cc: bartiszosti
[-- Attachment #1: Type: text/plain, Size: 2418 bytes --]
On Mon, Aug 5, 2024 at 5:21 AM Markus Volk via lists.yoctoproject.org
<f_l_k=t-online.de@lists.yoctoproject.org> wrote:
> Hi,
> webkit2gtk-4.0 and thus also javascriptcoregtk-4.0 are provided by
> webkitgtk-2.38. Yocto/oe has a higher version of webkitgtk which provides
> webkit2gtk-4.1/javascriptcoregtk-4.1 (if built with gtk3 support) That's
> probably why the rust crate doesn't find the one it wants.
>
By default, tauri is asking for older releases of gtk and webgtk
https://github.com/tauri-apps/tauri/blob/ab382f4ca94c881130e8916f34260da92f9bec72/core/tauri/Cargo.toml#L86
gtk = { version = "0.18", features = [ "v3_24" ] }
webkit2gtk = { version = "=2.0.1", features = [ "v2_38" ] }
Both of those crates can be updated to a specific version with the
"features" value.
https://github.com/gtk-rs/gtk4-rs/tree/master/gtk4#library-versions
https://github.com/tauri-apps/webkit2gtk-rs/blob/crate/Cargo.toml#L19
>
> On Sun, Aug 4 2024 at 11:50:35 PM -07:00:00, bartiszosti@gmail.com wrote:
>
> Hello,
> I'm trying to build a application based on the Tauri.
> I created a simple application and currently a recipe I shared below.
>
> tauri-vanilla.bb
>
> LICENSE = "CLOSED"
>
> SRC_URI = "git://github.com/bartiszosti/tauri-vanilla.git;branch=master;protocol=https"
> SRCREV = "${AUTOREV}"
>
> S = "${WORKDIR}/git"
>
> DEPENDS = "nodejs webkitgtk3"
>
> do_compile[network] = "1"
> CARGO_DISABLE_BITBAKE_VENDORING = "1"
> CARGO_SRC_DIR = "src-tauri"
>
> inherit cargo pkgconfig
>
>
> I'm able to achive 86% of the compilation with that recipe, deleting the
> "--frozen" flag from the CARGO_BUILD_FLAGS in cargo.bbclass and setting the
> PACKAGEGROUP_SOUP to "soup2" in the webkitgtk3.bb but then I get error
> thet the javascriptcoregtk-4.0 is missing. Do you know how can I add this
> library to dependancies?
>
> Best regards,
> Bartosz Szostak
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#63650):
> https://lists.yoctoproject.org/g/yocto/message/63650
> Mute This Topic: https://lists.yoctoproject.org/mt/107728100/924729
> Mute #scarthgap:
> https://lists.yoctoproject.org/g/yocto/mutehashtag/scarthgap
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 5779 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] lack of javascriptcoregtk-4.0 #scarthgap
2024-08-05 16:17 ` Tim Orling
@ 2024-08-05 16:27 ` bartiszosti
0 siblings, 0 replies; 4+ messages in thread
From: bartiszosti @ 2024-08-05 16:27 UTC (permalink / raw)
To: Tim Orling, yocto
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
Hello,
thanks for your replays.
I successfully built my application.
To run it I had to adde both x11 and wayland to DISTRO_FEATURES then I’m able to run it via weston-xwayland but the performance of this is terrible.
Do you know if there is any possibility to build tauri for only x11 or wayland or how to increase performance of the weston-xwayland on raspberrypi 4?
[-- Attachment #2: Type: text/html, Size: 441 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-05 16:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 6:50 lack of javascriptcoregtk-4.0 #scarthgap bartiszosti
2024-08-05 12:22 ` [yocto] " Markus Volk
2024-08-05 16:17 ` Tim Orling
2024-08-05 16:27 ` bartiszosti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.