Closed BraidenPsiuk closed 4 months ago
Don't know. Looks like a problem with pkg-config. Perhaps related to how GJS is packaged.
As a workaround you can just remove the requirements in Meson. Or run it with Flatpak with GNOME Builder, which is probably the easiest option for development.
@BraidenPsiuk Found it elsewhere but cannot remember. Actually there are two package for gjs in Fedora : gsj (runtime) and gjs-devel (libraries), you need to install the latter to make it work
sudo dnf install gjs-devel
I also had to download webkitgtk from a fresh install
sudo dnf install webkitgtk6.0-devel
hope this will help you
@BraidenPsiuk Found it elsewhere but cannot remember. Actually there are two package for gjs in Fedora : gsj (runtime) and gjs-devel (libraries), you need to install the latter to make it work
sudo dnf install gjs-devel
I also had to download webkitgtk from a fresh installsudo dnf install webkitgtk6.0-devel
hope this will help you
Just tried what you said, that seemed to work! Unfortunately another very similar error prevented me from continuing:
Run-time dependency webkitgtk-6.0 found: NO (tried pkgconfig)
Even though I thought I already had it installed, since I had already run sudo dnf install webkitgtk6.0
So I followed the same formula and tacked on "devel"... sudo dnf install webkitgtk6.0-devel
Hey look, that works! Made even more progress! Haha. Now the final error I faced:
meson.build:18:6: ERROR: Program 'update-desktop-database' not found or not executable
I am assuming this one is only missing because I am running inside a Fedora SilverBlue toolbox (similar to a container). A quick web search led me to installing desktop-file-utils
Now I am finally able to build Foliate!
Here's the quick list of everything I needed to install in a fresh Fedora toolbox in order to build, for convenience in case anyone else comes across these errors:
sudo dnf install meson gjs-devel gtk4-devel webkitgtk6.0-devel libadwaita-devel desktop-file-utils
Also make sure you have these installed for actually running/testing:
sudo dnf install gjs gtk4 webkitgtk6.0 libadwaita
Thank you both for your help and suggestions!
Hi, firstly thanks for all your work on Foliate- loving it on both desktop and mobile! I'm looking to use Foliate as a reference to develop my own Adwaita/GJS/Meson/Flatpak app. Following the README, I used
and got GJS to successfully run main.js as a module and render the app. But, when trying to build it with
...I ran into the same issue as described in #1073. (Just showing the important bit here, but full log is below)
I was using Debian 12, and already had to upgrade GJS through unstable to meet that version requirement- so I figured I would try again using a new, more bleeding-edge setup to see if that would help. So I installed Fedora Silverblue through GNOME Boxes, set up a toolbox (toolbox create && toolbox enter), ran
...and I tried to build again, but I'm still having the same "gjs-1.0" not found issue. Installing cmake doesn't seem to matter, at least not during this step. I'm using GJS version 1.78.3, so I believe the version requirement is met... The meson-log.txt file mentions adding GJS to a PKG_CONFIG_PATH env var, does this seem right? (I don't know how to test that exactly) If so, should this step be added to the README?