Upgrading Qt from 5.6.1

Issues related to applications and software problems
Post Reply
abates
Posts: 1
Joined: 2017/08/22 22:20:03

Upgrading Qt from 5.6.1

Post by abates » 2017/08/22 22:31:58

I recently installed Centos 7 onto a machine with the intention of developing using Qt's Quick Controls 2 system, but from what I can tell, the installation gave me Qt 5.6.1, which is before Quick Controls 2 was supported.

Is it possible to update Qt to 5.7? I've been having a play with Yum, but haven't been able to work out if I can upgrade it that way. Is this something I need to update manually?
Last edited by abates on 2017/08/23 21:26:19, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrading Qt from 4.6.1

Post by TrevorH » 2017/08/23 09:26:27

5.6.1 is what we ship and it's not recommended to change that. Anything that uses qt will pull in our packages and if you've manually installed it then those packages may overwrite your locally installed copy. At the very least you should learn how to create packaged versions of your replacements so that yum is aware of them and will give errors if anything tries to pull in the distro packages.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Upgrading Qt from 4.6.1

Post by jlehtone » 2017/08/23 10:48:40

Update/upgrade is a poor option. Software Collections (SCL) do use a simultaneous install strategy, where the variants are placed elsewhere in order to not mess with the system defaults.

How does one use such variant install then? One starts a command (e.g bash) in modified environment where PATH, etc search paths have the variant before system's version. For example, GCC is 4.8.5. I have installed devtoolset-6 packages from SCL repository. I have to

Code: Select all

scl enable devtoolset-6 bash
to get a bash session that sees GCC 6.2.1.

Alas, Qt-5.7 is not in SCL repos as far as I can see. CentOS-7.4 will apparently have "Qt-5.6.2".

You could build Qt-5 as a SCL RPM-package(s), following SCL instructions.


If really desperate, mimic the SCL philosophy with a source install to your homepath (as non-privileged user) and an environment-modules config.

Post Reply