bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
401 stars 55 forks source link

libQt5Pas.so.1: cannot open shared object file: No such file or directory #579

Open chwt163 opened 3 months ago

chwt163 commented 3 months ago

error while loading shared libraries: libQt5Pas.so.1: cannot open shared object file: No such file or directory

manjaro kde plasma6

circular17 commented 3 months ago

Hello @chwt163

Thanks for letting me know about this bug. I presume it means that this dependency is not indicated in the package.

A workaround may be to install the relevant package. On Manjaro, the command is probably something like:

sudo pacman -S libqt5pas

If you install this package, does it solve the problem?

Regards

chwt163 commented 3 months ago

@circular17 Thank you! After executing "sudo pacman -S qt5pas", I can successfully run lazpaint, but there are a few phenomena:

  1. Every time the program starts, there is a pop-up window.
  2. When you expand the menu multiple times, the menu will appear in the center of the program instead of following the menu bar

屏幕截图_20240529_140555 屏幕截图_20240529_140644

This is the full konsol output:

./lazpaint
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x1ce60b00) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x1d0fbb80) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
circular17 commented 3 months ago

@chwt163 Good to know this was the package install you needed.

The bug on startup you're encountering may have been fixed in development but not in the lazpaint package of your system. To check that, I invite you to try the following binaries: https://github.com/bgrabitmap/lazpaint/releases/download/v7.2.2/lazpaint7.2.2_linux64_qt5_bugfix.tar.gz

About the menu showing up on the center on the screen, I am not sure but it may be related to updates to Linux system. In the log, the error about requestActivate is indeed related to that, Wayland being the newer version of the windowing system. I will investigate.

chwt163 commented 3 months ago

Use bugfix.tar.gz packages, The pop-up window is gone. But there is still a bug in the menu, reproduce: open LazPaint's help-about, then close the about window, at this time click on other programs, go back to Lazpaint, and the menu will appear in the center.

circular17 commented 3 months ago

Thank you for testing the bugfix version. This confirms that the startup dialog issue is resolved but hasn't been released yet. However, the bug with the menu appearing in the center of the window still persists. Thanks again for your valuable feedback.

circular17 commented 3 months ago

Related to #515