lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
193 stars 135 forks source link

Fix plugin loader (#2052) #2053

Closed berolinux closed 6 months ago

berolinux commented 7 months ago

The lxqt-plugin binary needs to export symbols that should be visible to plugins being loaded with QPluginLoader or dlopen.

Fixes https://github.com/lxqt/lxqt-panel/issues/2052

yan12125 commented 7 months ago

Thanks for the fix, I can confirm it works. Just an issue: https://cmake.org/cmake/help/latest/variable/CMAKE_EXECUTABLE_ENABLE_EXPORTS.html says CMAKE_EXECUTABLE_ENABLE_EXPORTS is added in CMake 3.27. I'm not sure if it's too new for Linux/BSD/... distributions.

stefonarch commented 7 months ago

Indeed it's on the edge: https://repology.org/project/cmake/versions

tsujan commented 6 months ago

This may deserve a point release. Please decide what should be done. @luis-pereira, @yan12125?

yan12125 commented 6 months ago

We can use the ENABLE_EXPORTS property:

This approach looks good (not tested yet)

luis-pereira commented 6 months ago

This approach looks good (not tested yet)

Pls test. It worked on my test.

luis-pereira commented 6 months ago

This may deserve a point release. Please decide what should be done. @luis-pereira, @yan12125?

If ENABLE_EXPORTS is found to work, we should use it, IMO. It deserves a point release, IMO.

Chiitoo commented 6 months ago

This approach looks good (not tested yet)

Pls test. It worked on my test.

For what it is worth, worked for me.

Thank you!

tsujan commented 6 months ago

@luis-pereira Would you please make a PR?

luis-pereira commented 6 months ago

@tsujan Done here @berolinux Thanks for your work.

yan12125 commented 6 months ago

Superseded by #2061