rordenlab / MRIcroGL

v1.2 GLSL volume rendering. Able to view NIfTI, DICOM, MGH, MHD, NRRD, AFNI format images.

Home Page:https://www.nitrc.org/plugins/mwiki/index.php/mricrogl:MainPage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot install the linux version on WSL (Ubuntu)

michaelmcl1960 opened this issue · comments

I am trying to install the linux version of MRIcroGL on WSL. I can doenload the zip file but the download help page says to extract from the ZIP and then run the executable. But what is the executable? I can see a file called MRIcroGL_QT. When I try to execute that I get the error:

Unable to find AFNI_ATLAS_PATH
MRIcroGL/MRIcroGL_QT: symbol lookup error: MRIcroGL/MRIcroGL_QT: undefined symbol: QLCLOpenGLWidget_Create

As if it is expecing that I have setup some environmental variables.

I would strongly suggest running the native Windows version of MRIcroGL instead of using the emulated WSL.

Note that there are different MRIcroGL downloads for different Linux distributions (with 1804 for Ubuntu 18.04 and earlier), you should be able to find your distribution with

lsb_release -a

The download includes two versions of MRIcroGL: MRIcroGL if you use the GTK2 widget set and MRIcroGL_QT if you use the QT widgetset. GTK3 is not supported, as it can not support multi-sampling. Read MRIcroGL_Linux_Installation.txt for more details.

Again, I would strongly urge you to use the native Windows compilation. For this reason, I do not have much experience with WSL. You may want to ensure that glxgears and FSLeyes work in your WSL instance, as these do not have native Windows implementations so the developers may have more experience with WSL.

I would like to run it in Linux also because I use Freesurfer with my linux installation (Ubuntu 22.04)

Is the file ./MRIcroGL_QT the executable the installation help talks about?

Am I correct in typing ./MRIcroGL_QT to run mricrogl?

How do I try FSLeyes and glxgears?

lsb_release -a

give me this:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

How do I try FSLeyes and glxgears?

  • For FreeSurfer I would use NiiVue that supports both voxels and mesh formats.
  • Use MRIcroGL_QT if your widgetset is QT5, use MRIcroGL for GTK2. Please see the attached readme.
  • The first hit I found for WSL and FSLeyes is here which also suggests trying glxgears. I am not very familiar with Ubuntu, but google suggests sudo apt install mesa-utils. The FSL jiscmail may also help.

Thanks you, have helped a lot. I was able to get fsleyes and glxgears working eventually by following your links.
MRIcroGL_QT is still not working though. I still get the error:
Unable to find AFNI_ATLAS_PATH which goes away if I use :
export AFNI_ATLAS_PATH=/home/michael/MRIcroGL/Resources/atlas
but then I still get the other error:

MRIcroGL/MRIcroGL_QT: symbol lookup error: MRIcroGL/MRIcroGL_QT: undefined symbol: QLCLOpenGLWidget_Create

I think there is some installtion file that I need to run that is not referred to in the documentation

I got much further!
This got me past that error:
https://github.com/davidbannon/libqt5pas/releases/tag/v1.2.9

Apparently there is an issue with libqt5pas

Now I have this error:

Could not find FB config: will try without multi-sampling
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$000000000086CCEA

This sounds like an environmental variable is missing

Any luck using the GTK2 version instead of QT5? I have no more insights for supporting this emulated environment.