11

The question is, before I try to build supercollider from source, making sure that I am using Qt5. Problem is this:

jsimon@edgy:~$ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
jsimon@edgy:~$ locate qmake
/usr/bin/qmake

I think is there something misconfigured with qtchooser, docs here:

Qtchooser man page

and here:

Qtchooser on Linux from Scratch

More digging, there is a directory with some symlinks in it:

jsimon@edgy:/usr/lib/x86_64-linux-gnu/qtchooser$ ls -al
lrwxrwxrwx   1 root root    50 Sep  1 06:04 4.conf -> ../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
lrwxrwxrwx   1 root root    50 Sep  1 06:04 5.conf -> ../../../share/qtchooser/qt5-x86_64-linux-gnu.conf
lrwxrwxrwx   1 root root    50 Sep  1 06:04 qt4.conf -> ../../../share/qtchooser/qt4-x86_64-linux-gnu.conf
lrwxrwxrwx   1 root root    50 Sep  1 06:04 qt5.conf -> ../../../share/qtchooser/qt5-x86_64-linux-gnu.conf

And another deeper directory with what looks to me like the problem, a symlink giving Qt4 as the default:

jsimon@edgy:/usr/lib/x86_64-linux-gnu/qt-default/qtchooser$ ls -al
lrwxrwxrwx 1 root root   53 Sep  1 06:04 default.conf -> ../../../../share/qtchooser/qt4-x86_64-linux-gnu.conf

Some information from qtchooser:

jsimon@edgy:~$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt4/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"

Looking at this page, it ought to be simple:

Handling Multiple Qt Versions

However:

jsimon@edgy:~$ export QT_SELECT=qt5
jsimon@edgy:~$ printenv
[snip]
QT_SELECT=qt5
[snip]
jsimon@edgy:~$ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake': No such file or directory

Back where we're started, no change. Now what?

Zanna
  • 69,223
  • 56
  • 216
  • 327
  • Have you read the readme for supercollider located [here](https://raw.githubusercontent.com/supercollider/supercollider/master/README_LINUX.md). It details several dependencies to install including Qt. It also details how to set the path to Qt when you build (for both a repository install or an install from the Qt website). It shouldn't be necessary to use qtchooser. – gsxruk Sep 02 '16 at 13:52
  • Yes, I've studied that closely, and discussed the issue on the supercollider mailing list. http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Build-3-7-2-from-source-on-ubuntu-16-04-td7627556.html#a7627596 – J. Simon van der Walt Sep 02 '16 at 14:51
  • It just seemed to me that qtchooser was probably the 'right' way to do this. – J. Simon van der Walt Sep 02 '16 at 14:52
  • 1
    If the primary error is `could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake': No such file or directory`, that would suggest you need to install (or re-install) the `qt5-qmake` package – steeldriver Sep 02 '16 at 14:56
  • Solved! Thanks. I didn't realise that qmake and qt were two different things. Installing qt5-qmake using Synaptic seems to fix everything. Umm, how does this work, is there some way I now mark this question as solved, or answered? – J. Simon van der Walt Sep 02 '16 at 15:17
  • 1
    In my case `qt5-qmake` was already installed, and I still had this problem. My solution was to change the link `sudo ln -s -T /usr/share/qtchooser/qt5-x86_64-linux-gnu.conf /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf -f ` – dafnahaktana Oct 05 '18 at 09:10

1 Answers1

7

All of this turned out to be a red herring: all that was needed was to install qmake, for example:

sudo apt install qt5-qmake
Zanna
  • 69,223
  • 56
  • 216
  • 327