TomographicImaging / CCPi-Regularisation-Toolkit

The set of CPU/GPU optimised regularisation modules for iterative image reconstruction and other image processing tasks
Apache License 2.0
49 stars 25 forks source link

I have some troubles installing the toolkit in Win 10 for Matlab 2022a using mex compile. #175

Open OsamaSikanderKhan opened 1 year ago

OsamaSikanderKhan commented 1 year ago

I have some troubles installing the toolkit in Win 10 for Matlab using mex compile. Would it be possible to add here some screenshots on how to do that or solution to the error?

Error : Error using copyfile No matching files named 'E:\multi-channel-X-ray-CT-master\SupplementaryPackages\CCPi-RegularisationToolkit\CCPi-Regularisation-Toolkit-master\src\Matlab\mex_compile....\Core\inpainters_CPU' were found.

Error in compileCPU_mex_WINDOWS (line 23) copyfile(pathcopyFrom2, 'regularisers_CPU');

LinCheng13 commented 7 months ago

Have you solved this problem? Can you tell me your solution?

OsamaSikanderKhan commented 7 months ago

No i couldn't solve it in the end so just moved on

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: LinCheng13 @.> Sent: Saturday, January 20, 2024 3:53:40 PM To: vais-ral/CCPi-Regularisation-Toolkit @.> Cc: OsamaSikanderKhan @.>; Author @.> Subject: Re: [vais-ral/CCPi-Regularisation-Toolkit] I have some troubles installing the toolkit in Win 10 for Matlab 2022a using mex compile. (Issue #175)

Have you solved this problem? Can you tell me your solution?

— Reply to this email directly, view it on GitHubhttps://github.com/vais-ral/CCPi-Regularisation-Toolkit/issues/175#issuecomment-1902075211, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWJO2YIDENENH2HRF4D6MRLYPOV4JAVCNFSM6AAAAAAVWC644SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGA3TKMRRGE. You are receiving this because you authored the thread.Message ID: @.***>

LinCheng13 commented 7 months ago

okay

dkazanc commented 7 months ago

Hi, sorry for the delay in replying on this. Matlab mex-compilers haven't' been tested for a while now as we've moved more to Python support. Please remove the line here and re-run compileCPU_mex_WINDOWS.m script. If there is an error, please post here. thanks

LinCheng13 commented 7 months ago

Error : Error using mex C:\Users\CL\AppData\Local\Temp\mex_597047327488838_28100\ROF_TV.obj:ROF_TV.c:(.text+0x186): undefined reference to __imp_TV_ROF_CPU_main' C:\Users\CL\AppData\Local\Temp\mex_597047327488838_28100\ROF_TV.obj:ROF_TV.c:(.text+0x1d5): undefined reference toimp_TV_ROF_CPU_main' C:\Users\CL\AppData\Local\Temp\mex_597047327488838_28100\ROF_TV_core.obj:ROF_TV_core.c:(.text+0x11a6): undefined reference to `imp_copyIm' collect2.exe: error: ld returned 1 exit status

Error in compileCPU_mex_WINDOWS (line 30 ) mex ROF_TV.c ROF_TV_core.c utils.c COMPFLAGS="\$COMPFLAGS -fopenmp -Wall -std=c99"

dkazanc commented 7 months ago

thanks, what mex -setup gives you in Matlab? I've got MEX configured to use 'Microsoft Visual C++ 2017 (C)' for C language compilation. and it works for that so far...

I compiled the C library, try if it works for you. Just provide a path to it in Matlab

installed.zip