From: Thomas Danckaert <post@thomasdanckaert.be>
To: h.goebel@crazy-compilers.com
Cc: guix-devel@gnu.org, iyzsong@gmail.com
Subject: Re: QT install and search paths
Date: Thu, 24 Aug 2017 13:37:49 +0200 (CEST) [thread overview]
Message-ID: <20170824.133749.1478354122253631402.post@thomasdanckaert.be> (raw)
In-Reply-To: <42cac0e9-d948-3ea1-7312-d003751fd6a8@crazy-compilers.com>
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
Subject: QT install and search paths
Date: Wed, 23 Aug 2017 20:25:10 +0200
> [...] I found this in qt.scm
> (qtbase):
>
> (search-path-specification
> (variable "QT_PLUGIN_PATH")
> (files '("plugins")))
>
> This means that `lib/plugins` is *not* included in QT_PLUGIN_PATH
> and thus not searched. (Which I assume is the reason for many
> test-failures.)
(indeed, e.g. for kdevplatform, I set the QT_PLUGIN_PATH before
running tests)
> Also in qt.scm (qtbase) there is:
>
> (substitute* qt_config.prf
> …
> (("\\$\\$\\[QT_INSTALL_PLUGINS\\]")
> "$$replace(dir, mkspecs/modules, plugins)")
>
> I assume this should make the plugins to be in stalled in …/plugins,
> but KDE framework is installing into …/lib/plugins.
I'm not sure if this is an error, or if KDE chooses this directory on
purpose.
Either way, I think qtbase's QT_PLUGIN_PATH setting only has an
effect if a user installs qtbase directly in their profile (or do I
misunderstand native-search-paths? The manual doesn't explain the
difference between "native-search-paths" and "search-paths"), so
applications using these plugins will still need to set the correct
environment variable themselves somehow?
A previous discussion is here
https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00776.html
For the kdevelop package, I wrapped the executable, setting a bunch
of Qt-related environment variables. This works as a stop-gap, but
it will break down when a user uses multiple Qt/KDE applications with
different plugin requirements (some KDE daemons, such as kdeinit,
need to find all their plugins at the moment they are started).
Ludo suggested using a profile hook to set the required environment
variables depending on the installed applications, but I never looked
into it further because wrapping the executable was “good enough”
for. For a KDE desktop, I think you'll need a better solution.
Thomas
next prev parent reply other threads:[~2017-08-24 11:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 18:25 QT install and search paths Hartmut Goebel
2017-08-24 11:37 ` Thomas Danckaert [this message]
2017-08-25 7:32 ` Hartmut Goebel
2017-08-24 11:59 ` 宋文武
2017-08-25 7:06 ` Hartmut Goebel
2017-08-25 12:40 ` 宋文武
2017-08-25 16:04 ` 宋文武
2017-08-26 8:31 ` Hartmut Goebel
2017-08-27 16:49 ` Hartmut Goebel
2017-09-02 16:40 ` Hartmut Goebel
2017-09-03 4:58 ` 宋文武
2017-09-03 11:46 ` 宋文武
2017-09-03 12:39 ` Hartmut Goebel
2017-09-03 14:04 ` Hartmut Goebel
2017-09-03 14:46 ` 宋文武
2017-09-04 7:44 ` Thomas Danckaert
2017-09-04 9:16 ` Hartmut Goebel
2017-09-07 13:38 ` 宋文武
2017-09-19 16:30 ` Hartmut Goebel
2017-09-22 12:59 ` Hartmut Goebel
2017-10-06 12:22 ` Hartmut Goebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170824.133749.1478354122253631402.post@thomasdanckaert.be \
--to=post@thomasdanckaert.be \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.com \
--cc=iyzsong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).