leoliuf / MRiLab

A Numerical Magnetic Resonance Imaging (MRI) Simulation Platform
https://leoliuf.github.io/MRiLab/
BSD 2-Clause "Simplified" License
204 stars 64 forks source link

DoScanAtCPU #21

Closed FZihan closed 5 years ago

FZihan commented 5 years ago

I have a problem after compiling MEX files, I set Matlab2015a and Framewave 1.3 in my system environment path. By following the MRiLab manual: Build the INSTALL project, compiled MEX binaries will be copied to MRiLab/Lib/bin folder by default, A DoScanAtCPU.mexaw64 copied in the bin folder, which is 94 KB. After pressing K-space in sequence design panel I got this message: ksp

2

Could you please help me where is the problem?

leoliuf commented 5 years ago

You probably want to use some tools to detect which module is missing. You can use this one. http://www.dependencywalker.com/

ElmiraYazdani commented 5 years ago

I have the same problem Dependencywalker found these modules: What should I do now? Thank you for your time 12

leoliuf commented 5 years ago

@elmirayazdani You need to add the Framewave path containing the missing DLLs into the system environment. Check this thread for how to add DLL path in Windows https://stackoverflow.com/questions/694351/setting-library-path-for-win32-console-applications

But, you can also compile against static libraries *.lib so as to avoid loading .dll in runtime.

ElmiraYazdani commented 5 years ago

I have the dlls in my system path: dll Is there any problem with the FW_1.3_Win64?

leoliuf commented 5 years ago

@elmirayazdani You need to add the path into the 'PATH' system variable to allow Windows looking for the DLLs.

FZihan commented 5 years ago

Thank you Dr. Liu I've used the dependencywalker, but there is no error, just 2 warning! May I ask you to take a look at this picture: ds

ElmiraYazdani commented 5 years ago

I added Framewave's dlls to my "PATH" of the system and now: 1 Where is the problem? Thank you for all your help

ElmiraYazdani commented 5 years ago

My problem has been solved Thank you for introducing dependencywalker.