Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OsamaSikanderKhan opened this issue Mar 10, 2023 · 6 comments

Comments

@OsamaSikanderKhan
Copy link

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
Copy link

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

@OsamaSikanderKhan
Copy link
Author

OsamaSikanderKhan commented Jan 20, 2024 via email

@LinCheng13
Copy link

okay

@dkazanc
Copy link
Collaborator

dkazanc commented Jan 20, 2024

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
Copy link

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"

@dkazanc
Copy link
Collaborator

dkazanc commented Jan 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants