lack of javascriptcoregtk-4.0 #scarthgap
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
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.
Quoted 25 lines · On Sun, Aug 4 2024 at 11:50:35 PM -07:00:00, [email protected] 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_FLAGSin cargo.bbclass and setting thePACKAGEGROUP_SOUPto "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
Quoted 6 lines · Markus Volk via lists.yoctoproject.org
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
Quoted 49 lines · On Sun, Aug 4 2024 at 11:50:35 PM -07:00:00, [email protected] 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_FLAGSin cargo.bbclass and setting thePACKAGEGROUP_SOUPto "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: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
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?