Query Regarding Dynamic location of libqpdfview_pdf.so

Asked by Anupam Basak

Hi,

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?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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.