MuPDF and FreeGLUT

"Stephen Berman" ([email protected] via blfs-dev Mailing List) <[email protected]> Fri, 05 Dec 2025 18:37:12 +0100
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
After building mupdf-1.26.11 about a month ago, I noticed that on
invoking mupdf-gl, the following messages were emitted in the shell:

warning: This version of MuPDF has been built WITHOUT clipboard or unicode input support!
warning: Please file a complaint with your friendly local distribution manager.

I did not get these messages with a previous build of mupdf-1.25.5.  A
web search indicated the messages are because MuPDF was built with
system FreeGLUT instead of the one bundled with MuPDF
(https://github.com/NixOS/nixpkgs/issues/104017).  And indeed, the BLFS
instructions for building mupdf-1.26.10 have this configuration line:

USE_SYSTEM_GLUT := yes

while the instructions for building mupdf-1.25.5 have this:

USE_SYSTEM_GLUT := no # need freeglut2-art fork

I now updated to mupdf-1.26.12 and changed the build script to use
USE_SYSTEM_GLUT := no, and now there are no warning messages and
selecting text from a PDF displayed by mupdf-gl puts in in the clipboard
and I can input non-ASCII characters in a PDF with forms as well as in a
text annotation using the MuPDF GUI.  Unfortunately, I neglected to test
these functionalities with mupdf-1.26.11 immediately prior to updating,
though I vaguely recall trying and not being able to select to the
clipboard after I built that version.  Can anyone who built the current
or previous version with USE_SYSTEM_GLUT := yes confirm whether these
functionalities work?  If not, perhaps the BLFS instructions should be
changed accordingly; or is there a good reason to prefer the system
FreeGLUT with MuPDF?

Steve Berman

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page