The qtchooser package contains a wrapper used to select between Qt binary versions. It is only needed if both Qt4 and Qt5 are installed for access via the /usr/bin directory.
This package is known to build and work properly using an LFS-7.4 platform.
Download (HTTP): http://macieira.org/qtchooser/qtchooser-31-g980c64c.tar.gz
Download MD5 sum: 36497558a0266dcbe4cccb6477bfc158
Download size: 32 KB
Estimated disk space required: 700 KB
Estimated build time: less than 0.1 SBU
Qt-4.8.5 (for the testsuite)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/qtchooser
If both Qt4 and Qt5 are installed on the system, then Qt4 should be set as default unless stated otherwise.
Install qtchooser by running the following commands:
make
To test the results, issue: make check.
Now, as the root
user:
make install && install -m644 doc/qtchooser.1 /usr/share/man/man1
The /etc/xdg/qtchooser/default.conf
configuration file contains paths to the Qt binaries and libraries which will be used
when the wrapper is run. It is ussually a symlink to a package
specific file, such as 4.conf
or
5.conf
. In first case, when
invoking the wrappers, Qt4
equivalents will be invoked. In second case, Qt5 equivalents will be invoked.
Create the configuration files by running the following commands
as the root
user:
install -dm755 /etc/xdg/qtchooser && cat > /etc/xdg/qtchooser/4.conf << "EOF"/usr/lib/qt4/bin /usr/lib
EOF cat > /etc/xdg/qtchooser/5.conf << "EOF"/usr/lib/qt5/bin /usr/lib
EOF
To set Qt4 as the default, run
the following command as the root
user:
ln -sfv 4.conf /etc/xdg/qtchooser/default.conf
To set Qt5 as the default, run
the following command as the root
user:
ln -sfv 5.conf /etc/xdg/qtchooser/default.conf
You can also select default Qt using an environment variable.
To set Qt4 as the default, run the following command:
export QT_SELECT=4
To set Qt5 as the default, run the following command:
export QT_SELECT=5
Last updated on 2013-09-07 21:56:57 -0700