kiwix / libkiwix

Common code base for all Kiwix ports
https://download.kiwix.org/release/libkiwix/
GNU General Public License v3.0
112 stars 55 forks source link

failed in installing in manjaro #1031

Closed dzwdev closed 7 months ago

dzwdev commented 7 months ago

i successfully compiled kiwixlib and i run the installation code: sudo ninja -C build install  1 ✘  30s  ninja: Entering directorybuild' [0/1] Installing files. Installing src/libkiwix.so.13.0.0 to /usr/local/lib Installing /home/pc/Downloads/libkiwix-main/include/book.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/bookmark.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/common.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/library.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/manager.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/downloader.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/search_renderer.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/server.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/kiwixserve.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/name_mapper.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/tools.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/include/version.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/build/src/kiwix_config.h to /usr/local/include/kiwix Installing /home/pc/Downloads/libkiwix-main/scripts/kiwix-compile-resources.1 to /usr/local/share/man/man1 Installing /home/pc/Downloads/libkiwix-main/scripts/kiwix-compile-i18n.1 to /usr/local/share/man/man1 Installing /home/pc/Downloads/libkiwix-main/scripts/kiwix-compile-resources to /usr/local/bin Installing /home/pc/Downloads/libkiwix-main/scripts/kiwix-compile-i18n to /usr/local/bin Installing /home/pc/Downloads/libkiwix-main/build/kiwix.pc to /usr/local/lib/pkgconfig Installing symlink pointing to libkiwix.so.13.0.0 to /usr/local/lib/libkiwix.so.13 Installing symlink pointing to libkiwix.so.13 to /usr/local/lib/libkiwix.so `

in this path: /usr/local/lib/pkgconfig/ i find: kiwix.pc but when trying to compile the kiwix desktop i get this error: qmake .  ✔ Package kiwix was not found in the pkg-config search path. Perhaps you should add the directory containing kiwix.pc' to the PKG_CONFIG_PATH environment variable Package 'kiwix', required by 'virtual:world', not found Package kiwix was not found in the pkg-config search path. Perhaps you should add the directory containingkiwix.pc' to the PKG_CONFIG_PATH environment variable Package 'kiwix', required by 'virtual:world', not found

how to solve this? the kiwixlib in the AUR repo is not the latest version

fhdk commented 7 months ago

There is no problem compiling on Manjaro (unstable branch) when using the Arch PKGBUILD

https://gitlab.archlinux.org/archlinux/packaging/packages/libkiwix/-/blob/main/PKGBUILD

Last lines from build

[...]
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "libkiwix"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: libkiwix 13.0.0-1 (søn 03 dec 2023 08:46:35 CET)
kelson42 commented 7 months ago

@dzwdev Thank you for your information, just FYI, the official name has changed from "kiwixlib" to "libkiwix" a few years ago. Maybe - if this is needed - update the package name.

kelson42 commented 7 months ago

@dzwdev kiwix-desktop 2.3 does compile against libkiwix 12, not libkiwix 13. Pretty sure this is the problem you face.

dzwdev commented 7 months ago

thank you for your help. i used PKGBUILD in manjaro and now i could install it successfully.