Query Regarding Dynamic location of libqpdfview_pdf.so

Asked by Anupam Basak on 2018-04-25


qpdfview is being shipped as default pdf reader for NitruxOS.

I was creating an AppImage of qpdfview to be shipped with Nitrux and hence need a way for qpdfview to find libqpdfview_pdf.so in a custom location.

Any idea on how to achieve this?


Question information

English Edit question
qpdfview Edit question
No assignee Edit question
Last query:
Last reply:
Adam Reichold (adamreichold) said : #1

Hello Anupam,

qpdfview will look for its plug-in libraries into places: Locally in the same directory as the binary itself is stored and global in a compile-time defined path, usually /usr/lib/qpdfview. If you want to change the global path, you can set the variable PLUGIN_INSTALL_PATH via qmake during the build, e.g. qmake PLUGIN_INSTALL_PATH=/absolute/path/to/plugins qpdfview.pro

Another option is to link the plug-ins statically with the application, e.g. by running qmake CONFIG+=static_pdf_plugin to statically link the PDF plug-in into the application binary. Please see README for the other plug-ins.

Best regards, Adam.

Can you help with this problem?

Provide an answer of your own, or ask Anupam Basak for more information if necessary.

To post a message you must log in.