External Email - Use Caution
Freesurfer
7.4.1 on Ubuntu 20 uses its own versions of Qt libraries and not the
system versions. So if your setup is looking for or finding system
versions of those libraries, then freesurfer may be installed
incorrectly and/or could be finding the wrong Qt libraries via use of environment variables like LD_LIBRRY_PATH or Qt*.
(I would try not to set LD_LIBRARY_PATH and Qt environment variables
in your shell environment before source’ing the freesurfer setup
script).
If freesurfer was previously installed with the linux package tools then it should work to uninstall it with,
$ sudo apt remove freesurfer
… answer y to all prompts ...
If you unarchived the *..tag.gz file somewhere then “rm -rf” should work on the root freesurfer directory.
With the previous freesurfer installation removed, cd to where you downloaded the freesurfer_ubuntu20-7.4.1_amd64.deb and try,
$ sudo apt-get -y install ./freesurfer_ubuntu20-7-dev_amd64.deb
… wait for install to finish …
$ cd
$ export FREESURFER_HOME=/usr/local/freesurfer/7.4.1
$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
-------- freesurfer-linux-ubuntu20_x86_64-7.4.1-20230614-7eb8460 ————
Setting up environment for FreeSurfer/FS-FAST (and FSL)
FREESURFER_HOME /usr/local/freesurfer/7.4.1
FSFAST_HOME /usr/local/freesurfer/7.4.1/fsfast
FSF_OUTPUT_FORMAT nii.gz
SUBJECTS_DIR /usr/local/freesurfer/7.4.1/subjects
MNI_DIR /usr/local/freesurfer/7.4.1/mni
$ which freeview
/usr/local/freesurfer/7.4.1/bin/freeview
$ freeview
… freeview should open an empty window …
… quit freeview and try opening this example volume …
$ freeview $SUBJECTS_DIR/bert/mri/brain.mgz
If you see the attached image, then freeview/Qt is essentially working.
- R.
On Oct 14, 2023, at 14:14, Andrei Bieger <andreibieger@gmail.com> wrote:
External Email - Use Caution
Hi, all!
I had to reinstall my VM where I had freesurfer running. Everything was running fine before. It is now a VirtualBox VM running Ubuntu 20.04 on my Windows laptop, where I'm running the version 7.4.1 of Freesurfer.
When I downloaded freesurfer it wouldn't run freeview, with the following output: "Application failed to start because no Qt platform plugin could be initialized. Available plugins are: (...)"
After some research, I tried "sudo apt install qt5-default" and freeview started running. But the thing is, every time I try loading a subject, the surfaces get completely misaligned with the volumes and the following messages show on the terminal: "Warning: MatrixInverse failed" and "Did not find any volume info". Please, see attached image.
<Screenshot from 2023-10-14 15-06-44.png>
I tried using Ubuntu 22 and previous versions of freesurfer but the problem persisted. I also found a message with a similar issue on this list, but the user stopped answering so a solution wasn't proposed. There is also a release note from v5.3.0 saying that on Fedora this message would come up, but this is not the case.
Any help with that?
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer