External Email - Use Caution
Dear FreeSurfer experts
I have used this script to start Freeview from within Matlab
fs=getenv('FREESURFER_HOME');
setenv('FS_QT_HOME',fullfile(fs,'lib','qt'));
setenv('QTLIBPATH',fullfile(fs,'lib','qt','lib'))
setenv('qtplugin',fullfile(fs,'lib','qt','plugins'))
setenv('vtk',fullfile(fs,'lib','vtk'))
lib=getenv('LD_LIBRARY_PATH');
qtlib=getenv('QTLIBPATH');
plugins=getenv('qtplugin');
setenv('LD_LIBRARY_PATH',strcat(lib,':',qtlib,':',plugins,fullfile(fs,'lib','vtk')))
if upper < fdrtreshold
upper = fdrtreshold + 1;
fdrtreshold=num2str(fdrtreshold);upper=num2str(upper);
fdrtreshold=sprintf('%s,%s',fdrtreshold,upper);
leftcommand=sprintf('%s/%s/surf/lh.%s:annot=aparc.annot:annot_outline=1:overlay=%s:overlay_threshold=%s',SUBJECTS_DIR,template,surface,leftmgh,fdrtreshold);
rightcommand=sprintf('%s/%s/surf/rh.%s:annot=aparc.annot:annot_outline=1:overlay=%s:overlay_threshold=%s
',SUBJECTS_DIR,template,surface,rightmgh,fdrtreshold);
freeview='freeview';
commandline=sprintf('%s -f %s -f %s -viewport 3d
&',freeview,leftcommand,rightcommand);
system(commandline)
but with Freesurfer 7 I have been unable to start Freeview. Are there any
option that I am missing. I get this error message
This application failed to start because no Qt platform plugin could be
initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.
/usr/local/freesurfer/7.0.0-1/bin/freeview_matlab: line 13: 330961 Aborted
(core dumped) freeview $argv:q
/usr/local/freesurfer/7.0.0-1/bin/freeview_matlab: Aborted
Knut Jørgen Bjuland
_______________________________________________
Freesurfer mailing list
[email protected]
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer