raacampbell / matlab_elastix

MATLAB Elastix wrapper
http://www.mathworks.com/matlabcentral/fileexchange/52982-matlab-elastix
GNU Lesser General Public License v3.0
26 stars 12 forks source link

*** ERROR: Unable to find elastix binary in system path. Quitting *** #27

Closed jyang526843 closed 3 years ago

jyang526843 commented 3 years ago

I have tried both Windows 10 and mac systems. Following all the steps, set up Elastix binary files to PATH, and add "code" and "yamlmatlab" onto MATLAB path. However, I still receive these error messages saying that there cannot find elastic binary in system path. Could you please help me?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ERROR: Unable to find elastix binary in system path. Quitting One or more output arguments not assigned during call to "varargout".

Error in example_2D_affineThenWarping (line 48) [~,out]=elastix(lenaTrans,lena,[],'elastix_default.yml','paramstruct',p);

raacampbell commented 3 years ago

I would confirm it's in the system path. If it was, I can't see how you would get the error.

jyang526843 commented 3 years ago

Thank you for the quick reply! I also think it may still not in the system path yet. I use Windows 10, and I followed all the steps: "Control Panel-> System -> Environmental variables -> Edit PATH". Is there any suggestion what I can do?

raacampbell commented 3 years ago

It's something like that, yes. It's been ages since I've done it and I don't use Windows much so I can't suggest anything beyond looking on-line for the answer. I guess if it's successfully added to the path then it should be available via the Windows command line.

carlacwinter1 commented 3 years ago

I'm getting this same error when trying to run elastix in a matlab script. I've added it to my system path the same way.

Did you find a solution?

The system cannot find the path specified. 

*** ERROR: Unable to find elastix binary in system path. Quitting ***
raacampbell commented 3 years ago

If you start a Windows command prompt and run elastix -v what happens? I verify that on my Windows 10 machine, elastix -v is finding the command but in MATLAB it isn't working. This is after adding the install to the path. So something is weird, maybe this is new to Win 10.

EDIT: OK, you just need to reboot after adding to the PATH. Then it works.

jyang526843 commented 3 years ago

Rob, thank you very much for the help! I successfully installed elastix on one of my pc, it outputs as : image

But my another pc which fails saying that "OpenCL.dll was not found" . image

raacampbell commented 3 years ago

This error I am afraid I don't know anything about as I have never encountered it. The error is something related to Elastix itself not the MATLAB tools.

jyang526843 commented 3 years ago

Hi Rob, I tried to install the "OpenCL.dll" but I am still not successful for my second computer. Fortunately, one of my PC can use the elastix and your MATLAB interface tool. Thanks again for all these contributions and kind replies!

TobiasOvermark commented 2 years ago

I had the same problem. (MacOS), my terminal says this when elastix -v: dyld: Library not loaded: @rpath/libANNlib-5.0.1.dylib Referenced from: /Users/tobiasovermark/Desktop/AMaSiNe-1.1.1/elastix-5.0.0-mac/bin/elastix Reason: image not found

raacampbell commented 2 years ago

Tobias, I think you have a different issue. I suggest installing elastix from its GitHub page (https://github.com/SuperElastix/elastix/releases) not packaged via something else like AMaSiNe.

TobiasOvermark commented 2 years ago

I run into "library not loaded" when I put elastix -v into terminal. When I run libANNlib-5.0.1.dylib: exec format error

[cid:78b9c88e-d53c-4ef5-ae5b-c362c0c4e753]


Fra: Rob Campbell @.> Sendt: 28. september 2021 15:57 Til: raacampbell/matlab_elastix @.> Cc: TobiasOvermark @.>; Comment @.> Emne: Re: [raacampbell/matlab_elastix] ERROR: Unable to find elastix binary in system path. Quitting (#27)

Tobias, I think you have a different issue. I suggest installing elastix from its GitHub page (https://github.com/SuperElastix/elastix/releases) not packaged via something else like AMaSiNe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/raacampbell/matlab_elastix/issues/27#issuecomment-929247205, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV2N7AS3YTJGECECCDE2W4DUEHCU5ANCNFSM4ZOC4IPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.