unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: Alexander Asteroth <alexander.asteroth@h-brs.de>
Cc: help-guix@gnu.org
Subject: Re: How to handle concurrent QT versions
Date: Thu, 2 Mar 2023 11:11:56 +0100	[thread overview]
Message-ID: <ZAB2bI2U0wSEB06c@jurong> (raw)
In-Reply-To: <87ilfkg9t1.fsf@h-brs.de>

Am Wed, Mar 01, 2023 at 09:14:27AM +0100 schrieb Alexander Asteroth:
> guix packages but simply made them compile (after some manual changes to
> the code) in my current environment. If I now run a `guix package -u`
> the libraries (from qtbase) get upgraded from 5.15.5 to 6.3.1 and the
> program fails to run.

Then I suppose that your Qt5 libraries disappear, so that the programs will
not find them; and the newly installed Qt6 libraries will not be of help
(they have a different name and are thus considered, well, different).
To check, you can do "ldd name-of-my-executable", which shows you which
libraries needed by your binary are found or not. So the solution is
to not do a "guix package -u", or to do a
"guix package --do-not-upgrade qtbase qtxxx qtyyy ... -u"
(with a potentially long list of Qt packages in the middle).

It might be easier then to create a separate profile with a manifest only
for your Qt5 development, which you would then avoid to update.
It is something I have not done myself yet, so I will have to refer you
to the documentation.

Andreas



  parent reply	other threads:[~2023-03-02 10:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-28 11:25 How to handle concurrent QT versions Alexander Asteroth
2023-02-28 16:53 ` Andreas Enge
2023-03-01  8:14   ` Alexander Asteroth
2023-03-01 13:15     ` Felix Lechner via
2023-03-02 10:11     ` Andreas Enge [this message]
2023-03-03  8:47       ` Alexander Asteroth
2023-03-03 14:45         ` Andreas Enge

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=ZAB2bI2U0wSEB06c@jurong \
    --to=andreas@enge.fr \
    --cc=alexander.asteroth@h-brs.de \
    --cc=help-guix@gnu.org \
    /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.
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).