juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run error in ArchLinux

zxp19821005 opened this issue · comments

As titled.

  • OS: EndeavourOS
  • Kernel: 6.1.67-1-lts
  • App Ver: 4.3.0
  • qt6-base: 6.6.1
  • qt6-svg: 6.6.1
    I've ported it to ArchLinux AUR:
    When I update to 4.3.0,run the app,I've got errors:
$ heimer
warning: direct reference to protected function `_ZN13QGraphicsItem14hoverMoveEventEP24QGraphicsSceneHoverEvent' in `/usr/lib/libQt6Widgets.so.6' may break pointer equality
heimer: _ZN13QGraphicsItem14hoverMoveEventEP24QGraphicsSceneHoverEvent: /usr/lib/libQt6Widgets.so.6: error due to GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS

Hmm...I don't see this happening on Ubuntu 22.04 LTS and with the official Qt 6.5.3 SDK. I'll try to reproduce on Qt 6.6.1.

Do I understand correctly, that Heimer 4.2.0 doesn't have this issue with Qt 6.6.1 on Arch? In that case would it be possible for you to dig out the commit that probably causes this?

I was not able to reproduce this with Qt 6.6.1, but after looking at the code I might know what that warning is about.

Please try 09c9abc.

$ heimer
warning: direct reference to protected function `_ZN13QGraphicsItem14hoverMoveEventEP24QGraphicsSceneHoverEvent' in `/usr/lib/libQt6Widgets.so.6' may break pointer equality
heimer: _ZN13QGraphicsItem14hoverMoveEventEP24QGraphicsSceneHoverEvent: /usr/lib/libQt6Widgets.so.6: error due to GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS

I had this error when trying to use https://github.com/juzzlin/Heimer/releases/download/4.3.0/heimer-4.3.0-ubuntu-22.04_amd64.deb binary on ArchLinux.

But compiling from source in Arch, fixed error and it's running smoothly.
It seems that Ubuntu config of QT is different with Arch's one.

$ heimer
warning: direct reference to protected function `_ZN13QGraphicsItem14hoverMoveEventEP24QGraphicsSceneHoverEvent' in `/usr/lib/libQt6Widgets.so.6' may break pointer equality
heimer: _ZN13QGraphicsItem14hoverMoveEventEP24QGraphicsSceneHoverEvent: /usr/lib/libQt6Widgets.so.6: error due to GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS

I had this error when trying to use https://github.com/juzzlin/Heimer/releases/download/4.3.0/heimer-4.3.0-ubuntu-22.04_amd64.deb binary on ArchLinux.

But compiling from source in Arch, fixed error and it's running smoothly. It seems that Ubuntu config of QT is different with Arch's one.

Nice! I will push my guess fix to master and close this for now.

A long-term and permanent solution is providing an ArchLinux package too.

Thank you!