I have some troubles installing the toolkit in Win 10 for Matlab 2022a using mex compile.
OsamaSikanderKhan opened this issue · 6 comments
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');
Have you solved this problem? Can you tell me your solution?
okay
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
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 to
__imp_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"
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