qtchooser exits with error message not changing qt version

Bug #1155861 reported by Ralph Janke
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
qtchooser (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Instead of allowing to choose qt version, qtchooser acts as following:

$ qtchooser -qt=qt5
qtchooser: could not exec '/usr/lib/i386-linux-gnu/qt5/bin/qtchooser': No such file or directory
$ qtchooser -qt=qt4
qtchooser: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qtchooser': No such file or directory

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04
Codename: raring

All necessary qt4 and qt5 packages are installed

Ralph Janke (txwikinger)
Changed in qtchooser (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtchooser (Ubuntu):
status: New → Confirmed
Revision history for this message
Diego Schulz (dschulzg) wrote :

same thing with Qt Assistant

$ assistant
assistant: could not exec '/usr/lib/i386-linux-gnu/qt5/bin/assistant': No such file or directory

Revision history for this message
Blaze (blaze) wrote :

Diego
do the following thing "sudo apt-get install qt4-default".

Here I must say that due to that switching "innovation" qtcreator is not able to find qmake. Dammit!

Revision history for this message
Manner Róbert (the-manni) wrote :

Same here when I have only installed the package "qt5-default". Mine was caused by missing packages.

You can search for a missing file like this:
$ apt-file search /usr/lib/i386-linux-gnu/qt5/bin/assistant
qttools5-dev-tools: /usr/lib/i386-linux-gnu/qt5/bin/assistant

After installing the above package the problem about the missing file went away. I still needed one more package to be able to run assistant:

Error reading collection file '/home/<username>/.local/share/QtProject/Assistant/qthelpcollection_5.0.1.qhc': Cannot load sqlite database driver!.

This could be solved by installing "libqt5sql5-sqlite".

Revision history for this message
Diego Schulz (dschulzg) wrote :

@Blaze, I tried it. Unfortunately it didn't work for qtchooser. Assistant is working just fine, though.

Following Manner Róbert advice, installed apt-file tool and it seems that the actual qtchooser binary is not to be found in any package in the standard repositories. The qtchooser package provides a 22k binary (/usr/bin/qtchooser), but that file is what doesn't works in the first place. It seems like it tries to run the actual /usr/lib/i386-linux-gnu/qt${Qt_VERSION}/bin/qtchooser.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Fixed with qtchooser 26-3ubuntu1 in saucy, also available for Ubuntu 13.04 in qt5-beta-proper PPA at the moment.

That is, qtchooser now shows help text instead of a non-helpful error when called in ways that seem logical like in the bug description but which are actually not supposed ways of using qtchooser.

Changed in qtchooser (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :

We need same on 12.04...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.