finufft icon indicating copy to clipboard operation
finufft copied to clipboard

CMake cannot find Matlab's iomp5 dll for Windows

Open Divisible8737 opened this issue 1 year ago • 5 comments

Running Matlab 2023a on Windows 11, cmake comes up empty handed on this line:

find_library(matlab_iomp5_lib NAMES iomp5 HINTS ${Matlab_ROOT_DIR}/sys/os/ PATH_SUFFIXES glnxa64 maci64) 

because the 'os' folder does not exist. I should add that

cmake .. -D FINUFFT_BUILD_MATLAB=OFF
cmake --build . -j

builds without any changes to make.inc.windows_mingw.

Divisible8737 avatar Sep 02 '23 15:09 Divisible8737

Thanks for the issue, you haven't tested the cmake for matlab on windows, current cmake should work for matlab on mac. Hopefully we will improve to make cmake for matlab work on windows soon.

lu1and10 avatar Sep 05 '23 21:09 lu1and10

Thanks, @lu1and10. I wish I could help, but I have minimal experience working with cmake and even less experience with windows. I gave up trying to compile the library for now and instead tried the precompiled binary for windows, https://users.flatironinstitute.org/~ahb/codes/finufft-binaries/2.0.2/, but still ran into a different problem so will post another issue related to that.

Divisible8737 avatar Sep 27 '23 02:09 Divisible8737

Dear Divisible, Do let us know if you find out where MATLAB's iomp5 lib has moved to in >=R2023a on Windows, so we can adjust the cmake. @DiamonDinoia may have experience with this as a Windows+MATLAB user.

PS the make.inc.* does not affect cmake. (You confused those two methods). Did you try the makefile route, as here?: https://finufft.readthedocs.io/en/latest/install.html#windows-tips-for-compiling

ahbarnett avatar Nov 29 '23 21:11 ahbarnett

Dear Divisible, Did you end up getting cmake build for FINUFFT + MATLAB working on windows 11? If you learned anything, we will incorporate. Otherwise we want to know if can close the issue. Thanks!

ahbarnett avatar Apr 22 '24 16:04 ahbarnett

@ahbarnett, I never was able to get cmake working for FINUFFT + MATLAB. However, the link @lu1and10 shared to an executable worked (thank you!!). Presumably there was progress on that end?

Divisible8737 avatar May 08 '24 19:05 Divisible8737