Open seungju9810 opened 2 years ago
Dear Seungju,
First of all, my apologies for the very long delay in responding - I just returned from parental leave and was quite busy catching up with things over the last few weeks.
Thank you very much for your interest in the rDCM toolbox and for giving the approach a try. I hope it proves useful for you.
Regarding your question: I'm very sorry to hear that you are having such troubles getting the rDCM toolbox to run on Linux - the compilation of the MEX files can indeed be a bit of struggle sometimes. In my experience, getting everything to run smoothly usually boils down to making sure that the combination of OS version, MATLAB version, and compiler version fits together.
We did test whether rDCM works on Linux and were able to compile everything smoothly using the GCC compiler. Hence, I do not think that you need to rewrite any rDCM code or change the compiler command in order to make the toolbox work on Linux. Instead, I feel like the problem in your case is, as mentioned above, an incompatibility between the versions of the relevant components (OS, MATLAB, GCC) when you try to compile on Linux.
Hence, my suggestion would be to first look into this more deeply and make sure that your Linux OS, MATLAB version, and GCC version all work together properly. The following resources should be helpful in this context: here and here.
Let me know if this does not help and you still encounter problems in getting the toolbox to run. I'd be more than happy to help.
All the best Stefan
Dear Stefan Frässel,
Hello, this is Seungju Lee from Seoul National University. I am writing to inquire about the problem regarding rDCM code C compiler on Linux.
My colleagues and I are trying to develop a model which can predict one's trait impulsivity from effective connectivities of resting state fMRI. To this end, we've read your paper 「rDCM for resting state fMRI (2021)」 and modified the rDCM code to fit our data (ABCD data) by referring to your rDCM toolbox manual. However, we ran into the following problem: While the rDCM code works well on Windows OS, it doesn't work on Linux OS. We think this is because Windows OS is using MinGW-w64 compiler supplied with MATLAB but on Linux, no C compiler is supplied with MATLAB and just GNU compiler (GCC), a C compiler working like MinGW-w64, is included with Linux distribution. We know MinGW is an environment to be able to use GCC in Windows, so in both cases we are using GCC. But we don't know why Linux has the error like this. So we would like to ask you the following questions: 1) Have you ever used GCC compiler to run rDCM code on Linux? 2) If yes, do you know how to change our rDCM code with MinGW-w64 compiler to GCC compiler? Or, do you know how to make the rDCM code work well on Linux without having to change the matlab compiler command?
It would be really appreciated if you provide advice about this error. I look forward to hearing from you.
Sincerely, Seungju Lee