ERROR: error compiling Qt application!

You’re trying to use your own, non-default version of Qt 5.6 installed in /usr/local/qt-5.6.2/, but it conflicts with your system version of Qt installed in /usr/include. Unfortunately whatever Linux distribution you’re using has decided to place the development files for their version of Qt in a location where they can’t be ignored, making it essentially impossible to use your version instead of yours (this is very poor packaging from them, what version of Linux are you using?).

The only way I can think of to avoid this is to remove the development files for your system version of Qt. This is probably as simple as removing the qt-devel package – although the exact name of that package and the command you would use to do this will depend on the specifics of your Linux distribution and the particular package manager it uses. You can always re-install it later once MRtrix3 is compiled. If you’re struggling with this, we should be able to figure it out if you tell us exactly what version of Linux you’re running. Note this will require admin (root) access – which I note you already have.

The other (much simpler, in my opinion) way to fix this is to not use your own version of Qt, but rely on the system-supplied one. That should just be a matter of leaving the PATH variable alone. But I expect you have your reasons, given you’re also using your own compiler…?

1 Like