-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Error when trying to build - "gjs-1.0" not found #1245
Comments
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 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 So I followed the same formula and tacked on "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 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)
Run-time dependency gjs-1.0 found: NO (tried pkgconfig and cmake) meson.build:9:0: ERROR: Dependency "gjs-1.0" not found, tried pkgconfig and cmake
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?
The text was updated successfully, but these errors were encountered: