Page 1 of 1

/usr/bin/moc and qt5

Posted: Tue Jan 17, 2017 7:49 am
by ecceman
I've run into a small problem when installing MakeMKV on Solus OS. Having qt5-dev installed puts a /usr/bin/moc in place that is not compatible with makemkv-oss. Configure runs fine, but when compiling you get a bunch of errors complaining about version mismatch and "the qt difference is to big" or something like that.

I don't know if its a solus-specific behaviour, but moc is renamed to moc-qt4 not to conflict with the qt5 version. I'm not very familiar with the configure script, is there a nice way to point out where the moc binary is?

Re: /usr/bin/moc and qt5

Posted: Wed Jan 18, 2017 3:53 pm
by NullNix
ecceman wrote:I've run into a small problem when installing MakeMKV on Solus OS. Having qt5-dev installed puts a /usr/bin/moc in place that is not compatible with makemkv-oss. Configure runs fine, but when compiling you get a bunch of errors complaining about version mismatch and "the qt difference is to big" or something like that.

I don't know if its a solus-specific behaviour, but moc is renamed to moc-qt4 not to conflict with the qt5 version. I'm not very familiar with the configure script, is there a nice way to point out where the moc binary is?
The configure script gets it from

pkg-config --variable moc_location "QtCore"

or (for Qt5).

pkg-config --variable host_bins "Qt5Core"

If these are pointing at the wrong moc, that's your problem right there -- your Qt installation is broken, although probably fixable by editing the .pc files under /usr/lib64/pkg-config. (If they return nothing at all, you're probably missing -devel headers or something.)