juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
GNU General Public License v3.0
887 stars 112 forks source link

Run error in ArchLinux #255

Closed zxp19821005 closed 8 months ago

zxp19821005 commented 8 months ago

As titled.

juzzlin commented 8 months ago

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?

juzzlin commented 8 months ago

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.

juzzlin commented 8 months ago

Please try 09c9abceedf903756092598f5b0d07200906e753.

chromer030 commented 8 months ago
$ 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.

juzzlin commented 8 months ago
$ 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.

chromer030 commented 8 months ago

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

zxp19821005 commented 8 months ago

Thank you!