/usr/bin/moc and qt5

The place to discuss linux version of MakeMKV
Post Reply
ecceman
Posts: 1
Joined: Tue Jan 17, 2017 7:37 am

/usr/bin/moc and qt5

Post by ecceman » Tue Jan 17, 2017 7:49 am

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?

NullNix
Posts: 14
Joined: Sat Jan 31, 2015 12:57 pm

Re: /usr/bin/moc and qt5

Post by NullNix » Wed Jan 18, 2017 3:53 pm

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.)

Post Reply