finufft
finufft copied to clipboard
CMake cannot find Matlab's iomp5 dll for Windows
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.
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.
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.
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
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, 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?