vlang / ui

A cross-platform UI library written in V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when compiling webview example on linux

ChildishGiant opened this issue · comments

commented

V version: V 0.2.2 639061b
UI version: 0.0.4
OS: elementary OS 5.1.7 Hera

What did you do?
~/.vmodules/ui/examples$ v webview.v

What did you expect to see?
Successful compile

What did you see instead?

/home/allie/.vmodules/ui/webview/webview_linux.c.v:4:3: error: Cannot find "webkit2gtk-4.0" pkgconfig file
    2 | 
    3 | #flag linux -I /usr/include/harfbuzz
    4 | #pkgconfig gtk+-3.0 webkit2gtk-4.0
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    5 | #include <gtk/gtk.h>
    6 | #include <webkit2/webkit2.h>

Have similar errors here. The problem lies in vlib/pkgconfig which doesn't find the .pc files.. in my file located in /usr/lib/i386-linux-gnu/pkgconfig/gtk+-3.0.pc