Skip to content

Unable to test this repo. #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TriMoon opened this issue Apr 22, 2025 · 0 comments
Open

Unable to test this repo. #195

TriMoon opened this issue Apr 22, 2025 · 0 comments

Comments

@TriMoon
Copy link

TriMoon commented Apr 22, 2025

I just wanted to try webview also, and followed the instructions on the main readme of this repo.

  • pre-requisite should be updated to libwebkit2gtk-4.1-dev.
    This is the only one available on my Kubuntu 24.04.2 LTS (Noble Numbat)

After installing the pre-requisite, this is what i did and got:

$  deno run -Ar --unstable https://deno.land/x/webview/examples/local.ts
⚠  The `--unstable` flag has been removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
Warning Implicitly using latest version (0.9.0) for https://deno.land/x/webview/examples/local.ts
error: Relative import path "@denosaurs/plug" not prefixed with / or ./ or ../
    at https://deno.land/x/[email protected]/src/ffi.ts:3:34

Then trying the git version:

$  git clone https://github.com/webview/webview_deno.git
Cloning into 'webview_deno'...
remote: Enumerating objects: 1379, done.
remote: Counting objects: 100% (231/231), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 1379 (delta 154), reused 142 (delta 134), pack-reused 1148 (from 1)
Receiving objects: 100% (1379/1379), 992.05 KiB | 2.91 MiB/s, done.
Resolving deltas: 100% (728/728), done.
$  cd webview_deno/
$  git submodule update --init --recursive
Submodule 'webview' (https://github.com/webview/webview.git) registered for path 'webview'
Cloning into '/home/mainuser/git/webview_deno/webview'...
Submodule path 'webview': checked out 'c5b19403382ef089f9933ea5331c76aa35414589'
$  deno task build
Task build deno run -A script/build.ts
> export PATH=/usr/lib/llvm14/bin/:/usr/lib/llvm-14/bin/:/usr/lib64/llvm15/bin/:$PATH
> cmake -G Ninja -B build -S .             -D CMAKE_BUILD_TYPE=Release             -D WEBVIEW_WEBKITGTK_API=6.0             -DWEBVIEW_ENABLE_CHECKS=false             -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/host-llvm.cmake             -DWEBVIEW_USE_CLANG_TIDY=OFF             -DWEBVIEW_BUILD_DOCS=OFF             -DWEBVIEW_USE_CLANG_FORMAT=OFF
dax: cmake: command not found
error: Uncaught (in promise) Error: Exited with code: 127
            throw new Error(`Exited with code: ${code}`);
                  ^
    at CommandChild.pipedStdoutBuffer (https://jsr.io/@david/dax/0.42.0/src/command.ts:785:19)
    at eventLoopTick (ext:core/01_core.js:178:7)

Then after installing cmake

$  deno task build
Task build deno run -A script/build.ts
> export PATH=/usr/lib/llvm14/bin/:/usr/lib/llvm-14/bin/:/usr/lib64/llvm15/bin/:$PATH
> cmake -G Ninja -B build -S .             -D CMAKE_BUILD_TYPE=Release             -D WEBVIEW_WEBKITGTK_API=6.0             -DWEBVIEW_ENABLE_CHECKS=false             -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/host-llvm.cmake             -DWEBVIEW_USE_CLANG_TIDY=OFF             -DWEBVIEW_BUILD_DOCS=OFF             -DWEBVIEW_USE_CLANG_FORMAT=OFF
CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
error: Uncaught (in promise) Error: Exited with code: 1
            throw new Error(`Exited with code: ${code}`);
                  ^
    at CommandChild.pipedStdoutBuffer (https://jsr.io/@david/dax/0.42.0/src/command.ts:785:19)
    at eventLoopTick (ext:core/01_core.js:178:7)

At this point i bail out of further fiddling... 🤷‍♀

$ deno -V
deno 2.2.11
$ inxi -S
System:
  Kernel: 6.8.0-58-generic arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 5.27.12 Distro: Kubuntu 24.04.2 LTS (Noble Numbat)

Maybe related to #191 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant