bisweb icon indicating copy to clipboard operation
bisweb copied to clipboard

lib=biswrapper() gives error in MATLAB

Open XuanLin opened this issue 3 years ago • 3 comments

Hi,

I am using a Windows machine and trying to parcellate the .nii data using bis_individualizedparcellation.m, but the library calling line

% Loads the bisweb C++ library as lib
lib=biswrapper();

Doesn't work (error: Unrecognized function or variable 'biswrapper'.). I am wondering if this means I need to use the standard cmake/make commands to install the c++ libraries first?

Thank you!

Update: I figure that I didn't do the nativebuild.sh for MATLAB and I am trying it now.

XuanLin avatar Feb 18 '21 05:02 XuanLin

Did you figure this out? The Matlab code requires (as you have discovered the C++) library to be there. While nativebuild.sh will work on windows, it needs to be run in a bash shell. Take a look at the

github actions build for windows

which shows who to configure a windows build system for bisweb. You will need the "visualstudio2017buildtools" package installed.

XeniosP avatar Feb 18 '21 13:02 XeniosP

Hi,

Thanks for the reply! I am still working on it. One more question: if I need to parcellate the .nii file into regions and get the correlation matrix, does this MATLAB code work https://github.com/bioimagesuiteweb/bisweb/blob/devel/matlab/bis_individualizedparcellation.m?fbclid=IwAR13JCw1R4VfWee5akOdylQY0zOGYNXgtvfeSPCSsEp63GrCQ3MfOgo0KjA?

I tried to use this C++ code work for Shen parcellation https://github.com/bioimagesuiteweb/bisweb/tree/devel/cpp/cpmcode and I got an error like below: image

Update: I switched to Ubuntu 16.06 and tried to run MATLAB scripts, I got an error

/lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.27" not found

Am I supposed to use Ubuntu 18.04?

In general, if I want to get parcellation from my .nii file, are there working code here that can do this?

XuanLin avatar Feb 18 '21 20:02 XuanLin

What version of gcc are you using (gcc -v) will give the answer.

Looking at the error, this seems to come from an optional module you probably do not need right away. You can turn this off in CMAKE --

Make sure this line in your CMakeCache.txt file points to OFF BIS_USECPM:BOOL=OFF

Xenios

XeniosP avatar Feb 19 '21 15:02 XeniosP