Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib=biswrapper() gives error in MATLAB #121

Open
XuanLin opened this issue Feb 18, 2021 · 3 comments
Open

lib=biswrapper() gives error in MATLAB #121

XuanLin opened this issue Feb 18, 2021 · 3 comments

Comments

@XuanLin
Copy link

XuanLin commented Feb 18, 2021

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 XuanLin closed this as completed Feb 18, 2021
@XuanLin XuanLin reopened this Feb 18, 2021
@XeniosP
Copy link
Collaborator

XeniosP commented Feb 18, 2021

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.

@XuanLin
Copy link
Author

XuanLin commented Feb 18, 2021

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?

@XeniosP
Copy link
Collaborator

XeniosP commented Feb 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants