On Mon, Aug 5, 2024 at 5:21 AM Markus Volk via lists.yoctoproject.org
<f_l_k=t-online...@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, bartiszo...@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 (#63656): https://lists.yoctoproject.org/g/yocto/message/63656
Mute This Topic: https://lists.yoctoproject.org/mt/107728100/21656
Mute #scarthgap:https://lists.yoctoproject.org/g/yocto/mutehashtag/scarthgap
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to