JakubMelka / PDF4QT

Open source PDF editor.
https://jakubmelka.github.io/
GNU Lesser General Public License v3.0
719 stars 74 forks source link

direct reference to protected function #208

Open Aqua1ung opened 2 months ago

Aqua1ung commented 2 months ago

I just attempted to launch the AppImage on a fresh Linux installation, and here's what I get:

dad@DadsGram~/Downloads $ ./PDF4QT-1.4.0.0-x86_64.AppImage 
warning: direct reference to protected function `_ZNK7QDialog15minimumSizeHintEv' in `/usr/lib64/libQt6Widgets.so.6' may break pointer equality
./PDF4QT-1.4.0.0-x86_64.AppImage: _ZNK7QDialog15minimumSizeHintEv: /usr/lib64/libQt6Widgets.so.6: error due to GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS

Any idea what I may be doing wrong?

raffaem commented 2 months ago

@JakubMelka I think we need a template for issues

What Linux distribution?

How did you install it?

Aqua1ung commented 2 months ago

What Linux distribution?

Clear Linux, Linux kernel 6.10.7.

How did you install it?

Like I said, it's the AppImage that I am using.

JakubMelka commented 2 months ago

@raffaem , what templates?

Aqua1ung commented 2 months ago

Is anyone able to replicate this issue? Or am I the only one affected by this?

Again, I have been attempting to run the AppImage version on some recent Linux 6.10.x kernels. I recall being able to use it just fine on earlier kernels, though I can't really tell you which ones exactly.

Also, are there any plans to build a PDF4QT Docker image?

JakubMelka commented 2 months ago

Hello, @Aqua1ung, no I do not plan to create the PDF4QT Docker image. And I do not understand, why the AppImage is loading system libraries and not those provided in the AppImage. I do not know, how it is possible?

Aqua1ung commented 2 months ago

@JakubMelka, thanks for replying. Is running the AppImage working out for you? Did you try replicating this? Are you getting the same error, or is the AppImage working fine for you?

Aqua1ung commented 2 months ago

@JakubMelka: update: I tried a bunch of other applications packaged as AppImage, and they all work fine, hence I am pretty certain that the fault lies with the PDF4QT AppImage package.

JakubMelka commented 1 month ago

@Aqua1ung, I have tested it on Linux Mint and everything works correctly. I do not know, why AppImage loads the SO libraries from the system instead from the AppImage package.

Aqua1ung commented 1 month ago

@JakubMelka, what Linux kernel did you test it on, if I may ask?

Aqua1ung commented 4 days ago

Interestingly, the AppImage seems to be working (to some extent--see below) on my wife's computer (also ClearLinux, though there may be some differences in the installed libraries). Here's what error messages she's been getting:

mom@MomsSpectre~/Downloads $ ./PDF4QT-1.4.0.0-x86_64.AppImage 
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
mom@MomsSpectre~/Downloads $ qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.svg: Cannot open file ':/pdfplugins/editorplugin/certificates.svg', because: No such file or directory
qt.svg: Cannot open file ':/pdfplugins/editorplugin/certificates.svg', because: No such file or directory
^C
mom@MomsSpectre~/Downloads $

Note that upon closing the editor window, the process needs to be killed using ^C, as it doesn't exit gracefully!