#Problems with javascriptcoregtk-4.0

13 messages · Page 1 of 1 (latest)

thorn plank
#

Hello!
I am trying to create my first tauri app. And I get this error:

warning: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_PATH="/usr/lib/pkgconfig" "pkg-config" "--libs" "--cflags" "javascriptcoregtk-4.0" "javascriptcoregtk-4.0 >= 2.24"` did not exit successfully: exit status: 1
error: failed to run custom build command for `javascriptcore-rs-sys v0.4.0`
Caused by:
  process didn't exit successfully: `/.../src-tauri/target/debug/build/javascriptcore-rs-sys-2b59d7769128d103/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=JAVASCRIPTCOREGTK_4.0_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  ...
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_PATH="/usr/lib/pkgconfig" "pkg-config" "--libs" "--cflags" "javascriptcoregtk-4.0" "javascriptcoregtk-4.0 >= 2.24"` did not exit successfully: exit status: 1
  error: could not find system library 'javascriptcoregtk-4.0' required by the 'javascriptcore-rs-sys' crate

  --- stderr
  Package javascriptcoregtk-4.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `javascriptcoregtk-4.0.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'javascriptcoregtk-4.0', required by 'virtual:world', not found

warning: build failed, waiting for other jobs to finish...
#

I have Webkit correctly installed in this path:

/usr/include/webkitgtk-6.0
[ Results for search key : net-libs/webkit-gtk ]
Searching...

*  net-libs/webkit-gtk
      Latest version available: 2.40.1-r600
      Latest version installed: 2.40.1-r600
      Size of files: 38 672 KiB
      Homepage:      https://www.webkitgtk.org
      Description:   Open source web browser engine
      License:       LGPL-2+ BSD

[ Applications found : 1 ]

It also contains javascriptcore:

/usr/include/webkitgtk-6.0/jsc

Do you know why I get this error? How I can fix it?

twin verge
#

I have Webkit correctly installed in this path:
/usr/include/webkitgtk-6.0
That's not correct. This webkit version is too new (iirc that's the gtk4 one)

Edit: You need 4.0

thorn plank
#

Why tauri doesnt support newer webkitgtk-6.0? Will it be ever supported?

twin verge
#

our docs say to just install net-libs/webkit-gtk:4 so i hope that works and selects 4.0

twin verge
#

Tauri v2 will upgrade to 4.1 but it has to be a major version since it raises our minimum linux version from ubuntu 18.04 (and some users used centos 7 too iirc) to ubuntu 22.04!

#

An update to 6.0 / gtk4 is not planned in the near future. Not only is it a ton of work to rewrite our gtk stack, we would also loose features like system trays
<#archive-dev-tao-wry message>

thorn plank
#

Thanks for answer

#

I am now compiling correct version

#

i will let you know if it works