You are not logged in.
Hello All,
I am using mupdf-gl version 1.16.1 in i3mw. I am not able to copy text to clipboard from the software while the manual says it is possible. I have followed the method mentioned in the manual as well as other usual methods.
I don't think it is related to clipboard software (mine is clipit) as I am able to do it with zathura-mupdf from PDF files. For further testing, I have tried the method in windows OS based mupdf-gl software and that also worked fine.
Kindly have a look into this issue.
$pacman -Q freeglut
freeglut 3.2.1-1
Thank you
Offline
glutSetClipboard is not implemented by the official freeglut.
artifex has their own patches and changes the GLUT_API_VERSION (ugly!) to denote that. It only works on X11 and Windows, by the way. You could compile mupdf using the vendored freeglut if you really want that.
https://github.com/ArtifexSoftware/thir … include/GL
https://github.com/ArtifexSoftware/mupd … l-ui.c#L27
zathura implements their own GUI that also handles the clipboard.
Last edited by progandy (2020-02-01 09:16:39)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Thanks for the reply, it made sense. Just confirming, so you are suggesting to build from the github source.
glutSetClipboard is not implemented by the official freeglut.
artifex has their own patches and changes the GLUT_API_VERSION (ugly!) to denote that. It only works on X11 and Windows, by the way. You could compile mupdf using the vendored freeglut if you really want that.https://github.com/ArtifexSoftware/thir … include/GL
https://github.com/ArtifexSoftware/mupd … l-ui.c#L27zathura implements their own GUI that also handles the clipboard.
Offline
asp checkout mupdf-gl
cd mupdf/repos/community-x86_64
vim/nano/emacs/… PKGBUILD
Edit:
- rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
+ rm -rf thirdparty/{freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
- USE_SYSTEM_LIBS='yes'
- export USE_SYSTEM_LIBS
+ export USE_SYSTEM_FREETYPE := yes
+ export USE_SYSTEM_HARFBUZZ := yes
+ export USE_SYSTEM_JBIG2DEC := yes
+ export USE_SYSTEM_LIBJPEG := yes
+ export USE_SYSTEM_OPENJPEG := yes
+ export USE_SYSTEM_ZLIB := yes
+ export USE_SYSTEM_CURL := yes
makepkg -i
Notice that
a) the above might fail if the bundled glut relies on features of other bundles libs. Just not setting USE_SYSTEM_LIBS is the safe, but fat variant.
b) this drops the package out of the pacman dbase, it's now essentially an AUR package.
c) I didn't test this at all.
llpp copies selections to CLIPBOARD, if that helps you.
Offline
Thank you guys for direct and cunning replies. I am flattered. I will definitely try it out but after some days since its high time in my research works.
asp checkout mupdf-gl cd mupdf/repos/community-x86_64
vim/nano/emacs/… PKGBUILD
Edit:- rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib} + rm -rf thirdparty/{freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib} - USE_SYSTEM_LIBS='yes' - export USE_SYSTEM_LIBS + export USE_SYSTEM_FREETYPE := yes + export USE_SYSTEM_HARFBUZZ := yes + export USE_SYSTEM_JBIG2DEC := yes + export USE_SYSTEM_LIBJPEG := yes + export USE_SYSTEM_OPENJPEG := yes + export USE_SYSTEM_ZLIB := yes + export USE_SYSTEM_CURL := yes
makepkg -i
Notice that
a) the above might fail if the bundled glut relies on features of other bundles libs. Just not setting USE_SYSTEM_LIBS is the safe, but fat variant.
b) this drops the package out of the pacman dbase, it's now essentially an AUR package.
c) I didn't test this at all.llpp copies selections to CLIPBOARD, if that helps you.
Offline
tested on mupdf-gl version 1.17.0 both selection and clipboard works.
prepare() {
cd $pkgbase-${pkgver/_/}-source
# remove bundled packages, we want our system libraries
# rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
rm -rf thirdparty/{freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
}
build() {
CFLAGS+=' -fPIC'
CXXFLAGS+=' -fPIC'
export CFLAGS CXXFLAGS
# USE_SYSTEM_LIBS='yes'
# export USE_SYSTEM_LIBS
USE_SYSTEM_FREETYPE='yes'
USE_SYSTEM_HARFBUZZ='yes'
USE_SYSTEM_JBIG2DEC='yes'
USE_SYSTEM_LIBJPEG='yes'
USE_SYSTEM_OPENJPEG='yes'
USE_SYSTEM_ZLIB='yes'
USE_SYSTEM_CURL='yes'
export USE_SYSTEM_FREETYPE
export USE_SYSTEM_HARFBUZZ
export USE_SYSTEM_JBIG2DEC
export USE_SYSTEM_LIBJPEG
export USE_SYSTEM_OPENJPEG
export USE_SYSTEM_ZLIB
export USE_SYSTEM_CURL
cd $pkgbase-${pkgver/_/}-source
make build=release libs apps
}
Offline