MRtrix3 install problem

I’m having trouble installing MRtrix3, I’ve installed Qt and enabled qmake -v but I’m still getting an error when I run ./congfiure, please help me. The following is the error code

ubuntu22@ghq:~$ qmake -v
QMake version 3.1
Using Qt version 5.14.2 in /opt/Qt5.14.2/5.14.2/gcc_64/lib

ERROR: Qt moc not found!

MRtrix3 was unable to locate the Qt meta-object compiler ‘moc’.

Make sure your PATH environment variable includes the location of the correct
version of this command, for example:
$ export PATH=/opt/qt5/bin:PATH ./configure
(amend with the actual path to the Qt executables on your system)

image

I re-executed the following code and it worked, I don’t know why

“sudo apt-get install git g++ python libeigen3-dev zlib1g-dev libqt5opengl5-dev libqt5svg5-dev libgl1-mesa-dev libfftw3-dev libtiff5-dev libpng-dev”

But I encountered a new problem


屏幕截图 2024-11-05 2317011

I don’t know if the following three files of “mrtrix3” need to be merged “bin/ share/ lib/”

2 weeks ago, when I installed it on another computer, I copied the contents of the share/ lib/ folder in the mrtrix3 directory directly to bin/, and then executed mrview and it succeeded. I don’t know why this happened. I haven’t tried it on this computer yet, so I don’t know if it will work.

I gave up the source code installation and used conda. Finally, I encountered a new problem, but it did not seem to affect the opening of mrview.

For me the following packages enabled a smooth installation of Mrtrix:

sudo apt install git g++ python libeigen3-dev zlib1g-dev libqt4-opengl-dev libgl1-mesa-dev libfftw3-dev libtiff5-dev libpng-dev
sudo apt install python3
sudo apt install qt5-default libqt5opengl5-dev
sudo apt install qtbase5-dev
sudo apt install clang libc++-dev libc++abi-dev
sudo apt install libstdc++-12-dev