Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTALL_PLUGINSDIR should be the result of QT_INSTALL_PLUGINS (from qmake -query) instead of "${INSTALL_LIBDIR}/plugins" #23

Open
n3rdopolis opened this issue Oct 27, 2022 · 2 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@n3rdopolis
Copy link

This will make it more compatible with distros that build their qtbase with a custom archdatadir, I think this must be what KDE does

I can work around it with -DINSTALL_PLUGINSDIR to not have to pass a QT_PLUGIN_PATH

but it makes it compatible with say archdatadir /opt/lib/$DEB_HOST_MULTIARCH/qt5/ in a multiarch layout, and coinstallability with Qt6

@plfiorini
Copy link
Member

The way it is now with "${INSTALL_LIBDIR}/plugins", plugins are installed under the installation prefix which might not be /usr (in fact it's /usr/local by default). Some time ago I was using QT_PLUGIN_PATH but people had /usr/local installations with plugins under QT_PLUGIN_PATH and it was a mess.

Why can't you just pass -DINSTALL_PLUGINSDIR=/opt/lib/$DEB_HOST_MULTIARCH/qt5/ ?

@plfiorini plfiorini self-assigned this Oct 29, 2022
@plfiorini plfiorini added the question Further information is requested label Oct 29, 2022
@n3rdopolis
Copy link
Author

n3rdopolis commented Oct 29, 2022

-DINSTALL_PLUGINSDIR=/opt/lib/$DEB_HOST_MULTIARCH/qt5/
is what I do for now, so I am OK with that

OK, yeah, I can see how that detection path could cause files to be installed out of /usr/local for folks that don't build their own Qt

@plfiorini plfiorini added this to the 3.0.0 milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants