-
Notifications
You must be signed in to change notification settings - Fork 42
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
Dependency "girara-gtk3" not found, tried pkgconfig and cmake #35
Comments
Is your girara version up to date? Could you try a brew update girara? |
Do you think if I have to define environment variable for |
Oh, this is a macOS version of zathura :) |
Many macOs software work via linux brew. I am actually using quite a lot of them. Everything is working fine, just that it is not able to identify the path of the dependency. |
Okay cool, I had no idea they were so interchangeable. |
I have installed the following with brew (successfully):
May be you could use docker image of Ubuntu. Look at my initial post, it says:
I think this issue should be solved by defining the path of library girara-gtk3 (being installed by brew as a dependency) with pkgconfig. I think so, because, the custom path where brew installs the library would not be known to pkgconfig (in case of linux). I have never done any such things, but I would also try in the meantime and tell you if I am successful. Technically, any brew receipe (except casks as those are binary) can be used to install package by building in linux. |
What happens if you “brew link girara” before installing zathura? |
$ brew link girara
Warning: Already linked: /home/linuxbrew/.linuxbrew/Cellar/girara/0.3.2
To relink: brew unlink girara && brew link girara |
From man pkg-config: pkg-config retrieves information about packages from special metadata files. These files
are named after the package, and has a .pc extension. On most systems, pkg-config looks
in /usr/lib/pkgconfig, /usr/share/pkgconfig, /usr/local/lib/pkgconfig and
/usr/local/share/pkgconfig for these files. It will additionally look in the colon-sepa‐
rated (on Windows, semicolon-separated) list of directories specified by the PKG_CON‐
FIG_PATH environment variable. But brew installs girara.gtk3 at |
So I added the environmental variable
But I am getting the same error! :( |
I found this suggestion: Sorry, for asking you, but I have never built a brew receipe by myself, and I am not even sure if I could configure the building of package using brew. |
Normally homebrew should set up all the variables it needs based on the dependencies, because if they are installed with brew it knows where they are. |
What you could try is do a system "meson configure -Dlibdir=lib" |
$ brew --prefix
/home/linuxbrew/.linuxbrew $ brew link girara
Warning: Already linked: /home/linuxbrew/.linuxbrew/Cellar/girara/0.3.2
$ ls /home/linuxbrew/.linuxbrew/Cellar/girara/0.3.2/lib/x86_64-linux-gnu
pkgconfig/ libgirara-gtk3.so@ libgirara-gtk3.so.3@ libgirara-gtk3.so.3.1* As per Meson Website: libdir option is the subdirectory of prefix. In your receipe, prefix is $(brew --prefix) Line Number 29 . So we have to change this line 29 (as you said). So to override the default libdir I inserted
But unfortunately this doesn't works. |
You need to point it to the girara prefix. The |
Took a while to set up a test case but I was able to reproduce on Ubuntu 18.04. |
but it's not finding the |
So it seems homebrew isn't linking the girara
works for now, but that is not a clean solution. |
zathura is installed without error. But I get the following: $ type zathura
zathura is aliased to `/home/linuxbrew/.linuxbrew/bin/zathura'
$ zathura -v
error: could not open plugin directory: /home/linuxbrew/.linuxbrew/Cellar/zathura/0.4.3/Cellar/zathura
/home/linuxbrew/.linuxbrew/bin/zathura: symbol lookup error: /home/linuxbrew/.linuxbrew/bin/zathura: undefined symbol: girara_version |
Did you use the LD_LIBRARY_PATH variable? |
Okay. That error is because you have no plugins installed, can you try the zathura-ps ? And follow the instructions in the caveat to create the plugin directory |
I will update after pdf works as being tracked in zathura-pdf-poppler: Utils::InreplaceError: inreplace failed · Issue #36 · zegervdv/homebrew-zathura Thanks! |
having same exact issue. on OSX mojave 10.14.4 |
And does the workaround work for you? |
some issue here on OSX mojave 10.14.4 ==> mkdir build meson build --prefix /usr/local/Cellar/girara/0.3.2 Traceback (most recent call last): If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: |
Following this link solves my problem. |
it works but I got 1 more python in my system now... (+_+) |
python version issue. |
This is an issue in linuxbrew (for Linux) not homebrew (for Mac OS X). |
Brew info shows that all dependencies are met. But, while installing it is not finding one (girara-gtk3)
The text was updated successfully, but these errors were encountered: