Skip to content
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

Provide shared library (libmupdf.so) in mupdf package #7247

Closed
Mark-Joy opened this issue Aug 3, 2021 · 5 comments
Closed

Provide shared library (libmupdf.so) in mupdf package #7247

Mark-Joy opened this issue Aug 3, 2021 · 5 comments

Comments

@Mark-Joy
Copy link

Mark-Joy commented Aug 3, 2021

Requesting new package

mupdf package has mostly header files with no library.
mupdf-static package provides only static libs.
Please support shared library (libmupdf.so) in mupdf.
It is needed for PyMuPDF - Python binding with support for MuPDF.


Package description

MuPDF is a lightweight open source software framework for viewing and converting
PDF, XPS, and E-book documents.
See the documentation in docs/index.html for an overview.
Build instructions can be found in docs/building.html.

Link to home page and sources

  1. Home page: https://mupdf.com/
  2. Source code: mupdf-1.18.0-source.tar.gz

Additional information
Have you compiled or tried to compile the package on device?

Yes

  • If it did work then please share build steps and any patches that you had to apply.

Compile using below command:
make XLIBS=-llog HAVE_X11=no HAVE_GLUT=no prefix=$PREFIX shared=yes

@ghost ghost closed this as completed in bf1f12f Aug 3, 2021
@ghost ghost added the enhancement label Aug 3, 2021
@ghost
Copy link

ghost commented Aug 3, 2021

Try pkg upgrade to install 1.18.0-1. It should be already available on packages.termux.org and a bit later on mirrors.

@Mark-Joy
Copy link
Author

Mark-Joy commented Aug 5, 2021

@xeffyr
One issue when run mupdf-tools

λ [~] $ muraster
CANNOT LINK EXECUTABLE "muraster": library "build/shared-release/libmupdf.so" not found
λ [~] $ mutool
CANNOT LINK EXECUTABLE "mutool": library "build/shared-release/libmupdf.so" not found

Possible fix is to copy latest Makefile and Makerules from: https://github.com/ArtifexSoftware/mupdf

Reference: Don't hardwire path to $OUT in when linking against shared library.

@ghost
Copy link

ghost commented Aug 5, 2021

This should be fixed in next update by ed992bc.

@Mark-Joy
Copy link
Author

@xeffyr
Somehow mupdf-static package was removed.
PyMuPDF needs libmupdf-third.a to compile, which is part of mupdf-static
Could both mupdf (shared lib) package and mupdf-static package be supported on Termux?

@jeevatattva
Copy link
Contributor

Could both mupdf (shared lib) package and mupdf-static package be supported on Termux?

Building additional libraries in termux_step_post_install may just satisfy this requirement, here's a code snippet.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants